2 - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000-2003 Internet Software Consortium.
5 - Permission to use, copy, modify, and/or 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: man.named-checkzone.html,v 1.5 2015/09/03 07:33:34 christos 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.71.1">
23 <link rel=
"start" href=
"Bv9ARM.html" title=
"BIND 9 Administrator Reference Manual">
24 <link rel=
"up" href=
"Bv9ARM.ch13.html" title=
"Manual pages">
25 <link rel=
"prev" href=
"man.named-checkconf.html" title=
"named-checkconf">
26 <link rel=
"next" href=
"man.named.html" title=
"named">
28 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
29 <div class=
"navheader">
30 <table width=
"100%" summary=
"Navigation header">
31 <tr><th colspan=
"3" align=
"center"><span class=
"application">named-checkzone
</span></th></tr>
33 <td width=
"20%" align=
"left">
34 <a accesskey=
"p" href=
"man.named-checkconf.html">Prev
</a> </td>
35 <th width=
"60%" align=
"center">Manual pages
</th>
36 <td width=
"20%" align=
"right"> <a accesskey=
"n" href=
"man.named.html">Next
</a>
42 <div class=
"refentry" lang=
"en">
43 <a name=
"man.named-checkzone"></a><div class=
"titlepage"></div>
44 <div class=
"refnamediv">
46 <p><span class=
"application">named-checkzone
</span>,
<span class=
"application">named-compilezone
</span> — zone file validity checking or converting tool
</p>
48 <div class=
"refsynopsisdiv">
50 <div class=
"cmdsynopsis"><p><code class=
"command">named-checkzone
</code> [
<code class=
"option">-d
</code>] [
<code class=
"option">-h
</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">-J
<em class=
"replaceable"><code>filename
</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">-l
<em class=
"replaceable"><code>ttl
</code></em></code>] [
<code class=
"option">-L
<em class=
"replaceable"><code>serial
</code></em></code>] [
<code class=
"option">-o
<em class=
"replaceable"><code>filename
</code></em></code>] [
<code class=
"option">-r
<em class=
"replaceable"><code>mode
</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">-T
<em class=
"replaceable"><code>mode
</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>
51 <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">-J
<em class=
"replaceable"><code>filename
</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">-l
<em class=
"replaceable"><code>ttl
</code></em></code>] [
<code class=
"option">-L
<em class=
"replaceable"><code>serial
</code></em></code>] [
<code class=
"option">-r
<em class=
"replaceable"><code>mode
</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">-T
<em class=
"replaceable"><code>mode
</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>] {
<code class=
"option">-o
<em class=
"replaceable"><code>filename
</code></em></code>} {zonename} {filename}
</p></div>
53 <div class=
"refsect1" lang=
"en">
54 <a name=
"id2676017"></a><h2>DESCRIPTION
</h2>
55 <p><span><strong class=
"command">named-checkzone
</strong></span>
56 checks the syntax and integrity of a zone file. It performs the
57 same checks as
<span><strong class=
"command">named
</strong></span> does when loading a
58 zone. This makes
<span><strong class=
"command">named-checkzone
</strong></span> useful for
59 checking zone files before configuring them into a name server.
62 <span><strong class=
"command">named-compilezone
</strong></span> is similar to
63 <span><strong class=
"command">named-checkzone
</strong></span>, but it always dumps the
64 zone contents to a specified file in a specified format.
65 Additionally, it applies stricter check levels by default,
66 since the dump output will be used as an actual zone file
67 loaded by
<span><strong class=
"command">named
</strong></span>.
68 When manually specified otherwise, the check levels must at
69 least be as strict as those specified in the
70 <span><strong class=
"command">named
</strong></span> configuration file.
73 <div class=
"refsect1" lang=
"en">
74 <a name=
"id2676067"></a><h2>OPTIONS
</h2>
75 <div class=
"variablelist"><dl>
76 <dt><span class=
"term">-d
</span></dt>
80 <dt><span class=
"term">-h
</span></dt>
82 Print the usage summary and exit.
84 <dt><span class=
"term">-q
</span></dt>
86 Quiet mode - exit code only.
88 <dt><span class=
"term">-v
</span></dt>
90 Print the version of the
<span><strong class=
"command">named-checkzone
</strong></span>
93 <dt><span class=
"term">-j
</span></dt>
95 When loading a zone file, read the journal if it exists.
96 The journal file name is assumed to be the zone file name
97 appended with the string
<code class=
"filename">.jnl
</code>.
99 <dt><span class=
"term">-J
<em class=
"replaceable"><code>filename
</code></em></span></dt>
101 When loading the zone file read the journal from the given
102 file, if it exists. (Implies -j.)
104 <dt><span class=
"term">-c
<em class=
"replaceable"><code>class
</code></em></span></dt>
106 Specify the class of the zone. If not specified,
"IN" is assumed.
108 <dt><span class=
"term">-i
<em class=
"replaceable"><code>mode
</code></em></span></dt>
111 Perform post-load zone integrity checks. Possible modes are
112 <span><strong class=
"command">"full"</strong></span> (default),
113 <span><strong class=
"command">"full-sibling"</strong></span>,
114 <span><strong class=
"command">"local"</strong></span>,
115 <span><strong class=
"command">"local-sibling"</strong></span> and
116 <span><strong class=
"command">"none"</strong></span>.
119 Mode
<span><strong class=
"command">"full"</strong></span> checks that MX records
120 refer to A or AAAA record (both in-zone and out-of-zone
121 hostnames). Mode
<span><strong class=
"command">"local"</strong></span> only
122 checks MX records which refer to in-zone hostnames.
125 Mode
<span><strong class=
"command">"full"</strong></span> checks that SRV records
126 refer to A or AAAA record (both in-zone and out-of-zone
127 hostnames). Mode
<span><strong class=
"command">"local"</strong></span> only
128 checks SRV records which refer to in-zone hostnames.
131 Mode
<span><strong class=
"command">"full"</strong></span> checks that delegation NS
132 records refer to A or AAAA record (both in-zone and out-of-zone
133 hostnames). It also checks that glue address records
134 in the zone match those advertised by the child.
135 Mode
<span><strong class=
"command">"local"</strong></span> only checks NS records which
136 refer to in-zone hostnames or that some required glue exists,
137 that is when the nameserver is in a child zone.
140 Mode
<span><strong class=
"command">"full-sibling"</strong></span> and
141 <span><strong class=
"command">"local-sibling"</strong></span> disable sibling glue
142 checks but are otherwise the same as
<span><strong class=
"command">"full"</strong></span>
143 and
<span><strong class=
"command">"local"</strong></span> respectively.
146 Mode
<span><strong class=
"command">"none"</strong></span> disables the checks.
149 <dt><span class=
"term">-f
<em class=
"replaceable"><code>format
</code></em></span></dt>
151 Specify the format of the zone file.
152 Possible formats are
<span><strong class=
"command">"text"</strong></span> (default),
153 <span><strong class=
"command">"raw"</strong></span>, and
<span><strong class=
"command">"map"</strong></span>.
155 <dt><span class=
"term">-F
<em class=
"replaceable"><code>format
</code></em></span></dt>
158 Specify the format of the output file specified.
159 For
<span><strong class=
"command">named-checkzone
</strong></span>,
160 this does not cause any effects unless it dumps the zone
164 Possible formats are
<span><strong class=
"command">"text"</strong></span> (default),
165 which is the standard textual representation of the zone,
166 and
<span><strong class=
"command">"map"</strong></span>,
<span><strong class=
"command">"raw"</strong></span>,
167 and
<span><strong class=
"command">"raw=N"</strong></span>, which store the zone in a
168 binary format for rapid loading by
<span><strong class=
"command">named
</strong></span>.
169 <span><strong class=
"command">"raw=N"</strong></span> specifies the format version of
170 the raw zone file: if N is
0, the raw file can be read by
171 any version of
<span><strong class=
"command">named
</strong></span>; if N is
1, the file
172 can be read by release
9.9.0 or higher; the default is
1.
175 <dt><span class=
"term">-k
<em class=
"replaceable"><code>mode
</code></em></span></dt>
177 Perform
<span><strong class=
"command">"check-names"</strong></span> checks with the
178 specified failure mode.
179 Possible modes are
<span><strong class=
"command">"fail"</strong></span>
180 (default for
<span><strong class=
"command">named-compilezone
</strong></span>),
181 <span><strong class=
"command">"warn"</strong></span>
182 (default for
<span><strong class=
"command">named-checkzone
</strong></span>) and
183 <span><strong class=
"command">"ignore"</strong></span>.
185 <dt><span class=
"term">-l
<em class=
"replaceable"><code>ttl
</code></em></span></dt>
187 Sets a maximum permissible TTL for the input file.
188 Any record with a TTL higher than this value will cause
189 the zone to be rejected. This is similar to using the
190 <span><strong class=
"command">max-zone-ttl
</strong></span> option in
191 <code class=
"filename">named.conf
</code>.
193 <dt><span class=
"term">-L
<em class=
"replaceable"><code>serial
</code></em></span></dt>
195 When compiling a zone to
"raw" or
"map" format, set the
196 "source serial" value in the header to the specified serial
197 number. (This is expected to be used primarily for testing
200 <dt><span class=
"term">-m
<em class=
"replaceable"><code>mode
</code></em></span></dt>
202 Specify whether MX records should be checked to see if they
203 are addresses. Possible modes are
<span><strong class=
"command">"fail"</strong></span>,
204 <span><strong class=
"command">"warn"</strong></span> (default) and
205 <span><strong class=
"command">"ignore"</strong></span>.
207 <dt><span class=
"term">-M
<em class=
"replaceable"><code>mode
</code></em></span></dt>
209 Check if a MX record refers to a CNAME.
210 Possible modes are
<span><strong class=
"command">"fail"</strong></span>,
211 <span><strong class=
"command">"warn"</strong></span> (default) and
212 <span><strong class=
"command">"ignore"</strong></span>.
214 <dt><span class=
"term">-n
<em class=
"replaceable"><code>mode
</code></em></span></dt>
216 Specify whether NS records should be checked to see if they
218 Possible modes are
<span><strong class=
"command">"fail"</strong></span>
219 (default for
<span><strong class=
"command">named-compilezone
</strong></span>),
220 <span><strong class=
"command">"warn"</strong></span>
221 (default for
<span><strong class=
"command">named-checkzone
</strong></span>) and
222 <span><strong class=
"command">"ignore"</strong></span>.
224 <dt><span class=
"term">-o
<em class=
"replaceable"><code>filename
</code></em></span></dt>
226 Write zone output to
<code class=
"filename">filename
</code>.
227 If
<code class=
"filename">filename
</code> is
<code class=
"filename">-
</code> then
228 write to standard out.
229 This is mandatory for
<span><strong class=
"command">named-compilezone
</strong></span>.
231 <dt><span class=
"term">-r
<em class=
"replaceable"><code>mode
</code></em></span></dt>
233 Check for records that are treated as different by DNSSEC but
234 are semantically equal in plain DNS.
235 Possible modes are
<span><strong class=
"command">"fail"</strong></span>,
236 <span><strong class=
"command">"warn"</strong></span> (default) and
237 <span><strong class=
"command">"ignore"</strong></span>.
239 <dt><span class=
"term">-s
<em class=
"replaceable"><code>style
</code></em></span></dt>
241 Specify the style of the dumped zone file.
242 Possible styles are
<span><strong class=
"command">"full"</strong></span> (default)
243 and
<span><strong class=
"command">"relative"</strong></span>.
244 The full format is most suitable for processing
245 automatically by a separate script.
246 On the other hand, the relative format is more
247 human-readable and is thus suitable for editing by hand.
248 For
<span><strong class=
"command">named-checkzone
</strong></span>
249 this does not cause any effects unless it dumps the zone
251 It also does not have any meaning if the output format
254 <dt><span class=
"term">-S
<em class=
"replaceable"><code>mode
</code></em></span></dt>
256 Check if a SRV record refers to a CNAME.
257 Possible modes are
<span><strong class=
"command">"fail"</strong></span>,
258 <span><strong class=
"command">"warn"</strong></span> (default) and
259 <span><strong class=
"command">"ignore"</strong></span>.
261 <dt><span class=
"term">-t
<em class=
"replaceable"><code>directory
</code></em></span></dt>
263 Chroot to
<code class=
"filename">directory
</code> so that
265 directives in the configuration file are processed as if
266 run by a similarly chrooted named.
268 <dt><span class=
"term">-T
<em class=
"replaceable"><code>mode
</code></em></span></dt>
270 Check if Sender Policy Framework (SPF) records exist
271 and issues a warning if an SPF-formatted TXT record is
272 not also present. Possible modes are
<span><strong class=
"command">"warn"</strong></span>
273 (default),
<span><strong class=
"command">"ignore"</strong></span>.
275 <dt><span class=
"term">-w
<em class=
"replaceable"><code>directory
</code></em></span></dt>
277 chdir to
<code class=
"filename">directory
</code> so that
279 filenames in master file $INCLUDE directives work. This
280 is similar to the directory clause in
281 <code class=
"filename">named.conf
</code>.
283 <dt><span class=
"term">-D
</span></dt>
285 Dump zone file in canonical format.
286 This is always enabled for
<span><strong class=
"command">named-compilezone
</strong></span>.
288 <dt><span class=
"term">-W
<em class=
"replaceable"><code>mode
</code></em></span></dt>
290 Specify whether to check for non-terminal wildcards.
291 Non-terminal wildcards are almost always the result of a
292 failure to understand the wildcard matching algorithm (RFC
1034).
293 Possible modes are
<span><strong class=
"command">"warn"</strong></span> (default)
295 <span><strong class=
"command">"ignore"</strong></span>.
297 <dt><span class=
"term">zonename
</span></dt>
299 The domain name of the zone being checked.
301 <dt><span class=
"term">filename
</span></dt>
303 The name of the zone file.
307 <div class=
"refsect1" lang=
"en">
308 <a name=
"id2677036"></a><h2>RETURN VALUES
</h2>
309 <p><span><strong class=
"command">named-checkzone
</strong></span>
310 returns an exit status of
1 if
311 errors were detected and
0 otherwise.
314 <div class=
"refsect1" lang=
"en">
315 <a name=
"id2677050"></a><h2>SEE ALSO
</h2>
316 <p><span class=
"citerefentry"><span class=
"refentrytitle">named
</span>(
8)
</span>,
317 <span class=
"citerefentry"><span class=
"refentrytitle">named-checkconf
</span>(
8)
</span>,
318 <em class=
"citetitle">RFC
1035</em>,
319 <em class=
"citetitle">BIND
9 Administrator Reference Manual
</em>.
322 <div class=
"refsect1" lang=
"en">
323 <a name=
"id2677083"></a><h2>AUTHOR
</h2>
324 <p><span class=
"corpauthor">Internet Systems Consortium
</span>
328 <div class=
"navfooter">
330 <table width=
"100%" summary=
"Navigation footer">
332 <td width=
"40%" align=
"left">
333 <a accesskey=
"p" href=
"man.named-checkconf.html">Prev
</a> </td>
334 <td width=
"20%" align=
"center"><a accesskey=
"u" href=
"Bv9ARM.ch13.html">Up
</a></td>
335 <td width=
"40%" align=
"right"> <a accesskey=
"n" href=
"man.named.html">Next
</a>
339 <td width=
"40%" align=
"left" valign=
"top">
340 <span class=
"application">named-checkconf
</span> </td>
341 <td width=
"20%" align=
"center"><a accesskey=
"h" href=
"Bv9ARM.html">Home
</a></td>
342 <td width=
"40%" align=
"right" valign=
"top"> <span class=
"application">named
</span>
347 <p style=
"text-align: center;">BIND
9.10.2-P4
</p>