man.named-checkzone.html revision c80e152862cc3e3207dc837fde7116bd4c0e4b9d
0N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
0N/A<!--
0N/A - Copyright (C) 2000-2018 Internet Systems Consortium, Inc. ("ISC")
0N/A -
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 - file, You can obtain one at http://mozilla.org/MPL/2.0/.
0N/A-->
0N/A<html lang="en">
0N/A<head>
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<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
0N/A<link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
0N/A<link rel="next" href="man.named-journalprint.html" title="named-journalprint">
0N/A</head>
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<tr>
0N/A<td width="20%" align="left">
182N/A<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
182N/A<th width="60%" align="center">Manual pages</th>
182N/A<td width="20%" align="right">�<a accesskey="n" href="man.named-journalprint.html">Next</a>
240N/A</td>
966N/A</tr>
1460N/A</table>
1460N/A<hr>
8N/A</div>
240N/A<div class="refentry">
8N/A<a name="man.named-checkzone"></a><div class="titlepage"></div>
879N/A
701N/A
701N/A
701N/A
416N/A
590N/A
1327N/A
1462N/A <div class="refnamediv">
58N/A<h2>Name</h2>
186N/A<p>
0N/A <span class="application">named-checkzone</span>,
0N/A <span class="application">named-compilezone</span>
0N/A &#8212; zone file validity checking or converting tool
0N/A </p>
0N/A</div>
0N/A
0N/A <div class="refsynopsisdiv">
439N/A<h2>Synopsis</h2>
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>]
772N/A {zonename}
772N/A {filename}
772N/A </p></div>
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>}
772N/A {zonename}
772N/A {filename}
772N/A </p></div>
864N/A </div>
864N/A
864N/A <div class="refsection">
864N/A<a name="id-1.14.22.7"></a><h2>DESCRIPTION</h2>
864N/A
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 </p>
84N/A <p>
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.
290N/A </p>
176N/A </div>
543N/A
878N/A <div class="refsection">
878N/A<a name="id-1.14.22.8"></a><h2>OPTIONS</h2>
878N/A
878N/A
1327N/A <div class="variablelist"><dl class="variablelist">
878N/A<dt><span class="term">-d</span></dt>
1182N/A<dd>
1474N/A <p>
1182N/A Enable debugging.
1190N/A </p>
1182N/A </dd>
878N/A<dt><span class="term">-h</span></dt>
1182N/A<dd>
878N/A <p>
1182N/A Print the usage summary and exit.
1474N/A </p>
1190N/A </dd>
1190N/A<dt><span class="term">-q</span></dt>
1182N/A<dd>
1474N/A <p>
878N/A Quiet mode - exit code only.
1474N/A </p>
1384N/A </dd>
878N/A<dt><span class="term">-v</span></dt>
878N/A<dd>
878N/A <p>
84N/A Print the version of the <span class="command"><strong>named-checkzone</strong></span>
176N/A program and exit.
543N/A </p>
84N/A </dd>
84N/A<dt><span class="term">-j</span></dt>
84N/A<dd>
1190N/A <p>
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>.
1473N/A </p>
615N/A </dd>
1183N/A<dt><span class="term">-J <em class="replaceable"><code>filename</code></em></span></dt>
1183N/A<dd>
0N/A <p>
1461N/A When loading the zone file read the journal from the given
615N/A file, if it exists. (Implies -j.)
839N/A </p>
829N/A </dd>
829N/A<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
829N/A<dd>
829N/A <p>
1466N/A Specify the class of the zone. If not specified, "IN" is assumed.
1466N/A </p>
1466N/A </dd>
829N/A<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
1473N/A<dd>
1473N/A <p>
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 </p>
839N/A <p>
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.
839N/A </p>
1473N/A <p>
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.
1466N/A </p>
839N/A <p>
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 </p>
1466N/A <p>
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.
1473N/A </p>
1466N/A <p>
1466N/A Mode <span class="command"><strong>"none"</strong></span> disables the checks.
1466N/A </p>
1466N/A </dd>
1466N/A<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
1466N/A<dd>
1466N/A <p>
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 </p>
1466N/A </dd>
1466N/A<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
1466N/A<dd>
1466N/A <p>
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 contents.
1466N/A </p>
1466N/A <p>
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.
1470N/A </p>
1190N/A </dd>
1183N/A<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
887N/A<dd>
1466N/A <p>
839N/A Perform <span class="command"><strong>"check-names"</strong></span> checks with the
1466N/A specified failure mode.
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>.
50N/A </p>
0N/A </dd>
0N/A<dt><span class="term">-l <em class="replaceable"><code>ttl</code></em></span></dt>
1473N/A<dd>
1473N/A <p>
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
0N/A <code class="filename">named.conf</code>.
1190N/A </p>
1183N/A </dd>
543N/A<dt><span class="term">-L <em class="replaceable"><code>serial</code></em></span></dt>
543N/A<dd>
353N/A <p>
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
543N/A purposes.)
0N/A </p>
1190N/A </dd>
0N/A<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
0N/A<dd>
1466N/A <p>
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>.
1466N/A </p>
0N/A </dd>
256N/A<dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
290N/A<dd>
703N/A <p>
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>.
1183N/A </p>
0N/A </dd>
93N/A<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
93N/A<dd>
1466N/A <p>
1466N/A Specify whether NS records should be checked to see if they
93N/A are addresses.
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>.
176N/A </p>
290N/A </dd>
435N/A<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
298N/A<dd>
176N/A <p>
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
176N/A write to standard out.
93N/A This is mandatory for <span class="command"><strong>named-compilezone</strong></span>.
93N/A </p>
1460N/A </dd>
1463N/A<dt><span class="term">-r <em class="replaceable"><code>mode</code></em></span></dt>
1463N/A<dd>
1463N/A <p>
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>.
1474N/A </p>
1463N/A </dd>
1460N/A<dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
1474N/A<dd>
1474N/A <p>
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 contents.
1475N/A It also does not have any meaning if the output format
1475N/A is not text.
1475N/A </p>
1475N/A </dd>
1475N/A<dt><span class="term">-S <em class="replaceable"><code>mode</code></em></span></dt>
1475N/A<dd>
1475N/A <p>
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 </p>
1475N/A </dd>
1475N/A<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
1475N/A<dd>
1463N/A <p>
1463N/A Chroot to <code class="filename">directory</code> so that
1463N/A include
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>.
1463N/A </p>
1460N/A </dd>
1460N/A<dt><span class="term">-T <em class="replaceable"><code>mode</code></em></span></dt>
1460N/A<dd>
1460N/A <p>
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>.
317N/A </p>
317N/A </dd>
993N/A<dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
993N/A<dd>
993N/A <p>
993N/A chdir to <code class="filename">directory</code> so that
993N/A relative
993N/A filenames in master file $INCLUDE directives work. This
1190N/A is similar to the directory clause in
1183N/A <code class="filename">named.conf</code>.
993N/A </p>
1183N/A </dd>
1183N/A<dt><span class="term">-D</span></dt>
314N/A<dd>
314N/A <p>
314N/A Dump zone file in canonical format.
314N/A This is always enabled for <span class="command"><strong>named-compilezone</strong></span>.
314N/A </p>
1327N/A </dd>
1327N/A<dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
1327N/A<dd>
1327N/A <p>
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 and
1250N/A <span class="command"><strong>"ignore"</strong></span>.
1474N/A </p>
1250N/A </dd>
1250N/A<dt><span class="term">zonename</span></dt>
1327N/A<dd>
1250N/A <p>
1250N/A The domain name of the zone being checked.
1250N/A </p>
1250N/A </dd>
1250N/A<dt><span class="term">filename</span></dt>
1250N/A<dd>
1250N/A <p>
314N/A The name of the zone file.
314N/A </p>
314N/A </dd>
1470N/A</dl></div>
1327N/A
1183N/A </div>
314N/A
1190N/A <div class="refsection">
664N/A<a name="id-1.14.22.9"></a><h2>RETURN VALUES</h2>
191N/A
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.
460N/A </p>
1327N/A </div>
1190N/A
1182N/A <div class="refsection">
1182N/A<a name="id-1.14.22.10"></a><h2>SEE ALSO</h2>
1190N/A
1182N/A <p><span class="citerefentry">
1190N/A <span class="refentrytitle">named</span>(8)
1182N/A </span>,
314N/A <span class="citerefentry">
314N/A <span class="refentrytitle">named-checkconf</span>(8)
1190N/A </span>,
314N/A <em class="citetitle">RFC 1035</em>,
1327N/A <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
1327N/A </p>
1327N/A </div>
1327N/A
314N/A</div>
191N/A<div class="navfooter">
1190N/A<hr>
11N/A<table width="100%" summary="Navigation footer">
1190N/A<tr>
99N/A<td width="40%" align="left">
99N/A<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
99N/A<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
1190N/A<td width="40%" align="right">�<a accesskey="n" href="man.named-journalprint.html">Next</a>
99N/A</td>
99N/A</tr>
290N/A<tr>
664N/A<td width="40%" align="left" valign="top">
1470N/A<span class="application">named-checkconf</span>�</td>
1473N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
1470N/A<td width="40%" align="right" valign="top">�<span class="application">named-journalprint</span>
664N/A</td>
58N/A</tr>
58N/A</table>
203N/A</div>
203N/A<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.3rc2 (Extended Support Version)</p>
203N/A</body>
203N/A</html>
1470N/A