man.named-checkzone.html revision 8e821eea5f57ac47a94305aa7ab0c3570d92a311
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - Copyright (C) 2000-2003 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - purpose with or without fee is hereby granted, provided that the above
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - copyright notice and this permission notice appear in all copies.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - PERFORMANCE OF THIS SOFTWARE.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<!-- $Id: man.named-checkzone.html,v 1.144 2009/10/23 01:14:48 tbox Exp $ -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<link rel="next" href="man.named.html" title="named">
194e2dfffa6a167b8eef0ad11864026b423a1c30Mark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews<tr><th colspan="3" align="center"><span class="application">named-checkzone</span></th></tr>
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<td width="20%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<a name="man.named-checkzone"></a><div class="titlepage"></div>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson<div class="cmdsynopsis"><p><code class="command">named-checkzone</code> [<code class="option">-d</code>] [<code class="option">-h</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">-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">-S <em class="replaceable"><code>mode</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>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson<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">-C <em class="replaceable"><code>mode</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>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<p><span><strong class="command">named-checkzone</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checks the syntax and integrity of a zone file. It performs the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein same checks as <span><strong class="command">named</strong></span> does when loading a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checking zone files before configuring them into a name server.
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson <span><strong class="command">named-compilezone</strong></span> is similar to
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews zone contents to a specified file in a specified format.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson Additionally, it applies stricter check levels by default,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein since the dump output will be used as an actual zone file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein loaded by <span><strong class="command">named</strong></span>.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein When manually specified otherwise, the check levels must at
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein least be as strict as those specified in the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">named</strong></span> configuration file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Enable debugging.
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson Print the usage summary and exit.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Quiet mode - exit code only.
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson Print the version of the <span><strong class="command">named-checkzone</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein program and exit.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein When loading the zone file read the journal if it exists.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify the class of the zone. If not specified, "IN" is assumed.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Perform post-load zone integrity checks. Possible modes are
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"full"</strong></span> (default),
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"full-sibling"</strong></span>,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"local"</strong></span>,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"local-sibling"</strong></span> and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"none"</strong></span>.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"full"</strong></span> checks that MX records
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein refer to A or AAAA record (both in-zone and out-of-zone
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein hostnames). Mode <span><strong class="command">"local"</strong></span> only
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checks MX records which refer to in-zone hostnames.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"full"</strong></span> checks that SRV records
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein refer to A or AAAA record (both in-zone and out-of-zone
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein hostnames). Mode <span><strong class="command">"local"</strong></span> only
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checks SRV records which refer to in-zone hostnames.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein records refer to A or AAAA record (both in-zone and out-of-zone
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein hostnames). It also checks that glue address records
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein in the zone match those advertised by the child.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"local"</strong></span> only checks NS records which
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein refer to in-zone hostnames or that some required glue exists,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein that is when the nameserver is in a child zone.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"full-sibling"</strong></span> and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"local-sibling"</strong></span> disable sibling glue
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checks but are otherwise the same as <span><strong class="command">"full"</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein and <span><strong class="command">"local"</strong></span> respectively.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Mode <span><strong class="command">"none"</strong></span> disables the checks.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify the format of the zone file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Possible formats are <span><strong class="command">"text"</strong></span> (default)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein and <span><strong class="command">"raw"</strong></span>.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify the format of the output file specified.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Possible formats are <span><strong class="command">"text"</strong></span> (default)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt and <span><strong class="command">"raw"</strong></span>.
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson For <span><strong class="command">named-checkzone</strong></span>,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt this does not cause any effects unless it dumps the zone
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt Perform <span><strong class="command">"check-names"</strong></span> checks with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt specified failure mode.
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews Possible modes are <span><strong class="command">"fail"</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (default for <span><strong class="command">named-compilezone</strong></span>),
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"warn"</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (default for <span><strong class="command">named-checkzone</strong></span>) and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"ignore"</strong></span>.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify whether MX records should be checked to see if they
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"warn"</strong></span> (default) and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"ignore"</strong></span>.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Check if a MX record refers to a CNAME.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Possible modes are <span><strong class="command">"fail"</strong></span>,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"warn"</strong></span> (default) and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"ignore"</strong></span>.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews Specify whether NS records should be checked to see if they
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein are addresses.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Possible modes are <span><strong class="command">"fail"</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (default for <span><strong class="command">named-compilezone</strong></span>),
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"warn"</strong></span>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (default for <span><strong class="command">named-checkzone</strong></span>) and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <span><strong class="command">"ignore"</strong></span>.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>