named-checkconf Command

Purpose

Syntax checking tool of a named configuration file.

Syntax

named-checkconf [ -v ] [ -j ] [ -t directory ] filename [ -z ]

Description

The named-checkconf command checks the syntax, but not the semantics, of a named configuration file.

Flags

Item Description
-j Reads the journal if it exists when loading a zonefile.
-t directory Changes the present directory to the directory specified so that included directives in the configuration file are processed.
-v Prints the version of the named-checkconf program and exits.
-z Performs a check and loads the master zone files found in the named.conf file.
filename Specifies the name of the configuration file to be checked. If not specified, the default value is /etc/named.

Exit Status

Item Description
0 Indicates a successful completion.
1 Indicates errors.