Configure the primary DNS server
1 Add IP in / etc / hosts ---> Hostnane entry
2 Create a /etc/named.data directory and enter the directory
3 Create a param file (optional)
-d the server managed by the server
-N network segment address
-b Profile location, standard in /etc/named.boot
-z Create a profile for downloading from the server
example:
-d test.com
-N 138.138.197
-N 202.1.158
-b /ect/named.boot
4 Create a DNS data file and boot file with host_to_named
HOSTS_TO_NAMED -F Param
Can also knock the parameters directly in the command line
Hosts_to_named -d .....- n
5 Download the DB.Cache file with root server pointer from the root server, put it in /etc/named.data
The location of the generated data file depends on the location of Host_to_named
6 Set the NAMED variable to 1 in the /etc/rc.config.d/namesvrs file
7 launch: named start
Configure backup DNS server
1 Create /etc/named.data
2 mkdir /etc/named.data
CHMOD 755 / Etc/named.data
3 download launch profile
ftp
Get /etc/named.data/boot.sec.save /etc/named.boot
quit
4 From the primary server FTP file DB.127.0.0 and db.cache
5 Modify /etc/rc.config.d/Namesvrs
6 launch Named.Start
Configure DNS client
1 Modify the parser profile /etc/resolv.conf
EXP:
Domain test.test.com st.com
Nameserver 138.138.197.149
Nameserver 138.138.197.5
2 Modify /etc/nsswitch.conf, confirm which one to parse domain names, no files, you can only use DNS
EXP:
HOSTS: DNS
NIS
Files
3 hosts file, Hosts file
EXP:
127.0.0.1 Local Host
202.1.158.4 sz004.test.test.com
4 Modify. Rhost /etc/host.equiv files each host name change to full name