HP-UX IP Address and Client Management Administrator's Guide (October 2009)
• 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 81) 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
Do not insert 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
specified in the following example:
HOSTNAME=indigo.div.inc.com
Master Server Configuration File
The configuration file, /etc/named.conf, informs the master server of the location of all the
required data files. The master name server loads its database from these data files. The
hosts_to_named program creates the named.conf file.
Following is an example configuration file for a master server authoritative for the domain
div.inc.com, and for the network 15.19.8.
#
# type domain source file
#
option {
directory “/etc/named.data”;
};
zone “0.0.127.IN-ADDR.ARPA” {
type master;
file “db.127.0.0”;
};
zone “div.inc.com” {
type master;
file “db.div”;
};
zone “8.19.15.IN-ADDR.ARPA” {
type master;
file “db.15.19.8”;
};
zone “.” {
type hint;
file “db.cache”;
};
68 Configuring and Administering the BIND Name Service