HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3
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 69).
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
• conf.cacheonly
• db.domain (one file for each domain specified with the -d option)
• db.net (one file for each network number specified with the -n option)
Naming these files db.name is an HP convention.
You can also create these files manually using a text editor. If you choose to create them manually,
you must convert all host names to fully qualified domain names (names containing all the labels
from the host to the root, terminated with a dot; for example, indigo.div.inc.com.).
The hosts_to_named program completely rewrites the db.domain and db.net files. All the
manual modifications to these files are lost when you run the hosts_to_named program again,
except the changes to the SOA records.
For more information, type man 1M hosts_to_named or man 1M named at the HP-UX prompt.
Setting the Default Domain Name
If you are 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” (page 78) for more information. If you are not using an /etc/resolv.conf file,
complete the following steps to set the default domain name:
1. Set the default domain name using the hostname command, by appending the domain
name to the host name, as shown in the following example:
/usr/bin/hostname indigo.div.inc.com
Configuring a Master Name Server 67