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)
NAME
hosts_to_named - translate host table to name server file format
SYNOPSIS
hosts_to_named
{-d domain}... {-n network-number[
:mask]}...
[
-a network-number][
-b bootfile][
-c subdomain]... [-e subdomain]... [-f file][
-h host]
[
-m weight:mailhub]... [
-o refresh:retry:expire:min][-p domain]... [-q
][-r][-s server]...
[
-t][-u
user][-w][-z internet-address]...
[
-A][-ARPA][
-C file][-D][-F][-H
host-file][-M][-N netmask][-S server]...
[
-Z internet-address]...
DESCRIPTION
hosts_to_named
translates the host table, /etc/hosts , into files that are usable by the name
server,
named (see named(1M)). The format of these files is defined in RFC 1035. The files are created in
the current directory. Once the host table is translated, the name server files can be maintained directly,
or the translation can be repeated after each change to the host table.
If a line in the host table contains no domain names, all names on the line are assumed to be in the default
domain. The first domain listed is the default domain. If data is being created for more than one domain
or if certain options are used, there must be domain names in the host table to determine which names
belong in which domain.
The name server data is referred to as resource records.
Options
hosts_to_named has the following options:
-a network-number
Add the information about hosts in the local domain from network network-number. This is the
same as the
-n option except that no pointer (PTR) data is created. This is useful when there
are multiple domains on a network and a different server is handling the address-to-name map-
ping for network-number.
-A Do not create name server data for aliases in the host table.
-ARPA Create IP6.ARPA reverse lookup domain instead of IP6.INT. The pointer (PTR) records are
placed in the file, db.IP6.ARPA .
-b bootfile
Name the boot file bootfile. The default is named.boot (if named is version 4.x) or
named.conf (if named is version 8.x or 9.x) in the current directory.
-c subdomain
Create alias (CNAME) records for hosts in subdomain of the default domain. When a subdomain
is delegated, it is useful to create aliases for the old names in the default domain that point to
the new names in the subdomain. After creating the alias (CNAME) records, ignore lines in the
host table that contain names in the subdomain. This option can be used more than once on the
command line. This option requires domain names in the host table. When the old names in
this domain are no longer used, they can be ignored with the -e option. If the subdomain name
does not have dots, the default domain is appended to subdomain.
-C file Create resource records from strings in the comment field of the host table. Each string in the
comment field (except [no smtp]) is searched for in file. The format of each line of file is a
string, a colon, and a resource record. If the string in the comment field matches a string before
a colon in file, a resource record is added consisting of the name of the host followed by every-
thing after the colon from the matching line in file. For example, host information (HINFO)
records can be created by adding
360:IN HINFO hp9000s360 hp-ux
to file and adding 360 to comments in the host table.
-d domain
Create data for domain. This option can be used more than once on the command line if data is
being created for more than one domain. The first domain listed is the "default domain". This
option requires domain names in the host table for all hosts in domains except the default
domain.
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 299