\fBnamed-checkzone\fR checks the syntax and integrity of
\fBnamed\-checkzone\fR checks the syntax and integrity of a zone file\&. It performs the same checks as \fBnamed\fR does when loading a zone\&. This makes \fBnamed\-checkzone\fR useful for checking zone files before configuring them into a name server\&.
a zone file. It performs the same checks as \fBnamed\fR
does when loading a zone. This makes
\fBnamed-checkzone\fR useful for checking zone
files before configuring them into a name server.
.SH "OPTIONS"
.SH "OPTIONS"
.TP
.TP
\fB-d\fR
\-d
Enable debugging.
Enable debugging\&.
.TP
.TP
\fB-q\fR
\-q
Quiet mode - exit code only.
Quiet mode \- exit code only\&.
.TP
.TP
\fB-v\fR
\-v
Print the version of the \fBnamed-checkzone\fR
Print the version of the \fBnamed\-checkzone\fR program and exit\&.
program and exit.
.TP
.TP
\fB-j\fR
\-j
When loading the zone file read the journal if it exists.
When loading the zone file read the journal if it exists\&.
.TP
.TP
\fB-c \fIclass\fB\fR
\-c \fIclass\fR
Specify the class of the zone. If not specified "IN" is assumed.
Specify the class of the zone\&. If not specified "IN" is assumed\&.
.TP
.TP
\fB-k \fImode\fB\fR
\-k \fImode\fR
Perform \fB"check-name"\fR checks with the specified failure mode.
Perform \fB"check\-name"\fR checks with the specified failure mode\&. Possible modes are \fB"fail"\fR, \fB"warn"\fR (default) and \fB"ignore"\fR\&.
Possible modes are \fB"fail"\fR,
\fB"warn"\fR (default) and
\fB"ignore"\fR.
.TP
.TP
\fB-n \fImode\fB\fR
\-n \fImode\fR
Specify whether NS records should be checked to see if they
Specify whether NS records should be checked to see if they are addresses\&. Possible modes are \fB"fail"\fR, \fB"warn"\fR (default) and \fB"ignore"\fR\&.
are addresses. Possible modes are \fB"fail"\fR,
\fB"warn"\fR (default) and
\fB"ignore"\fR.
.TP
.TP
\fB-o \fIfilename\fB\fR
\-o \fIfilename\fR
Write zone output to \fIfilename\fR.
Write zone output to \fIfilename\fR\&.
.TP
.TP
\fB-t \fIdirectory\fB\fR
\-t \fIdirectory\fR
chroot to \fIdirectory\fR so that include
chroot to \fIdirectory\fR so that include directives in the configuration file are processed as if run by a similarly chrooted named\&.
directives in the configuration file are processed as if
run by a similarly chrooted named.
.TP
.TP
\fB-w \fIdirectory\fB\fR
\-w \fIdirectory\fR
chdir to \fIdirectory\fR so that relative
chdir to \fIdirectory\fR so that relative filenames in master file $INCLUDE directives work\&. This is similar to the directory clause in \fInamed\&.conf\fR\&.
filenames in master file $INCLUDE directives work. This
is similar to the directory clause in
\fInamed.conf\fR.
.TP
.TP
\fB-D\fR
\-D
Dump zone file in canonical format.
Dump zone file in canonical format\&.
.TP
.TP
\fB-W \fImode\fB\fR
\-W \fImode\fR
Specify whether to check for non-terminal wildcards.
Specify whether to check for non\-terminal wildcards\&. Non\-terminal wildcards are almost always the result of a failure to understand the wildcard matching algorithm (RFC 1034)\&. Possible modes are \fB"warn"\fR (default) and \fB"ignore"\fR\&.
Non-terminal wildcards are almost always the result of a
failure to understand the wildcard matching algorithm (RFC 1034).
Possible modes are \fB"warn"\fR (default) and
\fB"ignore"\fR.
.TP
.TP
\fBzonename\fR
zonename
The domain name of the zone being checked.
The domain name of the zone being checked\&.
.TP
.TP
\fBfilename\fR
filename
The name of the zone file.
The name of the zone file\&.
.SH "RETURN VALUES"
.SH "RETURN VALUES"
.PP
.PP
\fBnamed-checkzone\fR returns an exit status of 1 if
\fBnamed\-checkzone\fR returns an exit status of 1 if errors were detected and 0 otherwise\&.