HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
h
hosts_to_named(1M) hosts_to_named(1M)
(BIND 9.3)
-D
Do not create name server data for domain names in the host table.
-e subdomain
Eliminate lines from the host table that contain names in the subdomain before translating. If
the subdomain name does not have dots, the default domain is appended. This option may be
used more than once on the command line. This option requires domain names in the host table.
-f file Read command-line options from file. The
-f option is not allowed within a file.
-F Force the serial number to be incremented, even if the data has not changed. By default, the
serial number is incremented for a domain only if the data has changed (pointer (PTR) data
only).
-h host Declare host to be the host in the start-of-authority (SOA) record that the name server data was
created on. Also use host for the electronic mail address of the responsible user in the SOA
record. The default is the host this command is run on. This option applies to all the domains
generated by hosts_to_named
. If this option is specified more than once, only the last value
will be considered.
-H host-file
Use host-file instead of /etc/hosts .
-m weight:mailhub
For each canonical host name from the host table, create mail exchanger (MX) records with the
specified weight and mail hub. The weight is a positive integer. The mail hub is a host name. If
the mail hub name has no dots, the default domain is appended. This option can be used more
than once on the command line.
-M Do not create mail exchanger (MX) records for hosts in the host table.
-n network-number[
:mask]
Create data for network-number. See the Operation subsection for the description of network-
number. If only one domain is listed with the
-d option, all data for network-number is assumed
to be in domain. The optional subnet mask mask can be used instead of supplying each
network-number for a subnet using multiple
-n options. mask must be in dot notation. This
option is not applicable for creating IPv6 addresses.
-N mask Apply the default subnet mask mask to each network-number specified with the
-n option 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.
-o refresh:retry:expire:min
Set the values in the start-of-authority (SOA) record to those specified. See the Operation sub-
section for the description of the start-of-authority (SOA) record.
-p domain
Create only pointer (PTR) data for hosts in domain. This is useful when there are multiple
domains on a network and a different server is responsible for domain, but this server is respon-
sible for the address-to-name mapping. This option can be used more than once on the command
line. This option requires domain names in the host table.
-q Run quietly. No messages are printed.
-r Create name server data indicating that the name server is authoritative for . (the root of the
domain tree). The file created is db.root. Use this only when your network is isolated from
the Internet. If other root servers exist for the isolated network, they must be added manually.
-s server
Create name server (NS) records that declare server is an authoritative name server for all of
the domains created. If more than one server is authoritative, each needs to be declared. If the
server name does not have any dots in it, the default domain is appended. If you do not specify
the -s option, the default name server is the host on which you execute the script. You can use
this option more than once on the command line to specify multiple name servers.
-S server
This option is the same as the -s option, but it only applies to the last domain specified with a
-d option or the last network-number specified with a -n option. This option is for when server
is backing up some, but not all, of the domains.
300 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007