man.named-checkzone.html revision e67b52444aa179d82a1dea2da9bd4388ce7ded52
2151N/A<!--
2151N/A - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
2151N/A - Copyright (C) 2000-2003 Internet Software Consortium.
2151N/A -
2151N/A - Permission to use, copy, modify, and/or distribute this software for any
2151N/A - purpose with or without fee is hereby granted, provided that the above
2151N/A - copyright notice and this permission notice appear in all copies.
2151N/A -
2151N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2151N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2151N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2151N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2151N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2151N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2151N/A - PERFORMANCE OF THIS SOFTWARE.
2151N/A-->
2151N/A<!-- $Id$ -->
2151N/A<html>
2151N/A<head>
2151N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
2151N/A<title>named-checkzone</title>
2151N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
2151N/A<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
2151N/A<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
4134N/A<link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
2151N/A<link rel="next" href="man.named.html" title="named">
2151N/A</head>
2151N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
2151N/A<div class="navheader">
2151N/A<table width="100%" summary="Navigation header">
2151N/A<tr><th colspan="3" align="center"><span class="application">named-checkzone</span></th></tr>
2151N/A<tr>
4134N/A<td width="20%" align="left">
4134N/A<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
2151N/A<th width="60%" align="center">Manual pages</th>
2151N/A<td width="20%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
2151N/A</td>
4134N/A</tr>
4134N/A</table>
2151N/A<hr>
4134N/A</div>
2151N/A<div class="refentry" lang="en">
2151N/A<a name="man.named-checkzone"></a><div class="titlepage"></div>
5902N/A<div class="refnamediv">
2151N/A<h2>Name</h2>
2151N/A<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> &#8212; zone file validity checking or converting tool</p>
2151N/A</div>
2151N/A<div class="refsynopsisdiv">
2151N/A<h2>Synopsis</h2>
2151N/A<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">-L <em class="replaceable"><code>serial</code></em></code>] [<code class="option">-o <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-r <em class="replaceable"><code>mode</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>
2151N/A<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">-L <em class="replaceable"><code>serial</code></em></code>] [<code class="option">-r <em class="replaceable"><code>mode</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>] {<code class="option">-o <em class="replaceable"><code>filename</code></em></code>} {zonename} {filename}</p></div>
2151N/A</div>
2151N/A<div class="refsect1" lang="en">
2151N/A<a name="id2634169"></a><h2>DESCRIPTION</h2>
2151N/A<p><span><strong class="command">named-checkzone</strong></span>
2151N/A checks the syntax and integrity of a zone file. It performs the
2151N/A same checks as <span><strong class="command">named</strong></span> does when loading a
2151N/A zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
2151N/A checking zone files before configuring them into a name server.
2151N/A </p>
2151N/A<p>
2151N/A <span><strong class="command">named-compilezone</strong></span> is similar to
2151N/A <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
2151N/A zone contents to a specified file in a specified format.
2151N/A Additionally, it applies stricter check levels by default,
2151N/A since the dump output will be used as an actual zone file
2151N/A loaded by <span><strong class="command">named</strong></span>.
2151N/A When manually specified otherwise, the check levels must at
2151N/A least be as strict as those specified in the
2151N/A <span><strong class="command">named</strong></span> configuration file.
2151N/A </p>
4134N/A</div>
2151N/A<div class="refsect1" lang="en">
2151N/A<a name="id2634219"></a><h2>OPTIONS</h2>
2151N/A<div class="variablelist"><dl>
4134N/A<dt><span class="term">-d</span></dt>
4134N/A<dd><p>
4134N/A Enable debugging.
4134N/A </p></dd>
4134N/A<dt><span class="term">-h</span></dt>
4134N/A<dd><p>
4134N/A Print the usage summary and exit.
4134N/A </p></dd>
4134N/A<dt><span class="term">-q</span></dt>
4134N/A<dd><p>
4134N/A Quiet mode - exit code only.
4134N/A </p></dd>
4134N/A<dt><span class="term">-v</span></dt>
4134N/A<dd><p>
4134N/A Print the version of the <span><strong class="command">named-checkzone</strong></span>
4134N/A program and exit.
4134N/A </p></dd>
4134N/A<dt><span class="term">-j</span></dt>
4134N/A<dd><p>
4134N/A When loading the zone file read the journal if it exists.
4134N/A </p></dd>
4134N/A<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
4134N/A<dd><p>
4134N/A Specify the class of the zone. If not specified, "IN" is assumed.
4134N/A </p></dd>
4134N/A<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
4134N/A<dd>
4134N/A<p>
4134N/A Perform post-load zone integrity checks. Possible modes are
4134N/A <span><strong class="command">"full"</strong></span> (default),
4134N/A <span><strong class="command">"full-sibling"</strong></span>,
4134N/A <span><strong class="command">"local"</strong></span>,
4134N/A <span><strong class="command">"local-sibling"</strong></span> and
4134N/A <span><strong class="command">"none"</strong></span>.
4134N/A </p>
4134N/A<p>
4134N/A Mode <span><strong class="command">"full"</strong></span> checks that MX records
4134N/A refer to A or AAAA record (both in-zone and out-of-zone
4134N/A hostnames). Mode <span><strong class="command">"local"</strong></span> only
4134N/A checks MX records which refer to in-zone hostnames.
4134N/A </p>
4134N/A<p>
4134N/A Mode <span><strong class="command">"full"</strong></span> checks that SRV records
4134N/A refer to A or AAAA record (both in-zone and out-of-zone
4134N/A hostnames). Mode <span><strong class="command">"local"</strong></span> only
4134N/A checks SRV records which refer to in-zone hostnames.
4134N/A </p>
4134N/A<p>
4134N/A Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
4134N/A records refer to A or AAAA record (both in-zone and out-of-zone
4134N/A hostnames). It also checks that glue address records
4134N/A in the zone match those advertised by the child.
4134N/A Mode <span><strong class="command">"local"</strong></span> only checks NS records which
4134N/A refer to in-zone hostnames or that some required glue exists,
2151N/A that is when the nameserver is in a child zone.
4134N/A </p>
4134N/A<p>
4134N/A Mode <span><strong class="command">"full-sibling"</strong></span> and
4134N/A <span><strong class="command">"local-sibling"</strong></span> disable sibling glue
4134N/A checks but are otherwise the same as <span><strong class="command">"full"</strong></span>
4134N/A and <span><strong class="command">"local"</strong></span> respectively.
4134N/A </p>
4134N/A<p>
2151N/A Mode <span><strong class="command">"none"</strong></span> disables the checks.
4134N/A </p>
4134N/A</dd>
4134N/A<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
4134N/A<dd><p>
4134N/A Specify the format of the zone file.
4134N/A Possible formats are <span><strong class="command">"text"</strong></span> (default),
4134N/A <span><strong class="command">"raw"</strong></span>, and <span><strong class="command">"fast"</strong></span>.
4134N/A </p></dd>
4134N/A<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
4134N/A<dd>
4134N/A<p>
4134N/A Specify the format of the output file specified.
4134N/A For <span><strong class="command">named-checkzone</strong></span>,
4134N/A this does not cause any effects unless it dumps the zone
4134N/A contents.
4134N/A </p>
4134N/A<p>
4134N/A Possible formats are <span><strong class="command">"text"</strong></span> (default),
4134N/A which is the standard textual representation of the zone,
4134N/A and <span><strong class="command">"fast"</strong></span>, <span><strong class="command">"raw"</strong></span>,
4134N/A and <span><strong class="command">"raw=N"</strong></span>, which store the zone in a
4134N/A binary format for rapid loading by <span><strong class="command">named</strong></span>.
4134N/A <span><strong class="command">"raw=N"</strong></span> specifies the format version of
4134N/A the raw zone file: if N is 0, the raw file can be read by
4134N/A any version of <span><strong class="command">named</strong></span>; if N is 1, the file
4134N/A can be read by release 9.9.0 or higher; the default is 1.
4134N/A </p>
4134N/A</dd>
4134N/A<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
4134N/A<dd><p>
4134N/A Perform <span><strong class="command">"check-names"</strong></span> checks with the
4134N/A specified failure mode.
4134N/A Possible modes are <span><strong class="command">"fail"</strong></span>
4134N/A (default for <span><strong class="command">named-compilezone</strong></span>),
4134N/A <span><strong class="command">"warn"</strong></span>
4134N/A (default for <span><strong class="command">named-checkzone</strong></span>) and
4134N/A <span><strong class="command">"ignore"</strong></span>.
4134N/A </p></dd>
4134N/A<dt><span class="term">-L <em class="replaceable"><code>serial</code></em></span></dt>
4134N/A<dd><p>
4134N/A When compiling a zone to "raw" or "fast" format, set the
4134N/A "source serial" value in the header to the specified serial
4134N/A number. (This is expected to be used primarily for testing
4134N/A purposes.)
4134N/A </p></dd>
4134N/A<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
4134N/A<dd><p>
4134N/A Specify whether MX records should be checked to see if they
4134N/A are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
4134N/A <span><strong class="command">"warn"</strong></span> (default) and
4134N/A <span><strong class="command">"ignore"</strong></span>.
4134N/A </p></dd>
2151N/A<dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
2151N/A<dd><p>
2151N/A Check if a MX record refers to a CNAME.
2151N/A Possible modes are <span><strong class="command">"fail"</strong></span>,
2151N/A <span><strong class="command">"warn"</strong></span> (default) and
2151N/A <span><strong class="command">"ignore"</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
2151N/A<dd><p>
2151N/A Specify whether NS records should be checked to see if they
2151N/A are addresses.
4134N/A Possible modes are <span><strong class="command">"fail"</strong></span>
4134N/A (default for <span><strong class="command">named-compilezone</strong></span>),
4134N/A <span><strong class="command">"warn"</strong></span>
2151N/A (default for <span><strong class="command">named-checkzone</strong></span>) and
4134N/A <span><strong class="command">"ignore"</strong></span>.
4134N/A </p></dd>
4134N/A<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
2151N/A<dd><p>
2151N/A Write zone output to <code class="filename">filename</code>.
2151N/A If <code class="filename">filename</code> is <code class="filename">-</code> then
2151N/A write to standard out.
2151N/A This is mandatory for <span><strong class="command">named-compilezone</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-r <em class="replaceable"><code>mode</code></em></span></dt>
2151N/A<dd><p>
2151N/A Check for records that are treated as different by DNSSEC but
2151N/A are semantically equal in plain DNS.
2151N/A Possible modes are <span><strong class="command">"fail"</strong></span>,
2151N/A <span><strong class="command">"warn"</strong></span> (default) and
2151N/A <span><strong class="command">"ignore"</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
2151N/A<dd><p>
2151N/A Specify the style of the dumped zone file.
2151N/A Possible styles are <span><strong class="command">"full"</strong></span> (default)
2151N/A and <span><strong class="command">"relative"</strong></span>.
2151N/A The full format is most suitable for processing
2151N/A automatically by a separate script.
2151N/A On the other hand, the relative format is more
2151N/A human-readable and is thus suitable for editing by hand.
2151N/A For <span><strong class="command">named-checkzone</strong></span>
2151N/A this does not cause any effects unless it dumps the zone
2151N/A contents.
2151N/A It also does not have any meaning if the output format
2151N/A is not text.
2151N/A </p></dd>
2151N/A<dt><span class="term">-S <em class="replaceable"><code>mode</code></em></span></dt>
2151N/A<dd><p>
2151N/A Check if a SRV record refers to a CNAME.
2151N/A Possible modes are <span><strong class="command">"fail"</strong></span>,
2151N/A <span><strong class="command">"warn"</strong></span> (default) and
2151N/A <span><strong class="command">"ignore"</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
2151N/A<dd><p>
2151N/A Chroot to <code class="filename">directory</code> so that
2151N/A include
2151N/A directives in the configuration file are processed as if
2151N/A run by a similarly chrooted named.
2151N/A </p></dd>
2151N/A<dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
2151N/A<dd><p>
2151N/A chdir to <code class="filename">directory</code> so that
2151N/A relative
2151N/A filenames in master file $INCLUDE directives work. This
2151N/A is similar to the directory clause in
2151N/A <code class="filename">named.conf</code>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-D</span></dt>
2151N/A<dd><p>
2151N/A Dump zone file in canonical format.
2151N/A This is always enabled for <span><strong class="command">named-compilezone</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
2151N/A<dd><p>
2151N/A Specify whether to check for non-terminal wildcards.
2151N/A Non-terminal wildcards are almost always the result of a
2151N/A failure to understand the wildcard matching algorithm (RFC 1034).
2151N/A Possible modes are <span><strong class="command">"warn"</strong></span> (default)
2151N/A and
2151N/A <span><strong class="command">"ignore"</strong></span>.
2151N/A </p></dd>
2151N/A<dt><span class="term">zonename</span></dt>
2151N/A<dd><p>
2151N/A The domain name of the zone being checked.
2151N/A </p></dd>
2151N/A<dt><span class="term">filename</span></dt>
2151N/A<dd><p>
2151N/A The name of the zone file.
2151N/A </p></dd>
2151N/A</dl></div>
2151N/A</div>
2151N/A<div class="refsect1" lang="en">
2151N/A<a name="id2672862"></a><h2>RETURN VALUES</h2>
2151N/A<p><span><strong class="command">named-checkzone</strong></span>
2151N/A returns an exit status of 1 if
2151N/A errors were detected and 0 otherwise.
2151N/A </p>
2151N/A</div>
2151N/A<div class="refsect1" lang="en">
2151N/A<a name="id2672876"></a><h2>SEE ALSO</h2>
2151N/A<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
2151N/A <span class="citerefentry"><span class="refentrytitle">named-checkconf</span>(8)</span>,
2151N/A <em class="citetitle">RFC 1035</em>,
2151N/A <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
2151N/A </p>
4134N/A</div>
2151N/A<div class="refsect1" lang="en">
4134N/A<a name="id2672909"></a><h2>AUTHOR</h2>
2151N/A<p><span class="corpauthor">Internet Systems Consortium</span>
4134N/A </p>
2151N/A</div>
4134N/A</div>
4134N/A<div class="navfooter">
2151N/A<hr>
2151N/A<table width="100%" summary="Navigation footer">
4134N/A<tr>
2151N/A<td width="40%" align="left">
4134N/A<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
2151N/A<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
2151N/A<td width="40%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
4134N/A</td>
4134N/A</tr>
2151N/A<tr>
4134N/A<td width="40%" align="left" valign="top">
4134N/A<span class="application">named-checkconf</span>�</td>
2151N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
2151N/A<td width="40%" align="right" valign="top">�<span class="application">named</span>
4134N/A</td>
4134N/A</tr>
2151N/A</table>
4134N/A</div>
2151N/A</body>
2151N/A</html>
2151N/A