HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3

The hosts_to_named command creates the configuration file named.conf and other data
files in the working directory. For a detailed description of the configuration file and all the data
files generated by hosts_to_named, see “Creating the Data Files for a Master Server (page 66)
and “Master Server Configuration File” (page 68). For more information on the hosts_to_named
command, type man 1m hosts_to_named at the HP-UX prompt.
BIND provides the following utilities to examine the syntax of the configuration file and zone:
named-checkconf
The named-checkconf utility verifies the syntax of the configuration file named.conf.
However, it does not check for the semantics of the configuration file. named-checkconf
returns 0 on success and 1 if it detects errors.
The syntax for named-checkconf is as follows:
/usr/sbin/named-checkconf [-v]
[-t directory] [filename]
-t directory Specifies named to change directory to directory to process the
include directives in the configuration file, similar to a chrooted named.
-v Prints the version number of the named-checkconf utility before exit.
filename Specifies the configuration file to be checked. The default file name is
/etc/named.conf.
-z Performs a check load on the master zone files in the /etc/named.conf
file.
-j Reads the journal while loading a zone file.
named-checkzone
The named-checkzone utility performs syntax and consistency checks on the zone contents.
named-checkzone returns 0 on success and 1 if it detects errors.
The syntax for named-checkzone is as follows:
/usr/sbin/named-checkzone [-dq]
[-c class] zone [filename]
-d Enables debugging.
-q Enables quiet mode only for the exit code.
j Reads the journal while loading a zone file.
k Performs check-name checks with the specified failure mode. The values
for the failure modes are fail, warn (default), and ignore. The default
value is warn.
n mode Specifies if the name server (NS) records must be checked to verify
whether they are addresses. The values for this option are fail, warn,
and ignore. The default value is warn.
o filename Writes the zone output to the directory.
-t directory Specifies the directory under which the named-checkzone command
is chrooted. The include directives in the configuration file are also
processed as if they are run by a similar chrooted named.
w directory Specifies named to change to directory so that relative filenames in the
master file $INCLUDE directives are functional. This option is similar
to the directory clause in the /etc/named.conf file.
-D Specifies the dump zone file in the canonical format.
c class Specifies the class of the zone.
zone Specifies the zone whose contents are to be checked.
filename Specifies the file used for checking the contents of a zone.
BIND Name Service Overview 25