Networking Guide
Chapter 6, Configuring the Domain Name Service

Configuring a caching-only server

Configuring a caching-only server

  1. Copy /etc/named.b.ca to /etc/named.boot. 

  2. Edit /etc/named.boot to contain the IP addresses of the primary, and secondary if needed, server for your zone. For an annotated version of /etc/named.boot, with descriptions of each line, see ``Sample /etc/named.boot file''.

  3. If needed, edit /etc/named.boot to contain the IP address of one or more forwarders.

  4. If needed, edit /etc/named.boot to add the slave directive.

  5. Start the DNS daemon, named, from the command line. Once configured, named starts and stops automatically as the system moves in and out of multiuser mode.

  6. Test DNS by using nslookup to look up a remote name.

The following sample /etc/named.boot from a caching-only server uses forwarders and operates in slave mode:
   ;
   ; Boot file for Caching-Only Name Server
   ;
   

; ; type domain source file or host ;

directory /etc/named.d cache . root.cache primary 132.147.118.1 named.local forwarders 132.147.118.6 132.147.118.10 slave

See also: