man.named-checkzone.html revision bf056b7184b38281c1b0bf0cf21b5982fa1a4eda
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - Copyright (C) 2000-2003 Internet Software Consortium.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - Permission to use, copy, modify, and distribute this software for any
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - purpose with or without fee is hereby granted, provided that the above
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin - copyright notice and this permission notice appear in all copies.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - PERFORMANCE OF THIS SOFTWARE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<!-- $Id: man.named-checkzone.html,v 1.36 2006/09/29 08:34:55 marka Exp $ -->
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<tr><th colspan="3" align="center"><span class="application">named-checkzone</span></th></tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a name="man.named-checkzone"></a><div class="titlepage"></div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<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">-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>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<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>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span><strong class="command">named-checkzone</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin checks the syntax and integrity of a zone file. It performs the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin same checks as <span><strong class="command">named</strong></span> does when loading a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin checking zone files before configuring them into a name server.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">named-compilezone</strong></span> is similar to
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin zone contents to a specified file in a specified format.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Additionally, it applies stricter check levels by default,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin since the dump output will be used as an actual zone file
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin loaded by <span><strong class="command">named</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin When manaully specified otherwise, the check levels must at
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin least be as strict as those specified in the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">named</strong></span> configuration file.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Enable debugging.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Quiet mode - exit code only.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Print the version of the <span><strong class="command">named-checkzone</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin program and exit.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin When loading the zone file read the journal if it exists.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify the class of the zone. If not specified "IN" is assumed.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Perform post load zone integrity checks. Possible modes are
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"full"</strong></span> (default),
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"full-sibling"</strong></span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"local-sibling"</strong></span> and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"full"</strong></span> checks that MX records
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin refer to A or AAAA record (both in-zone and out-of-zone
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin hostnames). Mode <span><strong class="command">"local"</strong></span> only
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin checks MX records which refer to in-zone hostnames.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"full"</strong></span> checks that SRV records
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin refer to A or AAAA record (both in-zone and out-of-zone
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin hostnames). Mode <span><strong class="command">"local"</strong></span> only
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin checks SRV records which refer to in-zone hostnames.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin records refer to A or AAAA record (both in-zone and out-of-zone
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin hostnames). It also checks that glue addresses records
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin in the zone match those advertised by the child.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"local"</strong></span> only checks NS records which
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin refer to in-zone hostnames or that some required glue exists,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin that is when the nameserver is in a child zone.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"full-sibling"</strong></span> and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"local-sibling"</strong></span> disable sibling glue
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin checks but are otherwise the same as <span><strong class="command">"full"</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin and <span><strong class="command">"local"</strong></span> respectively.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Mode <span><strong class="command">"none"</strong></span> disables the checks.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify the format of the zone file.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible formats are <span><strong class="command">"text"</strong></span> (default)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin and <span><strong class="command">"raw"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify the format of the output file specified.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible formats are <span><strong class="command">"text"</strong></span> (default)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin and <span><strong class="command">"raw"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin For <span><strong class="command">named-checkzone</strong></span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin this does not cause any effects unless it dumps the zone
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Perform <span><strong class="command">"check-names"</strong></span> checks with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin specified failure mode.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible modes are <span><strong class="command">"fail"</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (default for <span><strong class="command">named-compilezone</strong></span>),
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (default for <span><strong class="command">named-checkzone</strong></span>) and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify whether MX records should be checked to see if they
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"warn"</strong></span> (default) and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Check if a MX record refers to a CNAME.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible modes are <span><strong class="command">"fail"</strong></span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"warn"</strong></span> (default) and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify whether NS records should be checked to see if they
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin are addresses.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible modes are <span><strong class="command">"fail"</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (default for <span><strong class="command">named-compilezone</strong></span>),
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (default for <span><strong class="command">named-checkzone</strong></span>) and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Write zone output to <code class="filename">filename</code>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin This is mandatory for <span><strong class="command">named-compilezone</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify the style of the dumped zone file.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible styles are <span><strong class="command">"full"</strong></span> (default)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin and <span><strong class="command">"relative"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin The full format is most suitable for processing
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin automatically by a separate script.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin On the other hand, the relative format is more
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin human-readable and is thus suitable for editing by hand.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin For <span><strong class="command">named-checkzone</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin this does not cause any effects unless it dumps the zone
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin It also does not have any meaning if the output format
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin is not text.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-S <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Check if a SRV record refers to a CNAME.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible modes are <span><strong class="command">"fail"</strong></span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"warn"</strong></span> (default) and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin chroot to <code class="filename">directory</code> so that
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin directives in the configuration file are processed as if
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin run by a similarly chrooted named.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin chdir to <code class="filename">directory</code> so that
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin filenames in master file $INCLUDE directives work. This
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin is similar to the directory clause in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Dump zone file in canonical format.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin This is always enabled for <span><strong class="command">named-compilezone</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specify whether to check for non-terminal wildcards.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Non-terminal wildcards are almost always the result of a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin failure to understand the wildcard matching algorithm (RFC 1034).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Possible modes are <span><strong class="command">"warn"</strong></span> (default)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span><strong class="command">"ignore"</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin The domain name of the zone being checked.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin The name of the zone file.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span><strong class="command">named-checkzone</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin returns an exit status of 1 if
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin errors were detected and 0 otherwise.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span class="corpauthor">Internet Systems Consortium</span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="left" valign="top"><span class="application">named-checkconf</span>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="right" valign="top">�<span class="application">named</span></td>