2 - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000-2002 Internet Software Consortium.
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
17 <!-- $Id: named-checkzone.html,v 1.5.2.2.4.17 2006/10/05 02:50:17 marka Exp $ -->
20 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
21 <title>named-checkzone</title>
22 <meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
24 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
25 <a name="id2482688"></a><div class="titlepage"></div>
26 <div class="refnamediv">
28 <p><span class="application">named-checkzone</span> — zone file validity checking tool</p>
30 <div class="refsynopsisdiv">
32 <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">-k <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">-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>] {zonename} {filename}</p></div>
34 <div class="refsect1" lang="en">
35 <a name="id2549490"></a><h2>DESCRIPTION</h2>
37 <span><strong class="command">named-checkzone</strong></span> checks the syntax and integrity of
38 a zone file. It performs the same checks as <span><strong class="command">named</strong></span>
39 does when loading a zone. This makes
40 <span><strong class="command">named-checkzone</strong></span> useful for checking zone
41 files before configuring them into a name server.
44 <div class="refsect1" lang="en">
45 <a name="id2549510"></a><h2>OPTIONS</h2>
46 <div class="variablelist"><dl>
47 <dt><span class="term">-d</span></dt>
51 <dt><span class="term">-q</span></dt>
53 Quiet mode - exit code only.
55 <dt><span class="term">-v</span></dt>
57 Print the version of the <span><strong class="command">named-checkzone</strong></span>
60 <dt><span class="term">-j</span></dt>
62 When loading the zone file read the journal if it exists.
64 <dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
66 Specify the class of the zone. If not specified "IN" is assumed.
68 <dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
70 Perform <span><strong class="command">"check-names"</strong></span> checks with the specified failure mode.
71 Possible modes are <span><strong class="command">"fail"</strong></span>,
72 <span><strong class="command">"warn"</strong></span> (default) and
73 <span><strong class="command">"ignore"</strong></span>.
75 <dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
77 Specify whether NS records should be checked to see if they
78 are addresses. Possible modes are <span><strong class="command">"fail"</strong></span>,
79 <span><strong class="command">"warn"</strong></span> (default) and
80 <span><strong class="command">"ignore"</strong></span>.
82 <dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
84 Write zone output to <code class="filename">filename</code>.
86 <dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
88 chroot to <code class="filename">directory</code> so that include
89 directives in the configuration file are processed as if
90 run by a similarly chrooted named.
92 <dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
94 chdir to <code class="filename">directory</code> so that relative
95 filenames in master file $INCLUDE directives work. This
96 is similar to the directory clause in
97 <code class="filename">named.conf</code>.
99 <dt><span class="term">-D</span></dt>
101 Dump zone file in canonical format.
103 <dt><span class="term">zonename</span></dt>
105 The domain name of the zone being checked.
107 <dt><span class="term">filename</span></dt>
109 The name of the zone file.
113 <div class="refsect1" lang="en">
114 <a name="id2549824"></a><h2>RETURN VALUES</h2>
116 <span><strong class="command">named-checkzone</strong></span> returns an exit status of 1 if
117 errors were detected and 0 otherwise.
120 <div class="refsect1" lang="en">
121 <a name="id2549836"></a><h2>SEE ALSO</h2>
123 <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
124 <em class="citetitle">RFC 1035</em>,
125 <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
128 <div class="refsect1" lang="en">
129 <a name="id2549863"></a><h2>AUTHOR</h2>
131 <span class="corpauthor">Internet Systems Consortium</span>