named-checkzone.html revision 7208386cd37a2092c70eddf80cf29519b16c4c80
1633838b8255282d10af15c5c84cee5a51466712Bob Halley<!--
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - Copyright (C) 2000-2002 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews -
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley - copyright notice and this permission notice appear in all copies.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley -
1e733ffc1103667dd6cf0eae01f5dfd0c84c5108Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - PERFORMANCE OF THIS SOFTWARE.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence-->
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley<!-- $Id: named-checkzone.html,v 1.25 2005/06/20 03:30:27 marka Exp $ -->
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley<html>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<head>
41a6b3031e3d0c566aad3808a69136eab15a2622Francis Dupont<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<title>named-checkzone</title>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
68c2ccc953059f389cefc0f8a5ce0f83be7458c9Danny Mayer</head>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<a name="id2456836"></a><div class="titlepage"></div>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="refnamediv">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<h2>Name</h2>
68c2ccc953059f389cefc0f8a5ce0f83be7458c9Danny Mayer<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> &#8212; zone file validity checking or converting tool</p>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer</div>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="refsynopsisdiv">
627f3e0805e2ee948e1f8c42f2251084aac388e9Automatic Updater<h2>Synopsis</h2>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<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">-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>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<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">-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>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer</div>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="refsect1" lang="en">
627f3e0805e2ee948e1f8c42f2251084aac388e9Automatic Updater<a name="id2514459"></a><h2>DESCRIPTION</h2>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<p><span><strong class="command">named-checkzone</strong></span>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer checks the syntax and integrity of a zone file. It performs the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer same checks as <span><strong class="command">named</strong></span> does when loading a
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer checking zone files before configuring them into a name server.
627f3e0805e2ee948e1f8c42f2251084aac388e9Automatic Updater </p>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<p>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named-compilezone</strong></span> is similar to
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer zone contents to a specified file in a specified format.
68c2ccc953059f389cefc0f8a5ce0f83be7458c9Danny Mayer Additionally, it applies stricter check levels by default,
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer since the dump output will be used as an actual zone file
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer loaded by <span><strong class="command">named</strong></span>.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer When manaully specified otherwise, the check levels must at
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer least be as strict as those specified in the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named</strong></span> configuration file.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer </p>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer</div>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="refsect1" lang="en">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<a name="id2514494"></a><h2>OPTIONS</h2>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="variablelist"><dl>
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley<dt><span class="term">-d</span></dt>
1e733ffc1103667dd6cf0eae01f5dfd0c84c5108Mark Andrews<dd><p>
b07a162e293d41eb86dcaa6c48611313f6412d1dBob Halley Enable debugging.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley </p></dd>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews<dt><span class="term">-q</span></dt>
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley<dd><p>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Quiet mode - exit code only.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence </p></dd>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence<dt><span class="term">-v</span></dt>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence<dd><p>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Print the version of the <span><strong class="command">named-checkzone</strong></span>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence program and exit.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence </p></dd>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence<dt><span class="term">-j</span></dt>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence<dd><p>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence When loading the zone file read the journal if it exists.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer </p></dd>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<dd><p>
8b9c4592ed718c4187971f1104381faf538bf4f7Evan Hunt Specify the class of the zone. If not specified "IN" is assumed.
8b9c4592ed718c4187971f1104381faf538bf4f7Evan Hunt </p></dd>
8b9c4592ed718c4187971f1104381faf538bf4f7Evan Hunt<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews<dd>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews<p>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews Perform post load zone integrity checks. Possible modes are
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews <span><strong class="command">"full"</strong></span> (default),
9547d3e03bb082d73aeabb497b60632ebfdc78a6Mark Andrews <span><strong class="command">"local"</strong></span> and
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews <span><strong class="command">"none"</strong></span>.
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews </p>
ff850b81c814787c72e96b162f47a208665814c4Mark Andrews<p>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews Mode <span><strong class="command">"full"</strong></span> checks that MX records
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews refer to A or AAAA record (both in-zone and out-of-zone
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews hostnames). Mode <span><strong class="command">"local"</strong></span> only
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews checks MX records which refer to in-zone hostnames.
03152360db6fcb0fcc95fa63c20c5c829c95f1f6Mark Andrews </p>
03152360db6fcb0fcc95fa63c20c5c829c95f1f6Mark Andrews<p>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Mode <span><strong class="command">"full"</strong></span> checks that SRV records
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley refer to A or AAAA record (both in-zone and out-of-zone
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley hostnames). Mode <span><strong class="command">"local"</strong></span> only
checks SRV records which refer to in-zone hostnames.
</p>
<p>
Mode <span><strong class="command">"full"</strong></span> checks that delegation NS
records refer to A or AAAA record (both in-zone and out-of-zone
hostnames). It also checks that glue addresses records
in the zone match those advertised by the child.
Mode <span><strong class="command">"local"</strong></span> only checks NS records which
refer to in-zone hostnames or that some required glue exists,
that is when the nameserver is in a child zone.
</p>
<p>
Mode <span><strong class="command">"none"</strong></span> disables the checks.
</p>
</dd>
<dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
<dd><p>
Specify the format of the zone file.
Possible formats are <span><strong class="command">"text"</strong></span> (default)
and <span><strong class="command">"raw"</strong></span>.
</p></dd>
<dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
<dd><p>
Specify the format of the output file specified.
Possible formats are <span><strong class="command">"text"</strong></span> (default)
and <span><strong class="command">"raw"</strong></span>.
For <span><strong class="command">named-checkzone</strong></span>,
this does not cause any effects unless it dumps the zone
contents.
</p></dd>
<dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
<dd><p>
Perform <span><strong class="command">"check-name"</strong></span> checks with the
specified failure mode.
Possible modes are <span><strong class="command">"fail"</strong></span>
(default for <span><strong class="command">named-compilezone</strong></span>),
<span><strong class="command">"warn"</strong></span>
(default for <span><strong class="command">named-checkzone</strong></span>) and
<span><strong class="command">"ignore"</strong></span>.
</p></dd>
<dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
<dd><p>
Specify whether MX records should be checked to see if they
are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
<span><strong class="command">"warn"</strong></span> (default) and
<span><strong class="command">"ignore"</strong></span>.
</p></dd>
<dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
<dd><p>
Specify whether NS records should be checked to see if they
are addresses.
Possible modes are <span><strong class="command">"fail"</strong></span>
(default for <span><strong class="command">named-compilezone</strong></span>),
<span><strong class="command">"warn"</strong></span>
(default for <span><strong class="command">named-checkzone</strong></span>) and
<span><strong class="command">"ignore"</strong></span>.
</p></dd>
<dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
<dd><p>
Write zone output to <code class="filename">filename</code>.
This is mandatory for <span><strong class="command">named-compilezone</strong></span>.
</p></dd>
<dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
<dd><p>
Specify the style of the dumped zone file.
Possible styles are <span><strong class="command">"full"</strong></span> (default)
and <span><strong class="command">"default"</strong></span>.
The full format is most suitable for processing
automatically by a separate script.
On the other hand, the default format is more
human-readable and is thus suitable for editing by hand.
For <span><strong class="command">named-checkzone</strong></span>
this does not cause any effects unless it dumps the zone
contents.
It also does not have any meaning if the output format
is not text.
</p></dd>
<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
<dd><p>
chroot to <code class="filename">directory</code> so that
include
directives in the configuration file are processed as if
run by a similarly chrooted named.
</p></dd>
<dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
<dd><p>
chdir to <code class="filename">directory</code> so that
relative
filenames in master file $INCLUDE directives work. This
is similar to the directory clause in
<code class="filename">named.conf</code>.
</p></dd>
<dt><span class="term">-D</span></dt>
<dd><p>
Dump zone file in canonical format.
This is always enabled for <span><strong class="command">named-compilezone</strong></span>.
</p></dd>
<dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
<dd><p>
Specify whether to check for non-terminal wildcards.
Non-terminal wildcards are almost always the result of a
failure to understand the wildcard matching algorithm (RFC 1034).
Possible modes are <span><strong class="command">"warn"</strong></span> (default)
and
<span><strong class="command">"ignore"</strong></span>.
</p></dd>
<dt><span class="term">zonename</span></dt>
<dd><p>
The domain name of the zone being checked.
</p></dd>
<dt><span class="term">filename</span></dt>
<dd><p>
The name of the zone file.
</p></dd>
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2515018"></a><h2>RETURN VALUES</h2>
<p><span><strong class="command">named-checkzone</strong></span>
returns an exit status of 1 if
errors were detected and 0 otherwise.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2515030"></a><h2>SEE ALSO</h2>
<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<em class="citetitle">RFC 1035</em>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2515054"></a><h2>AUTHOR</h2>
<p><span class="corpauthor">Internet Systems Consortium</span>
</p>
</div>
</div></body>
</html>