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