Specific steps:
1.? Insert the installation disc and mount it, then install the bind package and the associated package. :
2.? Edit the master configuration file .
Master profile Named.conf/etc/ directory, if you have installed Span style= "FONT-FAMILY:CALIBRI;" >bind-chroot package, the main configuration file is located by default in / var/named/chroot/etc/ directory, need to be created manually by the user. In named.conf # // "the beginning part represents a comment file (a large segment comment can be used" /* */
in the above configuration, other configuration items can be omitted except that directory entries are usually retained. If you do not specify a listen-on configuration item,thenamed defaults to the UDP port on all interfaces for Monitoring the service; When you allow-query a configuration item, the default is to respond to query requests from all clients. dump-file,statistics-file, memstatistics-file The configuration items are used to specify the location of the cache database files, status statistics files, and so on. Added a " Zone ". " In ? {}; section of the root locale, although the cache server does not have autonomous zone data, it can iterate over the root server and feed the resulting parsing results back to the customer.
sometimes in order to improve the resolution efficiency, you can also not query the root partition, but the query request from the client to the domestic carrier's DNS server (such as the 202.106.0.20 in Beijing ,202.106.148.1), the cache server receives the returned query result and then passes it to the client. Just remove the " Zone ". " In ? {... }; settings and set correctly in the global configurationForwardersparameter to achieve this function. As shown below:
[email protected] ~]# vim/var/named/chroot/etc/named.conf
Options {
...... // omit part of the content
forwarders {202.106.0.20;202.106.148.1};
};
3.? confirm the zone database file for the root domain named.ca
The zone database file for the root zone is located by default in file /var/named/chroot/var/named/named.ca , which records the Internet the domain name and IP address of the root domain server , and other related information. :
?
4.? start Named
Execute the "servicenamed start" command, start the named Service, and confirm with the netstat command The port listening status of the named service. If the service fails to start or if the UDP port is not listening properly , you can troubleshoot errors based on the error message (or The log records in the/var/log/messages file) , and then restart the service. :
Cache name server is built
You can refer to my two other articles about the primary domain server and the domain service area:
Primary Domain Name server: http://blog.51cto.com/yangkui/2047701
From the domain name server: http://blog.51cto.com/yangkui/2048153
Linux DNS cache name servers