NSHOST(8) Domain/OS BSD NSHOST(8)
NAME
nshost - generate host tables from the name server
SYNOPSIS
nshost [ -f file ... ] [ -d domain ... [ -s server ] ] [ -o output-file ]
[ -r ]
DESCRIPTION
The nshost command converts host and address information from name server
configuration files (see named(8)) or from running name server(s) into
the /etc/hosts format (see hosts(5)) or into the /etc/named.rev (reverse
pointer records) format.
OPTIONS
-f file Search the file for Standard Resource Records specifying
addresses (A) or aliases (CNAME); these are then written to the
standard output or to the output-file specified by the -o
option. You may specify more than one -f option.
-d domain Query a running name server for the specified domain
(determined by looking in the file /etc/resolv.conf, which
lists one or more servers per domain). You may specify more
than one -d option. See the -s option.
-s server Specify alternate servers. You may specify up to three servers
per domain; this number includes those servers listed in the
resolv.conf file and those servers specified on the command
line by the -s option. If used, the -s option must always
follow the -d option.
-o output-file
Write the converted host and address information to the
specified output-file.
-r Request the /etc/named.rev (reverse pointer records) format.
SEE ALSO
hosts(5), hostns(8), named(8);
Configuring and Managing TCP/IP.