Installing and Administering Internet Services

86 Chapter3
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
Configuring a Primary Master Name Server
This section explains how to configure a primary master server in your
domain. It also describes the name server data files in the primary
master server configuration. It contains the following sections:
“To Create the Data Files for a Primary Master Server” on page 86
“To Set the Default Domain Name” on page 88
“The Primary Master Server’s Boot File” on page 106
“The Primary Master Server’s Cache File” on page 107
“The db.127.0.0 File” on page 109
“The Primary Master Server’s db.domain Files” on page 111
“The Primary Master Server’s db.net Files” on page 114
“To Add a Host to the Domain Data Files” on page 116
“To Delete a Host from the Domain Data Files” on page 117
To Create the Data Files for a Primary Master Server
1. Make sure the /etc/hosts file is up to date on the host that will be
the primary master server.
2. On the host that will be the primary master, create the
/etc/named.data directory, where the name server data files will
reside, and make it the current directory:
mkdir /etc/named.data
cd /etc/named.data
3. Issue the following command to generate the name server data files
from the /etc/hosts file:
/usr/sbin/hosts_to_named -d
domainname
-n
network_number
Following is an example:
/usr/sbin/hosts_to_named -d div.inc.com -n 15.19.8
4. Move the named.boot file to the /etc directory:
mv /etc/named.data/named.boot /etc/named.boot