0N/A - Copyright (C) 2000-2018 Internet Systems Consortium, Inc. ("ISC") 0N/A - This Source Code Form is subject to the terms of the Mozilla Public 0N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 0N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
0N/A<
title>named-checkzone</
title>
0N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
0N/A<
link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
0N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
0N/A<
div class="navheader">
1460N/A<
table width="100%" summary="Navigation header">
0N/A<
tr><
th colspan="3" align="center"><
span class="application">named-checkzone</
span></
th></
tr>
0N/A<
td width="20%" align="left">
182N/A<
th width="60%" align="center">Manual pages</
th>
0N/A <
span class="application">named-checkzone</
span>,
0N/A <
span class="application">named-compilezone</
span>
0N/A — zone file validity checking or converting tool
0N/A <
div class="refsynopsisdiv">
1327N/A <
div class="cmdsynopsis"><
p>
1327N/A <
code class="command">named-checkzone</
code>
715N/A [<
code class="option">-d</
code>]
0N/A [<
code class="option">-h</
code>]
0N/A [<
code class="option">-j</
code>]
99N/A [<
code class="option">-q</
code>]
353N/A [<
code class="option">-v</
code>]
456N/A [<
code class="option">-c <
em class="replaceable"><
code>class</
code></
em></
code>]
1190N/A [<
code class="option">-f <
em class="replaceable"><
code>format</
code></
em></
code>]
1190N/A [<
code class="option">-F <
em class="replaceable"><
code>format</
code></
em></
code>]
1183N/A [<
code class="option">-J <
em class="replaceable"><
code>filename</
code></
em></
code>]
1183N/A [<
code class="option">-i <
em class="replaceable"><
code>mode</
code></
em></
code>]
330N/A [<
code class="option">-k <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-m <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-M <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-n <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-l <
em class="replaceable"><
code>ttl</
code></
em></
code>]
0N/A [<
code class="option">-L <
em class="replaceable"><
code>serial</
code></
em></
code>]
772N/A [<
code class="option">-o <
em class="replaceable"><
code>filename</
code></
em></
code>]
1470N/A [<
code class="option">-r <
em class="replaceable"><
code>mode</
code></
em></
code>]
1470N/A [<
code class="option">-s <
em class="replaceable"><
code>style</
code></
em></
code>]
1470N/A [<
code class="option">-S <
em class="replaceable"><
code>mode</
code></
em></
code>]
1470N/A [<
code class="option">-t <
em class="replaceable"><
code>directory</
code></
em></
code>]
772N/A [<
code class="option">-T <
em class="replaceable"><
code>mode</
code></
em></
code>]
772N/A [<
code class="option">-w <
em class="replaceable"><
code>directory</
code></
em></
code>]
772N/A [<
code class="option">-D</
code>]
772N/A [<
code class="option">-W <
em class="replaceable"><
code>mode</
code></
em></
code>]
1470N/A <
div class="cmdsynopsis"><
p>
1470N/A <
code class="command">named-compilezone</
code>
1327N/A [<
code class="option">-d</
code>]
772N/A [<
code class="option">-j</
code>]
772N/A [<
code class="option">-q</
code>]
772N/A [<
code class="option">-v</
code>]
715N/A [<
code class="option">-c <
em class="replaceable"><
code>class</
code></
em></
code>]
772N/A [<
code class="option">-C <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-f <
em class="replaceable"><
code>format</
code></
em></
code>]
1190N/A [<
code class="option">-F <
em class="replaceable"><
code>format</
code></
em></
code>]
0N/A [<
code class="option">-J <
em class="replaceable"><
code>filename</
code></
em></
code>]
0N/A [<
code class="option">-i <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-k <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-m <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-n <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-l <
em class="replaceable"><
code>ttl</
code></
em></
code>]
0N/A [<
code class="option">-L <
em class="replaceable"><
code>serial</
code></
em></
code>]
83N/A [<
code class="option">-r <
em class="replaceable"><
code>mode</
code></
em></
code>]
0N/A [<
code class="option">-s <
em class="replaceable"><
code>style</
code></
em></
code>]
1474N/A [<
code class="option">-t <
em class="replaceable"><
code>directory</
code></
em></
code>]
1474N/A [<
code class="option">-T <
em class="replaceable"><
code>mode</
code></
em></
code>]
1474N/A [<
code class="option">-w <
em class="replaceable"><
code>directory</
code></
em></
code>]
772N/A [<
code class="option">-D</
code>]
772N/A [<
code class="option">-W <
em class="replaceable"><
code>mode</
code></
em></
code>]
772N/A {<
code class="option">-o <
em class="replaceable"><
code>filename</
code></
em></
code>}
864N/A <
div class="refsection">
864N/A<
a name="id-1.14.22.7"></
a><
h2>DESCRIPTION</
h2>
864N/A <
p><
span class="command"><
strong>named-checkzone</
strong></
span>
1474N/A checks the syntax and integrity of a zone file. It performs the
864N/A same checks as <
span class="command"><
strong>named</
strong></
span> does when loading a
864N/A zone. This makes <
span class="command"><
strong>named-checkzone</
strong></
span> useful for
864N/A checking zone files before configuring them into a name server.
84N/A <
span class="command"><
strong>named-compilezone</
strong></
span> is similar to
84N/A <
span class="command"><
strong>named-checkzone</
strong></
span>, but it always dumps the
87N/A zone contents to a specified file in a specified format.
87N/A Additionally, it applies stricter check levels by default,
1190N/A since the dump output will be used as an actual zone file
84N/A loaded by <
span class="command"><
strong>named</
strong></
span>.
459N/A When manually specified otherwise, the check levels must at
543N/A least be as strict as those specified in the
543N/A <
span class="command"><
strong>named</
strong></
span> configuration file.
878N/A <
div class="refsection">
878N/A<
a name="id-1.14.22.8"></
a><
h2>OPTIONS</
h2>
1327N/A <
div class="variablelist"><
dl class="variablelist">
878N/A<
dt><
span class="term">-d</
span></
dt>
878N/A<
dt><
span class="term">-h</
span></
dt>
1182N/A Print the usage summary and exit.
1190N/A<
dt><
span class="term">-q</
span></
dt>
878N/A Quiet mode - exit code only.
878N/A<
dt><
span class="term">-v</
span></
dt>
84N/A Print the version of the <
span class="command"><
strong>named-checkzone</
strong></
span>
84N/A<
dt><
span class="term">-j</
span></
dt>
1183N/A When loading a zone file, read the journal if it exists.
0N/A The journal file name is assumed to be the zone file name
1473N/A appended with the string <
code class="filename">.jnl</
code>.
1183N/A<
dt><
span class="term">-J <
em class="replaceable"><
code>filename</
code></
em></
span></
dt>
1461N/A When loading the zone file read the journal from the given
615N/A file, if it exists. (Implies -j.)
829N/A<
dt><
span class="term">-c <
em class="replaceable"><
code>class</
code></
em></
span></
dt>
1466N/A Specify the class of the zone. If not specified, "IN" is assumed.
829N/A<
dt><
span class="term">-i <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1466N/A Perform post-load zone integrity checks. Possible modes are
1466N/A <
span class="command"><
strong>"full"</
strong></
span> (default),
829N/A <
span class="command"><
strong>"full-sibling"</
strong></
span>,
829N/A <
span class="command"><
strong>"local"</
strong></
span>,
1466N/A <
span class="command"><
strong>"local-sibling"</
strong></
span> and
1466N/A <
span class="command"><
strong>"none"</
strong></
span>.
839N/A Mode <
span class="command"><
strong>"full"</
strong></
span> checks that MX records
1466N/A refer to A or AAAA record (both in-zone and out-of-zone
1466N/A hostnames). Mode <
span class="command"><
strong>"local"</
strong></
span> only
1466N/A checks MX records which refer to in-zone hostnames.
1473N/A Mode <
span class="command"><
strong>"full"</
strong></
span> checks that SRV records
1466N/A refer to A or AAAA record (both in-zone and out-of-zone
1466N/A hostnames). Mode <
span class="command"><
strong>"local"</
strong></
span> only
1466N/A checks SRV records which refer to in-zone hostnames.
839N/A Mode <
span class="command"><
strong>"full"</
strong></
span> checks that delegation NS
1466N/A records refer to A or AAAA record (both in-zone and out-of-zone
1466N/A hostnames). It also checks that glue address records
1466N/A in the zone match those advertised by the child.
1466N/A Mode <
span class="command"><
strong>"local"</
strong></
span> only checks NS records which
1466N/A refer to in-zone hostnames or that some required glue exists,
1466N/A that is when the nameserver is in a child zone.
1466N/A Mode <
span class="command"><
strong>"full-sibling"</
strong></
span> and
1466N/A <
span class="command"><
strong>"local-sibling"</
strong></
span> disable sibling glue
1466N/A checks but are otherwise the same as <
span class="command"><
strong>"full"</
strong></
span>
1473N/A and <
span class="command"><
strong>"local"</
strong></
span> respectively.
1466N/A Mode <
span class="command"><
strong>"none"</
strong></
span> disables the checks.
1466N/A<
dt><
span class="term">-f <
em class="replaceable"><
code>format</
code></
em></
span></
dt>
1466N/A Specify the format of the zone file.
1466N/A Possible formats are <
span class="command"><
strong>"text"</
strong></
span> (default),
1466N/A <
span class="command"><
strong>"raw"</
strong></
span>, and <
span class="command"><
strong>"map"</
strong></
span>.
1466N/A<
dt><
span class="term">-F <
em class="replaceable"><
code>format</
code></
em></
span></
dt>
1466N/A Specify the format of the output file specified.
1466N/A For <
span class="command"><
strong>named-checkzone</
strong></
span>,
1466N/A this does not cause any effects unless it dumps the zone
1466N/A Possible formats are <
span class="command"><
strong>"text"</
strong></
span> (default),
1466N/A which is the standard textual representation of the zone,
1466N/A and <
span class="command"><
strong>"map"</
strong></
span>, <
span class="command"><
strong>"raw"</
strong></
span>,
1466N/A and <
span class="command"><
strong>"raw=N"</
strong></
span>, which store the zone in a
772N/A binary format for rapid loading by <
span class="command"><
strong>named</
strong></
span>.
25N/A <
span class="command"><
strong>"raw=N"</
strong></
span> specifies the format version of
829N/A the raw zone file: if N is 0, the raw file can be read by
829N/A any version of <
span class="command"><
strong>named</
strong></
span>; if N is 1, the file
1466N/A can be read by release 9.9.0 or higher; the default is 1.
1183N/A<
dt><
span class="term">-k <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
839N/A Perform <
span class="command"><
strong>"check-names"</
strong></
span> checks with the
839N/A Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>
25N/A (default for <
span class="command"><
strong>named-compilezone</
strong></
span>),
25N/A <
span class="command"><
strong>"warn"</
strong></
span>
829N/A (default for <
span class="command"><
strong>named-checkzone</
strong></
span>) and
0N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
0N/A<
dt><
span class="term">-l <
em class="replaceable"><
code>ttl</
code></
em></
span></
dt>
1473N/A Sets a maximum permissible TTL for the input file.
1473N/A Any record with a TTL higher than this value will cause
0N/A the zone to be rejected. This is similar to using the
1473N/A <
span class="command"><
strong>max-zone-ttl</
strong></
span> option in
543N/A<
dt><
span class="term">-L <
em class="replaceable"><
code>serial</
code></
em></
span></
dt>
353N/A When compiling a zone to "raw" or "map" format, set the
543N/A "source serial" value in the header to the specified serial
0N/A number. (This is expected to be used primarily for testing
0N/A<
dt><
span class="term">-m <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1466N/A Specify whether MX records should be checked to see if they
1466N/A are addresses. Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>,
1473N/A <
span class="command"><
strong>"warn"</
strong></
span> (default) and
1466N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
256N/A<
dt><
span class="term">-M <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1183N/A Check if a MX record refers to a CNAME.
1183N/A Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>,
1183N/A <
span class="command"><
strong>"warn"</
strong></
span> (default) and
1470N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
93N/A<
dt><
span class="term">-n <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1466N/A Specify whether NS records should be checked to see if they
1473N/A Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>
1466N/A (default for <
span class="command"><
strong>named-compilezone</
strong></
span>),
1466N/A <
span class="command"><
strong>"warn"</
strong></
span>
93N/A (default for <
span class="command"><
strong>named-checkzone</
strong></
span>) and
93N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
435N/A<
dt><
span class="term">-o <
em class="replaceable"><
code>filename</
code></
em></
span></
dt>
93N/A Write zone output to <
code class="filename">filename</
code>.
1190N/A If <
code class="filename">filename</
code> is <
code class="filename">-</
code> then
93N/A This is mandatory for <
span class="command"><
strong>named-compilezone</
strong></
span>.
1463N/A<
dt><
span class="term">-r <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1463N/A Check for records that are treated as different by DNSSEC but
1460N/A are semantically equal in plain DNS.
1473N/A Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>,
1473N/A <
span class="command"><
strong>"warn"</
strong></
span> (default) and
1474N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
1460N/A<
dt><
span class="term">-s <
em class="replaceable"><
code>style</
code></
em></
span></
dt>
1474N/A Specify the style of the dumped zone file.
1475N/A Possible styles are <
span class="command"><
strong>"full"</
strong></
span> (default)
1475N/A and <
span class="command"><
strong>"relative"</
strong></
span>.
1475N/A The full format is most suitable for processing
1475N/A automatically by a separate script.
1475N/A On the other hand, the relative format is more
1463N/A human-readable and is thus suitable for editing by hand.
1475N/A For <
span class="command"><
strong>named-checkzone</
strong></
span>
1475N/A this does not cause any effects unless it dumps the zone
1475N/A It also does not have any meaning if the output format
1475N/A<
dt><
span class="term">-S <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1475N/A Check if a SRV record refers to a CNAME.
1475N/A Possible modes are <
span class="command"><
strong>"fail"</
strong></
span>,
1475N/A <
span class="command"><
strong>"warn"</
strong></
span> (default) and
1475N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
1475N/A<
dt><
span class="term">-t <
em class="replaceable"><
code>directory</
code></
em></
span></
dt>
1463N/A Chroot to <
code class="filename">directory</
code> so that
1463N/A directives in the configuration file are processed as if
1463N/A run by a similarly chrooted <
span class="command"><
strong>named</
strong></
span>.
1460N/A<
dt><
span class="term">-T <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
1183N/A Check if Sender Policy Framework (SPF) records exist
1190N/A and issues a warning if an SPF-formatted TXT record is
1183N/A not also present. Possible modes are <
span class="command"><
strong>"warn"</
strong></
span>
993N/A (default), <
span class="command"><
strong>"ignore"</
strong></
span>.
993N/A<
dt><
span class="term">-w <
em class="replaceable"><
code>directory</
code></
em></
span></
dt>
993N/A chdir to <
code class="filename">directory</
code> so that
993N/A filenames in master file $INCLUDE directives work. This
1190N/A is similar to the directory clause in
1183N/A<
dt><
span class="term">-D</
span></
dt>
314N/A Dump zone file in canonical format.
314N/A This is always enabled for <
span class="command"><
strong>named-compilezone</
strong></
span>.
1327N/A<
dt><
span class="term">-W <
em class="replaceable"><
code>mode</
code></
em></
span></
dt>
314N/A Specify whether to check for non-terminal wildcards.
1327N/A Non-terminal wildcards are almost always the result of a
1327N/A failure to understand the wildcard matching algorithm (RFC 1034).
314N/A Possible modes are <
span class="command"><
strong>"warn"</
strong></
span> (default)
1250N/A <
span class="command"><
strong>"ignore"</
strong></
span>.
1250N/A<
dt><
span class="term">zonename</
span></
dt>
1250N/A The domain name of the zone being checked.
1250N/A<
dt><
span class="term">filename</
span></
dt>
314N/A The name of the zone file.
664N/A<
a name="id-1.14.22.9"></
a><
h2>RETURN VALUES</
h2>
460N/A <
p><
span class="command"><
strong>named-checkzone</
strong></
span>
317N/A returns an exit status of 1 if
314N/A errors were detected and 0 otherwise.
1182N/A<
a name="id-1.14.22.10"></
a><
h2>SEE ALSO</
h2>
1182N/A <
p><
span class="citerefentry">
1190N/A <
span class="refentrytitle">named</
span>(8)
314N/A <
span class="citerefentry">
314N/A <
span class="refentrytitle">named-checkconf</
span>(8)
314N/A <
em class="citetitle">RFC 1035</
em>,
1327N/A <
em class="citetitle">BIND 9 Administrator Reference Manual</
em>.
11N/A<
table width="100%" summary="Navigation footer">
99N/A<
td width="40%" align="left">
664N/A<
td width="40%" align="left" valign="top">
1470N/A<
span class="application">named-checkconf</
span>�</
td>
1470N/A<
td width="40%" align="right" valign="top">�<
span class="application">named-journalprint</
span>