bind9/bin/check/named-checkzone.8

330 lines
9.9 KiB
Groff
Raw Normal View History

2016-07-21 03:11:01 -04:00
.\" Copyright (C) 2000-2002, 2004-2007, 2009-2016 Internet Systems Consortium, Inc. ("ISC")
2005-05-11 02:05:43 -04:00
.\"
2016-07-21 03:11:01 -04:00
.\" This Source Code Form is subject to the terms of the Mozilla Public
.\" License, v. 2.0. If a copy of the MPL was not distributed with this
.\" file, You can obtain one at http://mozilla.org/MPL/2.0/.
2005-05-12 19:54:40 -04:00
.\"
2005-05-11 02:05:43 -04:00
.hy 0
.ad l
2015-10-06 01:45:21 -04:00
'\" t
.\" Title: named-checkzone
2006-06-29 09:03:32 -04:00
.\" Author:
2015-10-07 00:11:09 -04:00
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
2015-10-06 01:45:21 -04:00
.\" Date: 2014-02-19
2006-06-29 09:03:32 -04:00
.\" Manual: BIND9
2015-10-06 01:45:21 -04:00
.\" Source: ISC
.\" Language: English
2006-06-29 09:03:32 -04:00
.\"
2015-10-06 01:45:21 -04:00
.TH "NAMED\-CHECKZONE" "8" "2014\-02\-19" "ISC" "BIND9"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
2005-10-12 23:14:05 -04:00
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
2015-10-06 01:45:21 -04:00
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
2005-10-12 23:14:05 -04:00
.SH "NAME"
2015-10-06 01:45:21 -04:00
named-checkzone, named-compilezone \- zone file validity checking or converting tool
2005-05-11 02:05:43 -04:00
.SH "SYNOPSIS"
2015-10-07 00:11:09 -04:00
.HP \w'\fBnamed\-checkzone\fR\ 'u
2014-02-20 14:19:27 -05:00
\fBnamed\-checkzone\fR [\fB\-d\fR] [\fB\-h\fR] [\fB\-j\fR] [\fB\-q\fR] [\fB\-v\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-f\ \fR\fB\fIformat\fR\fR] [\fB\-F\ \fR\fB\fIformat\fR\fR] [\fB\-J\ \fR\fB\fIfilename\fR\fR] [\fB\-i\ \fR\fB\fImode\fR\fR] [\fB\-k\ \fR\fB\fImode\fR\fR] [\fB\-m\ \fR\fB\fImode\fR\fR] [\fB\-M\ \fR\fB\fImode\fR\fR] [\fB\-n\ \fR\fB\fImode\fR\fR] [\fB\-l\ \fR\fB\fIttl\fR\fR] [\fB\-L\ \fR\fB\fIserial\fR\fR] [\fB\-o\ \fR\fB\fIfilename\fR\fR] [\fB\-r\ \fR\fB\fImode\fR\fR] [\fB\-s\ \fR\fB\fIstyle\fR\fR] [\fB\-S\ \fR\fB\fImode\fR\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] [\fB\-T\ \fR\fB\fImode\fR\fR] [\fB\-w\ \fR\fB\fIdirectory\fR\fR] [\fB\-D\fR] [\fB\-W\ \fR\fB\fImode\fR\fR] {zonename} {filename}
2015-10-07 00:11:09 -04:00
.HP \w'\fBnamed\-compilezone\fR\ 'u
2014-02-20 14:19:27 -05:00
\fBnamed\-compilezone\fR [\fB\-d\fR] [\fB\-j\fR] [\fB\-q\fR] [\fB\-v\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-C\ \fR\fB\fImode\fR\fR] [\fB\-f\ \fR\fB\fIformat\fR\fR] [\fB\-F\ \fR\fB\fIformat\fR\fR] [\fB\-J\ \fR\fB\fIfilename\fR\fR] [\fB\-i\ \fR\fB\fImode\fR\fR] [\fB\-k\ \fR\fB\fImode\fR\fR] [\fB\-m\ \fR\fB\fImode\fR\fR] [\fB\-n\ \fR\fB\fImode\fR\fR] [\fB\-l\ \fR\fB\fIttl\fR\fR] [\fB\-L\ \fR\fB\fIserial\fR\fR] [\fB\-r\ \fR\fB\fImode\fR\fR] [\fB\-s\ \fR\fB\fIstyle\fR\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] [\fB\-T\ \fR\fB\fImode\fR\fR] [\fB\-w\ \fR\fB\fIdirectory\fR\fR] [\fB\-D\fR] [\fB\-W\ \fR\fB\fImode\fR\fR] {\fB\-o\ \fR\fB\fIfilename\fR\fR} {zonename} {filename}
2001-03-29 19:08:35 -05:00
.SH "DESCRIPTION"
.PP
2005-10-12 23:14:05 -04:00
\fBnamed\-checkzone\fR
2015-10-06 01:45:21 -04:00
checks the syntax and integrity of a zone file\&. It performs the same checks as
2005-10-12 23:14:05 -04:00
\fBnamed\fR
2015-10-06 01:45:21 -04:00
does when loading a zone\&. This makes
2005-10-12 23:14:05 -04:00
\fBnamed\-checkzone\fR
2015-10-06 01:45:21 -04:00
useful for checking zone files before configuring them into a name server\&.
.PP
2005-10-12 23:14:05 -04:00
\fBnamed\-compilezone\fR
is similar to
2015-10-06 01:45:21 -04:00
\fBnamed\-checkzone\fR, but it always dumps the zone contents to a specified file in a specified format\&. Additionally, it applies stricter check levels by default, since the dump output will be used as an actual zone file loaded by
\fBnamed\fR\&. When manually specified otherwise, the check levels must at least be as strict as those specified in the
2005-10-12 23:14:05 -04:00
\fBnamed\fR
2015-10-06 01:45:21 -04:00
configuration file\&.
2001-03-29 19:08:35 -05:00
.SH "OPTIONS"
2006-12-11 20:45:21 -05:00
.PP
2005-05-11 02:05:43 -04:00
\-d
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Enable debugging\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2007-05-21 00:09:03 -04:00
\-h
.RS 4
2015-10-06 01:45:21 -04:00
Print the usage summary and exit\&.
2007-05-21 00:09:03 -04:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-q
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Quiet mode \- exit code only\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-v
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Print the version of the
\fBnamed\-checkzone\fR
2015-10-06 01:45:21 -04:00
program and exit\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-j
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
When loading a zone file, read the journal if it exists\&. The journal file name is assumed to be the zone file name appended with the string
\&.jnl\&.
2013-01-10 15:19:56 -05:00
.RE
.PP
\-J \fIfilename\fR
.RS 4
2015-10-06 01:45:21 -04:00
When loading the zone file read the journal from the given file, if it exists\&. (Implies \-j\&.)
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-c \fIclass\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify the class of the zone\&. If not specified, "IN" is assumed\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-19 08:34:34 -04:00
\-i \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Perform post\-load zone integrity checks\&. Possible modes are
2005-10-12 23:14:05 -04:00
\fB"full"\fR
(default),
\fB"full\-sibling"\fR,
\fB"local"\fR,
\fB"local\-sibling"\fR
and
2015-10-06 01:45:21 -04:00
\fB"none"\fR\&.
2005-10-12 23:14:05 -04:00
.sp
Mode
\fB"full"\fR
2015-10-06 01:45:21 -04:00
checks that MX records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames)\&. Mode
2005-10-12 23:14:05 -04:00
\fB"local"\fR
2015-10-06 01:45:21 -04:00
only checks MX records which refer to in\-zone hostnames\&.
2005-10-12 23:14:05 -04:00
.sp
Mode
\fB"full"\fR
2015-10-06 01:45:21 -04:00
checks that SRV records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames)\&. Mode
2005-10-12 23:14:05 -04:00
\fB"local"\fR
2015-10-06 01:45:21 -04:00
only checks SRV records which refer to in\-zone hostnames\&.
2005-10-12 23:14:05 -04:00
.sp
Mode
\fB"full"\fR
2015-10-06 01:45:21 -04:00
checks that delegation NS records refer to A or AAAA record (both in\-zone and out\-of\-zone hostnames)\&. It also checks that glue address records in the zone match those advertised by the child\&. Mode
2005-10-12 23:14:05 -04:00
\fB"local"\fR
2015-10-06 01:45:21 -04:00
only checks NS records which refer to in\-zone hostnames or that some required glue exists, that is when the nameserver is in a child zone\&.
2005-10-12 23:14:05 -04:00
.sp
Mode
\fB"full\-sibling"\fR
and
\fB"local\-sibling"\fR
disable sibling glue checks but are otherwise the same as
\fB"full"\fR
and
\fB"local"\fR
2015-10-06 01:45:21 -04:00
respectively\&.
2005-10-12 23:14:05 -04:00
.sp
Mode
\fB"none"\fR
2015-10-06 01:45:21 -04:00
disables the checks\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
\-f \fIformat\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify the format of the zone file\&. Possible formats are
2005-10-12 23:14:05 -04:00
\fB"text"\fR
2012-06-22 21:04:31 -04:00
(default),
\fB"raw"\fR, and
2015-10-06 01:45:21 -04:00
\fB"map"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
\-F \fIformat\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify the format of the output file specified\&. For
\fBnamed\-checkzone\fR, this does not cause any effects unless it dumps the zone contents\&.
2011-12-09 20:14:53 -05:00
.sp
Possible formats are
2005-10-12 23:14:05 -04:00
\fB"text"\fR
2012-06-22 21:04:31 -04:00
(default), which is the standard textual representation of the zone, and
2013-01-24 20:04:51 -05:00
\fB"map"\fR,
2012-06-22 21:04:31 -04:00
\fB"raw"\fR, and
2011-12-09 20:14:53 -05:00
\fB"raw=N"\fR, which store the zone in a binary format for rapid loading by
2015-10-06 01:45:21 -04:00
\fBnamed\fR\&.
2011-12-09 20:14:53 -05:00
\fB"raw=N"\fR
specifies the format version of the raw zone file: if N is 0, the raw file can be read by any version of
2015-10-06 01:45:21 -04:00
\fBnamed\fR; if N is 1, the file can be read by release 9\&.9\&.0 or higher; the default is 1\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-k \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Perform
2006-09-29 04:34:55 -04:00
\fB"check\-names"\fR
2015-10-06 01:45:21 -04:00
checks with the specified failure mode\&. Possible modes are
2005-10-12 23:14:05 -04:00
\fB"fail"\fR
(default for
\fBnamed\-compilezone\fR),
\fB"warn"\fR
(default for
\fBnamed\-checkzone\fR) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2014-02-20 14:19:27 -05:00
\-l \fIttl\fR
.RS 4
2015-10-06 01:45:21 -04:00
Sets a maximum permissible TTL for the input file\&. Any record with a TTL higher than this value will cause the zone to be rejected\&. This is similar to using the
2014-02-20 14:19:27 -05:00
\fBmax\-zone\-ttl\fR
option in
2015-10-06 01:45:21 -04:00
named\&.conf\&.
2014-02-20 14:19:27 -05:00
.RE
.PP
2011-12-22 13:10:11 -05:00
\-L \fIserial\fR
.RS 4
2015-10-06 01:45:21 -04:00
When compiling a zone to "raw" or "map" format, set the "source serial" value in the header to the specified serial number\&. (This is expected to be used primarily for testing purposes\&.)
2011-12-22 13:10:11 -05:00
.RE
.PP
2005-05-19 08:34:34 -04:00
\-m \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify whether MX records should be checked to see if they are addresses\&. Possible modes are
2005-10-12 23:14:05 -04:00
\fB"fail"\fR,
\fB"warn"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2006-01-05 20:55:39 -05:00
\-M \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Check if a MX record refers to a CNAME\&. Possible modes are
2006-01-05 20:55:39 -05:00
\fB"fail"\fR,
\fB"warn"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-n \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify whether NS records should be checked to see if they are addresses\&. Possible modes are
2005-10-12 23:14:05 -04:00
\fB"fail"\fR
(default for
\fBnamed\-compilezone\fR),
\fB"warn"\fR
(default for
\fBnamed\-checkzone\fR) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-o \fIfilename\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Write zone output to
2015-10-06 01:45:21 -04:00
filename\&. If
filename
2007-05-21 00:09:03 -04:00
is
2015-10-06 01:45:21 -04:00
\-
then write to standard out\&. This is mandatory for
\fBnamed\-compilezone\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2009-12-04 17:22:27 -05:00
\-r \fImode\fR
.RS 4
2015-10-06 01:45:21 -04:00
Check for records that are treated as different by DNSSEC but are semantically equal in plain DNS\&. Possible modes are
2009-12-04 17:22:27 -05:00
\fB"fail"\fR,
\fB"warn"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2009-12-04 17:22:27 -05:00
.RE
.PP
\-s \fIstyle\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Specify the style of the dumped zone file\&. Possible styles are
2005-10-12 23:14:05 -04:00
\fB"full"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"relative"\fR\&. The full format is most suitable for processing automatically by a separate script\&. On the other hand, the relative format is more human\-readable and is thus suitable for editing by hand\&. For
2005-10-12 23:14:05 -04:00
\fBnamed\-checkzone\fR
2015-10-06 01:45:21 -04:00
this does not cause any effects unless it dumps the zone contents\&. It also does not have any meaning if the output format is not text\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2006-01-05 20:55:39 -05:00
\-S \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Check if a SRV record refers to a CNAME\&. Possible modes are
2006-01-05 20:55:39 -05:00
\fB"fail"\fR,
\fB"warn"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-t \fIdirectory\fR
2006-12-11 20:45:21 -05:00
.RS 4
2007-05-08 23:33:51 -04:00
Chroot to
2015-10-06 01:45:21 -04:00
directory
2015-04-13 21:05:08 -04:00
so that include directives in the configuration file are processed as if run by a similarly chrooted
2015-10-06 01:45:21 -04:00
\fBnamed\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2013-04-30 00:23:14 -04:00
\-T \fImode\fR
.RS 4
2015-10-06 01:45:21 -04:00
Check if Sender Policy Framework (SPF) records exist and issues a warning if an SPF\-formatted TXT record is not also present\&. Possible modes are
2013-04-30 00:23:14 -04:00
\fB"warn"\fR
(default),
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2013-04-30 00:23:14 -04:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-w \fIdirectory\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
chdir to
2015-10-06 01:45:21 -04:00
directory
so that relative filenames in master file $INCLUDE directives work\&. This is similar to the directory clause in
named\&.conf\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-D
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Dump zone file in canonical format\&. This is always enabled for
\fBnamed\-compilezone\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\-W \fImode\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
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
2005-10-12 23:14:05 -04:00
\fB"warn"\fR
(default) and
2015-10-06 01:45:21 -04:00
\fB"ignore"\fR\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
zonename
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
The domain name of the zone being checked\&.
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
filename
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
The name of the zone file\&.
2006-12-11 20:45:21 -05:00
.RE
2001-03-29 19:08:35 -05:00
.SH "RETURN VALUES"
.PP
2005-10-12 23:14:05 -04:00
\fBnamed\-checkzone\fR
2015-10-06 01:45:21 -04:00
returns an exit status of 1 if errors were detected and 0 otherwise\&.
2001-03-29 19:08:35 -05:00
.SH "SEE ALSO"
.PP
2005-10-12 23:14:05 -04:00
\fBnamed\fR(8),
2015-10-06 01:45:21 -04:00
\fBnamed-checkconf\fR(8),
2005-10-12 23:14:05 -04:00
RFC 1035,
2015-10-06 01:45:21 -04:00
BIND 9 Administrator Reference Manual\&.
2001-03-29 19:08:35 -05:00
.SH "AUTHOR"
.PP
2015-10-06 01:45:21 -04:00
\fBInternet Systems Consortium, Inc\&.\fR
2006-06-29 09:03:32 -04:00
.SH "COPYRIGHT"
2006-12-11 20:45:21 -05:00
.br
2016-07-21 03:11:01 -04:00
Copyright \(co 2000-2002, 2004-2007, 2009-2016 Internet Systems Consortium, Inc. ("ISC")
2006-12-11 20:45:21 -05:00
.br