build from a domain name server
Specific steps:
1. confirm the local network address, host mapping, default DNS server address
the IP address from the domain name server is set to 173.16.16.6and the hostname is set to ns2.benet.comby modifying the network configuration file. In addition, host mapping files /etc/hosts and DNS parsing files /etc/resolv.conf Content is the same as the content in the master server.
2. Establish the master profile named.conf
from the domain name server, the contents of the named.conf file are much the same as the contents of the primary server, but do not need to set "allow-transfer ... "; more crucially, Zone The zone type for the section should be set to " slave ", and add" Masters {} ; "Statement to specify the address of the primary domain name server. :
because the zone data file from the server is downloaded from the primary server, the name saved by the file can be defined by itself, without having to be consistent with the primary server. However, it is important to note thatthe named service runs as a usernamed "named" by default, so verify that the named User has write access to the directory.
3. Start the named service to see if the zone data file is successfully downloaded
Execute the "service named start" command from the domain name server to start the named Service.
If configured correctly, named will automatically download the specified zone data file from the primary domain name server and save it to the "slaves/" directory. In addition, The process of downloading zone data files can also be observed through the system log file/var/log/messages.
4.
when verifying from a domain name server, only the client's preferred The DNS server address is set to 173.16.16.6(from the IP address of the domain name server ), using the nslookup command to perform the normal test. :
From the domain name server to complete!!!
About the primary domain name server you can refer to one of my other articles here is the address link:
http://blog.51cto.com/yangkui/2047701
Linux DNS from a domain name server