1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2000-2003 Internet Software Consortium.
8 - Permission to use, copy, modify, and/or distribute this software for any
9 - purpose with or without fee is hereby granted, provided that the above
10 - copyright notice and this permission notice appear in all copies.
12 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 - PERFORMANCE OF THIS SOFTWARE.
21 <!-- $Id: named-checkzone.docbook,v 1.3.2.2.8.19 2007/08/28 07:19:07 tbox Exp $ -->
25 <date>June 13, 2000</date>
29 <refentrytitle><application>named-checkzone</application></refentrytitle>
30 <manvolnum>8</manvolnum>
31 <refmiscinfo>BIND9</refmiscinfo>
40 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
47 <holder>Internet Software Consortium.</holder>
52 <refname><application>named-checkzone</application></refname>
53 <refpurpose>zone file validity checking tool</refpurpose>
58 <command>named-checkzone</command>
59 <arg><option>-d</option></arg>
60 <arg><option>-j</option></arg>
61 <arg><option>-q</option></arg>
62 <arg><option>-v</option></arg>
63 <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
64 <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
65 <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
66 <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
67 <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
68 <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
69 <arg><option>-D</option></arg>
70 <arg choice="req">zonename</arg>
71 <arg choice="req">filename</arg>
76 <title>DESCRIPTION</title>
78 <command>named-checkzone</command> checks the syntax and integrity of
79 a zone file. It performs the same checks as <command>named</command>
80 does when loading a zone. This makes
81 <command>named-checkzone</command> useful for checking zone
82 files before configuring them into a name server.
87 <title>OPTIONS</title>
103 Quiet mode - exit code only.
112 Print the version of the <command>named-checkzone</command>
122 When loading the zone file read the journal if it exists.
128 <term>-c <replaceable class="parameter">class</replaceable></term>
131 Specify the class of the zone. If not specified "IN" is assumed.
137 <term>-k <replaceable class="parameter">mode</replaceable></term>
140 Perform <command>"check-names"</command> checks with the specified failure mode.
141 Possible modes are <command>"fail"</command>,
142 <command>"warn"</command> (default) and
143 <command>"ignore"</command>.
149 <term>-n <replaceable class="parameter">mode</replaceable></term>
152 Specify whether NS records should be checked to see if they
153 are addresses. Possible modes are <command>"fail"</command>,
154 <command>"warn"</command> (default) and
155 <command>"ignore"</command>.
161 <term>-o <replaceable class="parameter">filename</replaceable></term>
164 Write zone output to <filename>filename</filename>.
170 <term>-t <replaceable class="parameter">directory</replaceable></term>
173 Chroot to <filename>directory</filename> so that include
174 directives in the configuration file are processed as if
175 run by a similarly chrooted named.
181 <term>-w <replaceable class="parameter">directory</replaceable></term>
184 chdir to <filename>directory</filename> so that relative
185 filenames in master file $INCLUDE directives work. This
186 is similar to the directory clause in
187 <filename>named.conf</filename>.
196 Dump zone file in canonical format.
202 <term>zonename</term>
205 The domain name of the zone being checked.
211 <term>filename</term>
214 The name of the zone file.
224 <title>RETURN VALUES</title>
226 <command>named-checkzone</command> returns an exit status of 1 if
227 errors were detected and 0 otherwise.
232 <title>SEE ALSO</title>
235 <refentrytitle>named</refentrytitle>
236 <manvolnum>8</manvolnum>
239 <refentrytitle>named-checkconf</refentrytitle><manvolnum>8</manvolnum>
241 <citetitle>RFC 1035</citetitle>,
242 <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
247 <title>AUTHOR</title>
249 <corpauthor>Internet Systems Consortium</corpauthor>