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