hosts_to_na.1m (2010 09)

h
hosts_to_named(1M) hosts_to_named(1M)
(BIND 9.3)
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.
-t Create text (TXT) records from the comments that appear with host data. The comments will
all be in lower case because the host table is translated to lower case. If
[no smtp] appears
in a comment, it is omitted. The
[no smtp]
is used to control mail exchanger (MX) data.
-u user Declare user to be the electronic mail address of the person responsible for this domain. This
is used in the start-of-authority (SOA) record. The format required in the name server data is
user.host ,RI ( host must be a domain name). If given as user (without
.host), the host on
which this script is run is appended. If given as user
@host, the @ is replaced with a dot (.).
The default user is
root. This option applies to all the domains generated by
hosts_to_named
. If you specify this option more than once, only the last value will be
used.
-w Create well-known services (WKS) data declaring that the host provides the SMTP service.
This is done only when mail exchanger (MX) data is also being created and only for hosts
without
[no smtp] in a comment.
-z internet-address
Create a secondary boot file, boot.sec.save
(if named is version 4.x) or
conf.sec.save
(if named is version 8.x or 9.x), from the primary boot file, listing internet-address as the
server to load the data from. The boot file has the server back up the data on disk. The
internet-address defaults to the value used with
-Z. You can specify 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 the domains.
-Z internet-address
Create a secondary boot file, boot.sec (if named is version 4.x) or conf.sec (if named is
version 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 the 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.
Operation
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 the
-c option. Lines from the host
table that contain names in subdomains from the -c and -e options 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 host names 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 next.
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 are
placed in db.10. Network 10.1 data are placed in db.10.1.
Address (AAAA) records and A6 records are created for mapping host names to IPv6 addresses.
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3