Installing and Administering Internet Services

Chapter 3 73
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 73
“To Set the Default Domain Name” on page 75
“The Primary Master Server’s Boot File” on page 75
“The Primary Master Server’s Cache File” on page 76
“The db.127.0.0 File” on page 77
“The Primary Master Server’s db.domain Files” on page 79
“The Primary Master Server’s db.net Files” on page 82
“To Add a Host to the Domain Data Files” on page 84
“To Delete a Host from the Domain Data Files” on page 85
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: