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.
19 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
20 <title>named-checkzone</title>
21 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
22 <link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
23 <link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
24 <link rel="prev" href="man.named-checkconf.html" title="named-checkconf">
25 <link rel="next" href="man.named.html" title="named">
27 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
28 <div class="navheader">
29 <table width="100%" summary="Navigation header">
30 <tr><th colspan="3" align="center"><span class="application">named-checkzone</span></th></tr>
32 <td width="20%" align="left">
33 <a accesskey="p" href="man.named-checkconf.html">Prev</a> </td>
34 <th width="60%" align="center">Manual pages</th>
35 <td width="20%" align="right"> <a accesskey="n" href="man.named.html">Next</a>
41 <div class="refentry">
42 <a name="man.named-checkzone"></a><div class="titlepage"></div>
43 <div class="refnamediv">
45 <p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
47 <div class="refsynopsisdiv">
49 <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">-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>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>
50 <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">-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>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>
52 <div class="refsection">
53 <a name="id-1.14.15.7"></a><h2>DESCRIPTION</h2>
54 <p><span class="command"><strong>named-checkzone</strong></span>
55 checks the syntax and integrity of a zone file. It performs the
56 same checks as <span class="command"><strong>named</strong></span> does when loading a
57 zone. This makes <span class="command"><strong>named-checkzone</strong></span> useful for
58 checking zone files before configuring them into a name server.
61 <span class="command"><strong>named-compilezone</strong></span> is similar to
62 <span class="command"><strong>named-checkzone</strong></span>, but it always dumps the
63 zone contents to a specified file in a specified format.
64 Additionally, it applies stricter check levels by default,
65 since the dump output will be used as an actual zone file
66 loaded by <span class="command"><strong>named</strong></span>.
67 When manually specified otherwise, the check levels must at
68 least be as strict as those specified in the
69 <span class="command"><strong>named</strong></span> configuration file.
72 <div class="refsection">
73 <a name="id-1.14.15.8"></a><h2>OPTIONS</h2>
74 <div class="variablelist"><dl class="variablelist">
75 <dt><span class="term">-d</span></dt>
79 <dt><span class="term">-h</span></dt>
81 Print the usage summary and exit.
83 <dt><span class="term">-q</span></dt>
85 Quiet mode - exit code only.
87 <dt><span class="term">-v</span></dt>
89 Print the version of the <span class="command"><strong>named-checkzone</strong></span>
92 <dt><span class="term">-j</span></dt>
94 When loading the zone file read the journal if it exists.
96 <dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
98 Specify the class of the zone. If not specified, "IN" is assumed.
100 <dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
103 Perform post-load zone integrity checks. Possible modes are
104 <span class="command"><strong>"full"</strong></span> (default),
105 <span class="command"><strong>"full-sibling"</strong></span>,
106 <span class="command"><strong>"local"</strong></span>,
107 <span class="command"><strong>"local-sibling"</strong></span> and
108 <span class="command"><strong>"none"</strong></span>.
111 Mode <span class="command"><strong>"full"</strong></span> checks that MX records
112 refer to A or AAAA record (both in-zone and out-of-zone
113 hostnames). Mode <span class="command"><strong>"local"</strong></span> only
114 checks MX records which refer to in-zone hostnames.
117 Mode <span class="command"><strong>"full"</strong></span> checks that SRV records
118 refer to A or AAAA record (both in-zone and out-of-zone
119 hostnames). Mode <span class="command"><strong>"local"</strong></span> only
120 checks SRV records which refer to in-zone hostnames.
123 Mode <span class="command"><strong>"full"</strong></span> checks that delegation NS
124 records refer to A or AAAA record (both in-zone and out-of-zone
125 hostnames). It also checks that glue address records
126 in the zone match those advertised by the child.
127 Mode <span class="command"><strong>"local"</strong></span> only checks NS records which
128 refer to in-zone hostnames or that some required glue exists,
129 that is when the nameserver is in a child zone.
132 Mode <span class="command"><strong>"full-sibling"</strong></span> and
133 <span class="command"><strong>"local-sibling"</strong></span> disable sibling glue
134 checks but are otherwise the same as <span class="command"><strong>"full"</strong></span>
135 and <span class="command"><strong>"local"</strong></span> respectively.
138 Mode <span class="command"><strong>"none"</strong></span> disables the checks.
141 <dt><span class="term">-f <em class="replaceable"><code>format</code></em></span></dt>
143 Specify the format of the zone file.
144 Possible formats are <span class="command"><strong>"text"</strong></span> (default)
145 and <span class="command"><strong>"raw"</strong></span>.
147 <dt><span class="term">-F <em class="replaceable"><code>format</code></em></span></dt>
150 Specify the format of the output file specified.
151 For <span class="command"><strong>named-checkzone</strong></span>,
152 this does not cause any effects unless it dumps the zone
156 Possible formats are <span class="command"><strong>"text"</strong></span> (default)
157 and <span class="command"><strong>"raw"</strong></span> or <span class="command"><strong>"raw=N"</strong></span>,
158 which store the zone in a binary format for rapid loading
159 by <span class="command"><strong>named</strong></span>. <span class="command"><strong>"raw=N"</strong></span>
160 specifies the format version of the raw zone file: if N
161 is 0, the raw file can be read by any version of
162 <span class="command"><strong>named</strong></span>; if N is 1, the file can be read
163 by release 9.9.0 or higher. The default is 1.
166 <dt><span class="term">-k <em class="replaceable"><code>mode</code></em></span></dt>
168 Perform <span class="command"><strong>"check-names"</strong></span> checks with the
169 specified failure mode.
170 Possible modes are <span class="command"><strong>"fail"</strong></span>
171 (default for <span class="command"><strong>named-compilezone</strong></span>),
172 <span class="command"><strong>"warn"</strong></span>
173 (default for <span class="command"><strong>named-checkzone</strong></span>) and
174 <span class="command"><strong>"ignore"</strong></span>.
176 <dt><span class="term">-L <em class="replaceable"><code>serial</code></em></span></dt>
178 When compiling a zone to 'raw' format, set the "source serial"
179 value in the header to the specified serial number. (This is
180 expected to be used primarily for testing purposes.)
182 <dt><span class="term">-m <em class="replaceable"><code>mode</code></em></span></dt>
184 Specify whether MX records should be checked to see if they
185 are addresses. Possible modes are <span class="command"><strong>"fail"</strong></span>,
186 <span class="command"><strong>"warn"</strong></span> (default) and
187 <span class="command"><strong>"ignore"</strong></span>.
189 <dt><span class="term">-M <em class="replaceable"><code>mode</code></em></span></dt>
191 Check if a MX record refers to a CNAME.
192 Possible modes are <span class="command"><strong>"fail"</strong></span>,
193 <span class="command"><strong>"warn"</strong></span> (default) and
194 <span class="command"><strong>"ignore"</strong></span>.
196 <dt><span class="term">-n <em class="replaceable"><code>mode</code></em></span></dt>
198 Specify whether NS records should be checked to see if they
200 Possible modes are <span class="command"><strong>"fail"</strong></span>
201 (default for <span class="command"><strong>named-compilezone</strong></span>),
202 <span class="command"><strong>"warn"</strong></span>
203 (default for <span class="command"><strong>named-checkzone</strong></span>) and
204 <span class="command"><strong>"ignore"</strong></span>.
206 <dt><span class="term">-o <em class="replaceable"><code>filename</code></em></span></dt>
208 Write zone output to <code class="filename">filename</code>.
209 If <code class="filename">filename</code> is <code class="filename">-</code> then
210 write to standard out.
211 This is mandatory for <span class="command"><strong>named-compilezone</strong></span>.
213 <dt><span class="term">-r <em class="replaceable"><code>mode</code></em></span></dt>
215 Check for records that are treated as different by DNSSEC but
216 are semantically equal in plain DNS.
217 Possible modes are <span class="command"><strong>"fail"</strong></span>,
218 <span class="command"><strong>"warn"</strong></span> (default) and
219 <span class="command"><strong>"ignore"</strong></span>.
221 <dt><span class="term">-s <em class="replaceable"><code>style</code></em></span></dt>
223 Specify the style of the dumped zone file.
224 Possible styles are <span class="command"><strong>"full"</strong></span> (default)
225 and <span class="command"><strong>"relative"</strong></span>.
226 The full format is most suitable for processing
227 automatically by a separate script.
228 On the other hand, the relative format is more
229 human-readable and is thus suitable for editing by hand.
230 For <span class="command"><strong>named-checkzone</strong></span>
231 this does not cause any effects unless it dumps the zone
233 It also does not have any meaning if the output format
236 <dt><span class="term">-S <em class="replaceable"><code>mode</code></em></span></dt>
238 Check if a SRV record refers to a CNAME.
239 Possible modes are <span class="command"><strong>"fail"</strong></span>,
240 <span class="command"><strong>"warn"</strong></span> (default) and
241 <span class="command"><strong>"ignore"</strong></span>.
243 <dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
245 Chroot to <code class="filename">directory</code> so that
247 directives in the configuration file are processed as if
248 run by a similarly chrooted named.
250 <dt><span class="term">-T <em class="replaceable"><code>mode</code></em></span></dt>
252 Check if Sender Policy Framework (SPF) records exist
253 and issues a warning if an SPF-formatted TXT record is
254 not also present. Possible modes are <span class="command"><strong>"warn"</strong></span>
255 (default), <span class="command"><strong>"ignore"</strong></span>.
257 <dt><span class="term">-w <em class="replaceable"><code>directory</code></em></span></dt>
259 chdir to <code class="filename">directory</code> so that
261 filenames in master file $INCLUDE directives work. This
262 is similar to the directory clause in
263 <code class="filename">named.conf</code>.
265 <dt><span class="term">-D</span></dt>
267 Dump zone file in canonical format.
268 This is always enabled for <span class="command"><strong>named-compilezone</strong></span>.
270 <dt><span class="term">-W <em class="replaceable"><code>mode</code></em></span></dt>
272 Specify whether to check for non-terminal wildcards.
273 Non-terminal wildcards are almost always the result of a
274 failure to understand the wildcard matching algorithm (RFC 1034).
275 Possible modes are <span class="command"><strong>"warn"</strong></span> (default)
277 <span class="command"><strong>"ignore"</strong></span>.
279 <dt><span class="term">zonename</span></dt>
281 The domain name of the zone being checked.
283 <dt><span class="term">filename</span></dt>
285 The name of the zone file.
289 <div class="refsection">
290 <a name="id-1.14.15.9"></a><h2>RETURN VALUES</h2>
291 <p><span class="command"><strong>named-checkzone</strong></span>
292 returns an exit status of 1 if
293 errors were detected and 0 otherwise.
296 <div class="refsection">
297 <a name="id-1.14.15.10"></a><h2>SEE ALSO</h2>
298 <p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
299 <span class="citerefentry"><span class="refentrytitle">named-checkconf</span>(8)</span>,
300 <em class="citetitle">RFC 1035</em>,
301 <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
305 <div class="navfooter">
307 <table width="100%" summary="Navigation footer">
309 <td width="40%" align="left">
310 <a accesskey="p" href="man.named-checkconf.html">Prev</a> </td>
311 <td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
312 <td width="40%" align="right"> <a accesskey="n" href="man.named.html">Next</a>
316 <td width="40%" align="left" valign="top">
317 <span class="application">named-checkconf</span> </td>
318 <td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
319 <td width="40%" align="right" valign="top"> <span class="application">named</span>
324 <p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.9.9-P3 (Extended Support Version)</p>