word file - dhcp & zone xxxxx local - conf file
Post on 04-Apr-2018
214 Views
Preview:
TRANSCRIPT
-
7/29/2019 Word File - Dhcp & Zone Xxxxx Local - CONF File
1/2
1 | P a g e
# 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 192.168.1.1;
option subnet-mask 255.255.255.0;
#------ NIS domain name , Public domain name and DNS server IP,
these are optional
option nis-domain "xxxxxx.local";option domain-name "xxxxxx.local";
option domain-name-servers 192.168.1.20;
option 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 IndikaMCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL),MCITP, MCTS,MCSE + Security + Messaging, MCSA + Security + Messaging, MCP
-
7/29/2019 Word File - Dhcp & Zone Xxxxx Local - CONF File
2/2
2 | P a g e
# cd /var/named# nano zone. xxxxxx.local
Samantha IndikaMCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL),MCITP, MCTS,MCSE + Security + Messaging, MCSA + Security + Messaging, MCP
$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.
; Private client IPs
srv1 IN A 192.168.1.14
srv1 IN A 192.168.1.15
srv1 IN A 192.168.1.16
; DNS server IPs
srv IN A 192.168.1.
srv IN A 192.168.1.
srv IN A 192.168.1.
1. TTL (Time to Live),how long our DNSserver will keepother domainsinformation
2. IN - Internet relatedInformation
3. SOA (Start ofAuthority), theserver is authorizedto resolve whichdomainsinformation
4. 00 Zone file serial
number, incrementthis by 1 after doingchanges to thezone before saving
5. 3H 3 hoursrefresh interval, theslave server willcheck the masterfor updates afterevery 3 hours.
6. 1H 1 hour retry
interval, if themaster server cantbe contacted theslave server willretry to contact itvery 1 hour
7. 1W 1 week expireinterval, if themaster server cantbe contacted within1 week the slaveserver will beexpired
8. 2D 2 daysminimum TTL, howlong other DNSservers can keepour domainsinformation
9. NS Name Server
10.MX Mail exchange
record
top related