98N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") 1088N/A - Copyright (C) 2000-2002 Internet Software Consortium. 98N/A - Permission to use, copy, modify, and distribute this software for any 919N/A - purpose with or without fee is hereby granted, provided that the above 919N/A - copyright notice and this permission notice appear in all copies. 919N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 919N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 919N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 919N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 919N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 919N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 919N/A - PERFORMANCE OF THIS SOFTWARE. 919N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
919N/A<
title>named-checkzone</
title>
919N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
98N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><
div class="refentry" lang="en">
98N/A<
div class="refnamediv">
98N/A<
p><
span class="application">named-checkzone</
span>, <
span class="application">named-compilezone</
span> — zone file validity checking or converting tool</
p>
98N/A<
div class="refsynopsisdiv">
98N/A<
div class="cmdsynopsis"><
p><
code class="command">named-checkzone</
code> [<
code class="option">-d</
code>] [<
code class="option">-j</
code>] [<
code class="option">-q</
code>] [<
code class="option">-v</
code>] [<
code class="option">-c <
em class="replaceable"><
code>class</
code></
em></
code>] [<
code class="option">-f <
em class="replaceable"><
code>format</
code></
em></
code>] [<
code class="option">-F <
em class="replaceable"><
code>format</
code></
em></
code>] [<
code class="option">-i <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-k <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-m <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-n <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-o <
em class="replaceable"><
code>filename</
code></
em></
code>] [<
code class="option">-s <
em class="replaceable"><
code>style</
code></
em></
code>] [<
code class="option">-t <
em class="replaceable"><
code>directory</
code></
em></
code>] [<
code class="option">-w <
em class="replaceable"><
code>directory</
code></
em></
code>] [<
code class="option">-D</
code>] [<
code class="option">-W <
em class="replaceable"><
code>mode</
code></
em></
code>] {zonename} {filename}</
p></
div>
98N/A<
div class="cmdsynopsis"><
p><
code class="command">named-compilezone</
code> [<
code class="option">-d</
code>] [<
code class="option">-j</
code>] [<
code class="option">-q</
code>] [<
code class="option">-v</
code>] [<
code class="option">-c <
em class="replaceable"><
code>class</
code></
em></
code>] [<
code class="option">-f <
em class="replaceable"><
code>format</
code></
em></
code>] [<
code class="option">-F <
em class="replaceable"><
code>format</
code></
em></
code>] [<
code class="option">-i <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-k <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-m <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-n <
em class="replaceable"><
code>mode</
code></
em></
code>] [<
code class="option">-o <
em class="replaceable"><
code>filename</
code></
em></
code>] [<
code class="option">-s <
em class="replaceable"><
code>style</
code></
em></
code>] [<
code class="option">-t <
em class="replaceable"><
code>directory</
code></
em></
code>] [<
code class="option">-w <
em class="replaceable"><
code>directory</
code></
em></
code>] [<
code class="option">-D</
code>] [<
code class="option">-W <
em class="replaceable"><
code>mode</
code></
em></
code>] {zonename} {filename}</
p></
div>
1116N/A<
div class="refsect1" lang="en">
98N/A<
a name="id2514880"></
a><
h2>DESCRIPTION</
h2>
156N/A<
p><
span><
strong class="command">named-checkzone</
strong></
span>
98N/A checks the syntax and integrity of a zone file. It performs the
851N/A same checks as <
span><
strong class="command">named</
strong></
span> does when loading a
159N/A zone. This makes <
span><
strong class="command">named-checkzone</
strong></
span> useful for
764N/A checking zone files before configuring them into a name server.
199N/A <
span><
strong class="command">named-compilezone</
strong></
span> is similar to
606N/A <
span><
strong class="command">named-checkzone</
strong></
span>, but it always dumps the
98N/A zone contents to a specified file in a specified format.
98N/A Additionally, it applies stricter check levels by default,
606N/A since the dump output will be used as an actual zone file
606N/A loaded by <
span><
strong class="command">named</
strong></
span>.
98N/A When manaully specified otherwise, the check levels must at
98N/A least be as strict as those specified in the
606N/A <
span><
strong class="command">named</
strong></
span> configuration file.
606N/A<
div class="refsect1" lang="en">
705N/A<
a name="id2514915"></
a><
h2>OPTIONS</
h2>
851N/A<
div class="variablelist"><
dl>
705N/A<
dt><
span class="term">-d</
span></
dt>
851N/A<
dt><
span class="term">-q</
span></
dt>
705N/A Quiet mode - exit code only.
705N/A<
dt><
span class="term">-v</
span></
dt>
705N/A Print the version of the <
span><
strong class="command">named-checkzone</
strong></
span>
705N/A<
dt><
span class="term">-j</
span></
dt>
1036N/A When loading the zone file read the journal if it exists.
1036N/A<
dt><
span class="term">-c <
em class="replaceable"><
code>class</
code></
em></
span></
dt>
1036N/A Specify the class of the zone. If not specified "IN" is assumed.
1036N/A<
dt><
span class="term">-i <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
606N/A Perform post load zone integrity checks. Possible modes are
1088N/A <
span><
strong class="command">"full"</
strong></
span> (default),
1036N/A <
span><
strong class="command">"full-sibling"</
strong></
span>,
1036N/A <
span><
strong class="command">"local"</
strong></
span>,
1036N/A <
span><
strong class="command">"local-sibling"</
strong></
span> and
1036N/A <
span><
strong class="command">"none"</
strong></
span>.
1036N/A Mode <
span><
strong class="command">"full"</
strong></
span> checks that MX records
1036N/A refer to A or AAAA record (both in-zone and out-of-zone
1036N/A hostnames). Mode <
span><
strong class="command">"local"</
strong></
span> only
98N/A checks MX records which refer to in-zone hostnames.
98N/A Mode <
span><
strong class="command">"full"</
strong></
span> checks that SRV records
493N/A refer to A or AAAA record (both in-zone and out-of-zone
967N/A hostnames). Mode <
span><
strong class="command">"local"</
strong></
span> only
98N/A checks SRV records which refer to in-zone hostnames.
967N/A Mode <
span><
strong class="command">"full"</
strong></
span> checks that delegation NS
810N/A records refer to A or AAAA record (both in-zone and out-of-zone
810N/A hostnames). It also checks that glue addresses records
810N/A in the zone match those advertised by the child.
810N/A Mode <
span><
strong class="command">"local"</
strong></
span> 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.
Mode <
span><
strong class="command">"full-sibling"</
strong></
span> and
<
span><
strong class="command">"local-sibling"</
strong></
span> disable sibling glue
checks but are otherwise the same as <
span><
strong class="command">"full"</
strong></
span>
and <
span><
strong class="command">"local"</
strong></
span> respectively.
Mode <
span><
strong class="command">"none"</
strong></
span> disables the checks.
<
dt><
span class="term">-f <
em class="replaceable"><
code>format</
code></
em></
span></
dt>
Specify the format of the zone file.
Possible formats are <
span><
strong class="command">"text"</
strong></
span> (default)
and <
span><
strong class="command">"raw"</
strong></
span>.
<
dt><
span class="term">-F <
em class="replaceable"><
code>format</
code></
em></
span></
dt>
Specify the format of the output file specified.
Possible formats are <
span><
strong class="command">"text"</
strong></
span> (default)
and <
span><
strong class="command">"raw"</
strong></
span>.
For <
span><
strong class="command">named-checkzone</
strong></
span>,
this does not cause any effects unless it dumps the zone
<
dt><
span class="term">-k <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
Perform <
span><
strong class="command">"check-name"</
strong></
span> checks with the
Possible modes are <
span><
strong class="command">"fail"</
strong></
span>
(default for <
span><
strong class="command">named-compilezone</
strong></
span>),
<
span><
strong class="command">"warn"</
strong></
span>
(default for <
span><
strong class="command">named-checkzone</
strong></
span>) and
<
span><
strong class="command">"ignore"</
strong></
span>.
<
dt><
span class="term">-m <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
Specify whether MX records should be checked to see if they
are addresses. Possible modes are <
span><
strong class="command">"fail"</
strong></
span>,
<
span><
strong class="command">"warn"</
strong></
span> (default) and
<
span><
strong class="command">"ignore"</
strong></
span>.
<
dt><
span class="term">-n <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
Specify whether NS records should be checked to see if they
Possible modes are <
span><
strong class="command">"fail"</
strong></
span>
(default for <
span><
strong class="command">named-compilezone</
strong></
span>),
<
span><
strong class="command">"warn"</
strong></
span>
(default for <
span><
strong class="command">named-checkzone</
strong></
span>) and
<
span><
strong class="command">"ignore"</
strong></
span>.
<
dt><
span class="term">-o <
em class="replaceable"><
code>filename</
code></
em></
span></
dt>
Write zone output to <
code class="filename">filename</
code>.
This is mandatory for <
span><
strong class="command">named-compilezone</
strong></
span>.
<
dt><
span class="term">-s <
em class="replaceable"><
code>style</
code></
em></
span></
dt>
Specify the style of the dumped zone file.
Possible styles are <
span><
strong class="command">"full"</
strong></
span> (default)
and <
span><
strong class="command">"default"</
strong></
span>.
The full format is most suitable for processing
automatically by a separate script.
On the other hand, the default format is more
human-readable and is thus suitable for editing by hand.
For <
span><
strong class="command">named-checkzone</
strong></
span>
this does not cause any effects unless it dumps the zone
It also does not have any meaning if the output format
<
dt><
span class="term">-t <
em class="replaceable"><
code>directory</
code></
em></
span></
dt>
chroot to <
code class="filename">directory</
code> so that
directives in the configuration file are processed as if
run by a similarly chrooted named.
<
dt><
span class="term">-w <
em class="replaceable"><
code>directory</
code></
em></
span></
dt>
chdir to <
code class="filename">directory</
code> so that
filenames in master file $INCLUDE directives work. This
is similar to the directory clause in
<
dt><
span class="term">-D</
span></
dt>
Dump zone file in canonical format.
This is always enabled for <
span><
strong class="command">named-compilezone</
strong></
span>.
<
dt><
span class="term">-W <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
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 <
span><
strong class="command">"warn"</
strong></
span> (default)
<
span><
strong class="command">"ignore"</
strong></
span>.
<
dt><
span class="term">zonename</
span></
dt>
The domain name of the zone being checked.
<
dt><
span class="term">filename</
span></
dt>
The name of the zone file.
<
div class="refsect1" lang="en">
<
a name="id2515461"></
a><
h2>RETURN VALUES</
h2>
<
p><
span><
strong class="command">named-checkzone</
strong></
span>
returns an exit status of 1 if
errors were detected and 0 otherwise.
<
div class="refsect1" lang="en">
<
a name="id2515473"></
a><
h2>SEE ALSO</
h2>
<
p><
span class="citerefentry"><
span class="refentrytitle">named</
span>(8)</
span>,
<
em class="citetitle">RFC 1035</
em>,
<
em class="citetitle">BIND 9 Administrator Reference Manual</
em>.
<
div class="refsect1" lang="en">
<
a name="id2515497"></
a><
h2>AUTHOR</
h2>
<
p><
span class="corpauthor">Internet Systems Consortium</
span>