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