man.named-checkzone.html revision b68a2d272b958eb2c40cce59ee33e71c5f5f521b
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - Copyright (C) 2000-2003 Internet Software Consortium.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - Permission to use, copy, modify, and/or distribute this software for any
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - purpose with or without fee is hereby granted, provided that the above
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - copyright notice and this permission notice appear in all copies.
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9da57d7b0ddd8d73b676ce12c040362132cdd538bt - PERFORMANCE OF THIS SOFTWARE.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<!-- $Id$ -->
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<link rel="next" href="man.named.html" title="named">
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
69b5a878d62fdee1b12e78371ce6cc8abddcad15Dan McDonald<table width="100%" summary="Navigation header">
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent<tr><th colspan="3" align="center"><span class="application">named-checkzone</span></th></tr>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<a accesskey="p" href="man.named-checkconf.html">Prev</a>�</td>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<td width="20%" align="right">�<a accesskey="n" href="man.named.html">Next</a>
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China<div class="refentry" lang="en">
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<a name="man.named-checkzone"></a><div class="titlepage"></div>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<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">-J <em class="replaceable"><code>filename</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>ttl</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">-T <em class="replaceable"><code>mode</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>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<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">-J <em class="replaceable"><code>filename</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>ttl</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">-T <em class="replaceable"><code>mode</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>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<p><span><strong class="command">named-checkzone</strong></span>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt checks the syntax and integrity of a zone file. It performs the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt same checks as <span><strong class="command">named</strong></span> does when loading a
9da57d7b0ddd8d73b676ce12c040362132cdd538bt zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
9da57d7b0ddd8d73b676ce12c040362132cdd538bt checking zone files before configuring them into a name server.
69b5a878d62fdee1b12e78371ce6cc8abddcad15Dan McDonald <span><strong class="command">named-compilezone</strong></span> is similar to
69b5a878d62fdee1b12e78371ce6cc8abddcad15Dan McDonald <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt zone contents to a specified file in a specified format.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Additionally, it applies stricter check levels by default,
9da57d7b0ddd8d73b676ce12c040362132cdd538bt since the dump output will be used as an actual zone file
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China loaded by <span><strong class="command">named</strong></span>.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt When manually specified otherwise, the check levels must at
9da57d7b0ddd8d73b676ce12c040362132cdd538bt least be as strict as those specified in the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt <span><strong class="command">named</strong></span> configuration file.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Enable debugging.
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China<dt><span class="term">-h</span></dt>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Print the usage summary and exit.
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent Quiet mode - exit code only.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Print the version of the <span><strong class="command">named-checkzone</strong></span>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt program and exit.
13740cb230f19fcbf1a6468d1a6a0ba9a0a09c22Paul Guo When loading a zone file, read the journal if it exists.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt The journal file name is assumed to be the zone file name
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China appended with the string <code class="filename">.jnl</code>.
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<dt><span class="term">-J <em class="replaceable"><code>filename</code></em></span></dt>
13740cb230f19fcbf1a6468d1a6a0ba9a0a09c22Paul Guo When loading the zone file read the journal from the given
13740cb230f19fcbf1a6468d1a6a0ba9a0a09c22Paul Guo file, if it exists. (Implies -j.)
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
5b6dd21f5401160f9a62ac2e76a858c2bc105370chenlu chen - Sun Microsystems - Beijing China Specify the class of the zone. If not specified, "IN" is assumed.
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Perform post-load zone integrity checks. Possible modes are
69b5a878d62fdee1b12e78371ce6cc8abddcad15Dan McDonald <span><strong class="command">"full"</strong></span> (default),
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent <span><strong class="command">"full-sibling"</strong></span>,
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent <span><strong class="command">"local"</strong></span>,
9755d32a32562086b65f861a690627e8fbd7d8aaIgor Kozhukhov <span><strong class="command">"local-sibling"</strong></span> and
9755d32a32562086b65f861a690627e8fbd7d8aaIgor Kozhukhov <span><strong class="command">"none"</strong></span>.
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent Mode <span><strong class="command">"full"</strong></span> checks that MX records
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent refer to A or AAAA record (both in-zone and out-of-zone
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent hostnames). Mode <span><strong class="command">"local"</strong></span> only
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent checks MX records which refer to in-zone hostnames.
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent Mode <span><strong class="command">"full"</strong></span> checks that SRV records
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent refer to A or AAAA record (both in-zone and out-of-zone
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent hostnames). Mode <span><strong class="command">"local"</strong></span> only
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent checks SRV records which refer to in-zone hostnames.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
9da57d7b0ddd8d73b676ce12c040362132cdd538bt records refer to A or AAAA record (both in-zone and out-of-zone
9da57d7b0ddd8d73b676ce12c040362132cdd538bt hostnames). It also checks that glue address records
9da57d7b0ddd8d73b676ce12c040362132cdd538bt in the zone match those advertised by the child.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Mode <span><strong class="command">"local"</strong></span> only checks NS records which
9da57d7b0ddd8d73b676ce12c040362132cdd538bt refer to in-zone hostnames or that some required glue exists,
9da57d7b0ddd8d73b676ce12c040362132cdd538bt that is when the nameserver is in a child zone.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Mode <span><strong class="command">"full-sibling"</strong></span> and
9da57d7b0ddd8d73b676ce12c040362132cdd538bt <span><strong class="command">"local-sibling"</strong></span> disable sibling glue
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent checks but are otherwise the same as <span><strong class="command">"full"</strong></span>
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent and <span><strong class="command">"local"</strong></span> respectively.
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent Mode <span><strong class="command">"none"</strong></span> disables the checks.
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Specify the format of the zone file.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Possible formats are <span><strong class="command">"text"</strong></span> (default),
9da57d7b0ddd8d73b676ce12c040362132cdd538bt <span><strong class="command">"raw"</strong></span>, and <span><strong class="command">"map"</strong></span>.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
9da57d7b0ddd8d73b676ce12c040362132cdd538bt Specify the format of the output file specified.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt For <span><strong class="command">named-checkzone</strong></span>,
9da57d7b0ddd8d73b676ce12c040362132cdd538bt this does not cause any effects unless it dumps the zone