HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)
h
hosts_to_named(1M) hosts_to_named(1M)
-H host-file Use host-file instead of
/etc/hosts.
-M Do not create mail exchanger (MX) records for hosts in the host table.
-N mask Apply the default subnet mask mask to each network-number specified with
-n
except for ones with their subnet masks already provided. mask must be in dot
notation. This is the same as supplying each network-number for a subnet using
multiple
-n options.
-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.
Note: At least one name server (either default or explicitly declared using the
-s
option) will be included in all the database files, in addition to those declared using
the -S option.
-Z internet-address
Create a secondary boot file, boot.sec
(if named is 4.x) or conf.sec (if named
is 8.x or 9.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. You can use this option more than
once to declare multiple servers from which data can be loaded.
Note: All the servers declared using this option will be listed for all domains.
-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.
The
hosts_to_named configuration file migration script does not add the
listen-on-v6 option to
the
named.conf file on dual stack machine. In order to enable DNS services to listen on IPv6 inter-
faces, this entry needs to be added manually.
Alias (CNAME) records are created for subdomains delegated with
-c. Lines from the host table that
contain 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. Exam-
ple 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".
Address (AAAA) records and A6 records are created for mapping hostnames to IPv6 addresses.
Pointer (PTR) records are created for mapping IPv6 addresses to host names. The IPv6 PTR records are
placed in a file named
db.IP6.INT.
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
comments do not include [no smtp].
HP-UX 11i Version 2: September 2004 − 3 − Hewlett-Packard Company Section 1M−−277