HP-UX IP Address and Client Management Administrator's Guide (October 2009)

Configuring a Master Name Server
This section explains how to configure a master server in your domain. It also describes the name
server data files in the master server configuration. It discusses the following topics:
“Creating the Data Files for a Master Server” (page 67)
“Setting the Default Domain Name” (page 68)
“Master Server Configuration File” (page 68)
“Master Server Cache File” (page 70)
“The db.127.0.0 File” (page 72)
“Master Server db.domain Files” (page 73)
“Master Server db.net Files” (page 75)
Adding a Host to the Domain Data Files” (page 76)
“Deleting a Host from the Domain Data Files” (page 76)
Creating the Data Files for a Master Server
The following lists the steps to configure the master name server:
1. Ensure that the /etc/hosts file is updated on the host that you want to configure as the
master server.
2. On the host that you want to configure as the master server, create a temporary directory
/etc/named.data, where you want to store the name server data files, 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 hosts_to_named statement:
/usr/sbin/hosts_to_named -d div.inc.com -n 15.19.8
4. Issue the following command to move the /etc/named.data/named.conffile to the
/etc directory:
mv /etc/named.data/named.conf /etc/named.conf
5. Copy the /usr/examples/bind/db.cache file to the /etc/named.data directory.
This file is a list of root name servers. You can also use anonymous ftp to get the current
list of root name servers from rs.internic.net. Instructions are included in the
/usr/examples/bind/db.cachefile.
6. Use the list of root name servers from the /usr/examples/bind/db.cache file or from
rs.internic.net to update the /etc/named.data/db.cache file. The
hosts_to_named program creates this file but does not add any data to it. The format of
the db.cache file is described in “Master Server Cache File” (page 70).
If your network is isolated from the Internet, contact the BIND administrator for your domain
to obtain the names and addresses of the root name servers.
The hosts_to_named program creates the following data files in the working directory:
named.conf
db.cache (initially empty)
named.boot
db.127.0.0
db.IP6.INT
boot.cacheonly
Configuring a Master Name Server 67