HOSTNS(8) Domain/OS BSD HOSTNS(8)
NAME
hostns - convert host table files to resource record format
SYNOPSIS
hostns [ -f file ] [ -d domain ] [ -h host ] [ -n subnet_id ]
[ -s major.minor ] [ -u user ]
DESCRIPTION
The hostns command converts host address information obtained from an
existing /etc/hosts format file (see hosts(5)) into Standard Resource
Record Format for use by named(8). It is intended to serve as an aid in
bringing up the name server on an existing network. By default, hostns
uses host address mapping information contained in the file /etc/hosts.
OPTIONS
-f file Specify an alternate host address mapping file, named file.
-d domain Use domain as the domain name for the local zone. Normally
if the current machine's hostname contains any dots, the
portion of the hostname after the first dot is taken to be
the domain name for the local zone. If there are no dots in
the hostname, the domain name defaults to .MY.DOMAIN.
-h host Build files for a different host. Normally hostns assumes
named(8) will be run on the local machine and generates
nameserver records.
-n subnet_idLimit the conversion to the specific subnet. Normally,
hostns converts all of the entries in the specified
/etc/hosts file. subnet_id may be specified in hexadecimal
or in the standard Internet "dotted address" format. The -n
option may be specified, with a different subnet_id, up to
five times.
-s major.minor
Set the serial number in the Start of Authority (SOA) record
to major.minor instead of 1.1. The serial number is used to
detect updates in a running network.
-u user Specify user as the responsible administrator. Normally,
hostns assumes the user responsible for network
administration is the user running the program.
FILES
The following files are produced:
named.boot boot file
named.ca initial cache data
named.local localhost reverse pointer
named.hosts hosts file
named.rev hosts file reverse pointers
SEE ALSO
hosts(5), named(8), nshost(8);
Configuring and Managing TCP/IP.