You are on page 1of 2

1 |Page

# nano /etc/dhcpd.conf
#------ The following two line indicates Dynamic DNS updates are NOT supported by linux DHCP service ddns-update-style none; #------ Your Network ID and Subnet subnet 192.168.1.0 netmask 255.255.255.0 { #------ default gateway for your clients, these are optional option routers option subnet-mask 192.168.1.1; 255.255.255.0;

#------ NIS domain name , Public domain name and DNS server IP, these are optional option option option option nis-domain "xxxxxx.local"; domain-name "xxxxxx.local"; domain-name-servers 192.168.1.20; domain-name-servers 192.168.1.30;

#------ The IP range that will be given to your clients and default lease time, this is a must range dynamic-bootp 192.168.1.200 192.168.1.202; default-lease-time 21600; max-lease-time 43200; #------ Reserved IPs for clients host srv2 { option host-name "srv2.xxxxxx.local"; hardware ethernet 00:02:A5:E3:67:8E; fixed-address 192.168.1.201; } }

Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP

2 |Page

# cd /var/named # nano zone.xxxxxx.local


$TTL 2D @ IN SOA xxxxxx.local. root.xxxxxx.local. ( 00 ;serial 3H ;refesh 1H ;retry 1W ;expire 2D) ;minimum ; dns server names IN NS srv.xxxxxx.local. IN NS srv.xxxxxx.local. IN NS srv.xxxxxx.local. ; address records ; Domain xxxxxx.local. IN A 192.168.1. 1. TTL (Time to Live),
how long our DNS server will keep other domains information

2. IN - Internet related
Information

3. SOA (Start of
Authority), the server is authorized to resolve which domains information

4. 00 Zone file serial


number, increment this by 1 after doing changes to the zone before saving

; Private client IPs srv1 IN A srv1 IN A srv1 IN A ; DNS server IPs srv IN A srv IN A srv IN A

192.168.1.14 192.168.1.15 192.168.1.16 192.168.1. 192.168.1. 192.168.1.

5. 3H 3 hours
refresh interval, the slave server will check the master for updates after every 3 hours.

6. 1H 1 hour retry
interval, if the master server cant be contacted the slave server will retry to contact it very 1 hour

7. 1W 1 week expire
interval, if the master server cant be contacted within 1 week the slave server will be expired

8. 2D 2 days
minimum TTL, how long other DNS servers can keep our domains information

9. NS Name Server 10. MX Mail exchange


record

Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP

You might also like