Merge from vendor branch GCC:
[dragonfly.git] / contrib / bind-9.3 / bin / check / named-checkzone.html
1 <!--
2  - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
3  - Copyright (C) 2000-2002 Internet Software Consortium.
4  - 
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.
8  - 
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.
16 -->
17 <!-- $Id: named-checkzone.html,v 1.5.2.2.4.17 2006/10/05 02:50:17 marka Exp $ -->
18 <html>
19 <head>
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">
23 </head>
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">
27 <h2>Name</h2>
28 <p><span class="application">named-checkzone</span> &#8212; zone file validity checking tool</p>
29 </div>
30 <div class="refsynopsisdiv">
31 <h2>Synopsis</h2>
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>
33 </div>
34 <div class="refsect1" lang="en">
35 <a name="id2549490"></a><h2>DESCRIPTION</h2>
36 <p>
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.
42     </p>
43 </div>
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>
48 <dd><p>
49               Enable debugging.
50           </p></dd>
51 <dt><span class="term">-q</span></dt>
52 <dd><p>
53               Quiet mode - exit code only.
54           </p></dd>
55 <dt><span class="term">-v</span></dt>
56 <dd><p>
57               Print the version of the <span><strong class="command">named-checkzone</strong></span>
58               program and exit.
59           </p></dd>
60 <dt><span class="term">-j</span></dt>
61 <dd><p>
62               When loading the zone file read the journal if it exists.
63           </p></dd>
64 <dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
65 <dd><p>
66               Specify the class of the zone.  If not specified "IN" is assumed.
67           </p></dd>
68 <dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
69 <dd><p>
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>.
74           </p></dd>
75 <dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
76 <dd><p>
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>.
81           </p></dd>
82 <dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
83 <dd><p>
84               Write zone output to <code class="filename">filename</code>.
85           </p></dd>
86 <dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
87 <dd><p>
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.
91           </p></dd>
92 <dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
93 <dd><p>
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>.
98           </p></dd>
99 <dt><span class="term">-D</span></dt>
100 <dd><p>
101               Dump zone file in canonical format.
102           </p></dd>
103 <dt><span class="term">zonename</span></dt>
104 <dd><p>
105                The domain name of the zone being checked.
106           </p></dd>
107 <dt><span class="term">filename</span></dt>
108 <dd><p>
109                The name of the zone file.
110           </p></dd>
111 </dl></div>
112 </div>
113 <div class="refsect1" lang="en">
114 <a name="id2549824"></a><h2>RETURN VALUES</h2>
115 <p>
116         <span><strong class="command">named-checkzone</strong></span> returns an exit status of 1 if
117         errors were detected and 0 otherwise.
118     </p>
119 </div>
120 <div class="refsect1" lang="en">
121 <a name="id2549836"></a><h2>SEE ALSO</h2>
122 <p>
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>.
126     </p>
127 </div>
128 <div class="refsect1" lang="en">
129 <a name="id2549863"></a><h2>AUTHOR</h2>
130 <p>
131         <span class="corpauthor">Internet Systems Consortium</span>
132     </p>
133 </div>
134 </div></body>
135 </html>