Installing and Administering Internet Services

Chapter 3 75
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
To Set the Default Domain Name
If you will be using an /etc/resolv.conf file on your host, configure
the default domain name with the search or domain keyword. See
“Configuring the Resolver to Query a Remote Name Server” on page 91.
If you will not be using an /etc/resolv.conf file, follow these steps:
1. Set the default domain name with the hostname command, by
appending the domain name to the host name, as in the following
example:
/usr/bin/hostname indigo.div.inc.com
Do not put a trailing dot at the end of the domain name.
2. Set the HOSTNAME variable in the /etc/rc.config.d/netconf file
to the same value, as in the following example:
HOSTNAME=indigo.div.inc.com
The Primary Master Server’s Boot File
The boot file, /etc/named.boot, tells the primary master server the
location of all the data files it needs. The primary name server loads its
database from these data files. The hosts_to_named program creates
the named.boot file.
Following is an example boot file for a primary server authoritative for
the div.inc.com domain and for networks 15.19.8 and 15.19.13:
; domain source file
; type
;
directory /etc/named.data ;running directory for named
primary div.inc.com db.div
primary 0.0.127.IN-ADDR.ARPA db.127.0.0
primary 8.19.15.IN-ADDR.ARPA db.15.19.8
primary 13.19.15.IN-ADDR.ARPA db.15.19.13
cache db.cache