HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

h
hosts_to_named(1M) hosts_to_named(1M)
-S server This option is the same as the
-s option, but it only applies to the last domain
specified with
-d or the last network-number specified with
-n. This option is for
when server is backing up some, but not all, of the domains.
-Z internet-address
Create a secondary boot file, boot.sec (if
named is 4.x) or conf.sec (if named
is 8.x), from the primary boot file listing internet-address as the server to load the
data from. The boot file does not have the server back up the data on disk. The
internet-address defaults to value used with
-z. This option can be used more than
once.
-1 This option is obsolete.
hosts_to_named
translates the host table to lower case to help eliminate duplicate data. Since the
name server treats uppercase and lowercase as equivalent, names that differ only in case are considered
the same.
Alias (CNAME) records are created for subdomains delegated with
-c. Lines from the host table that con-
tain names in subdomains from
-c
and -e are removed from the lowercase copy of the host table.
The host table is then used to create the name server data for each network-number declared on the com-
mand line. Do not include the trailing 0’s in the network number. No distinction is made between class A,
B, or C addresses nor is there any understanding of subnets unless a subnet mask is supplied. Example
network numbers are: 10 (for all addresses of the form 10...), 10.1 (for addresses of the form 10.1..),
or 10.2.2 (for addresses of the form 10.2.2.*).
Address (A) records are created for mapping hostnames to IP addresses. Alias (CNAME) records are
created for aliases of hosts that are not multi-homed. The data are placed in a file named
db.DOMAIN
where DOMAIN is the first part of the domain from the command line. For the domain
div.inc.com ,
the file is named
db.div. All other name server data goes in this file except the pointer (PTR) records
described below.
Pointer (PTR) records are created for mapping IP addresses to host names. PTR records are placed in a file
named db.NET where NET is the network number from the command line. Network 10 data is placed in
db.10. Network 10.1 data are placed in "db.10.1".
Mail exchanger (MX) records are created unless the -M option is used. The default MX record has a weight
of 10 with the host itself as its mail exchanger. No default MX record is created for a host if
[no smtp] is
in the comment section of that line in the host table. MX records for each mail hub declared with the
-m
option are added for each host even if [no smtp] is in the comment section.
Well known services (WKS) records are created for each host that handles SMTP mail (does not have
[no
smtp]
)if-w is used. The only service listed is SMTP.
Text (TXT) records are created for comments associated with hosts in the host table if
-t is used. The com-
ments do not include
[no smtp].
For each domain, a start of authority (SOA) record is created. The SOA record requires 2 domain names:
the host that the data is created on and the electronic mail address of the person responsible. The
-h and
-u options influence the names. In addition, the SOA record requires 5 values: a serial number, a refresh
time, a retry time, an expire time, and a minimum ttl (time to live). The first time the data is created, the
serial number is set to 1, the refresh time is set to 3 hours, the retry time is set to 1 hour, the expire time is
set to 1 week, and the minimum ttl is set to 1 day. The -o option changes these values except for the
serial number. Each subsequent time hosts_to_named is run, the serial number is incremented. If
any of the other fields in the SOA record are modified, the changed values are retained.
If there are files named spcl.DOMAIN or spcl.NET in the current directory, $INCLUDE directives
are added to the corresponding db.DOMAIN or db.NET file for the spcl file. In this way, special data
can be added to the data generated by hosts_to_named.
The first time hosts_to_named is run, it creates a default boot file for a primary name server. Each
subsequent time hosts_to_named is run, the boot file is updated if necessary. New entries are made in
the boot file for any additional networks or domains not already in the boot file. No entries are deleted
from the boot file.
The boot file for a caching-only server, boot.cacheonly (if bind is 4.x) or conf.cacheonly (if
bind is 8.x), is created if it does not exist. The boot files for secondary servers, (boot.sec.save or
conf.sec.save) and (boot.sec or conf.sec), are created if the -z or -Z options are used. The
boot files for secondary servers are created new each time from the primary server boot file so that they are
HP-UX 11i Version 1: September 2005 3 Hewlett-Packard Company Section 1M315