2 - Copyright (C) 2004, 2005, 2007, 2009, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000-2002 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-checkconf</title>
21 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
23 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
24 <a name="man.named-checkconf"></a><div class="titlepage"></div>
25 <div class="refnamediv">
27 <p><span class="application">named-checkconf</span> — named configuration file syntax checking tool</p>
29 <div class="refsynopsisdiv">
31 <div class="cmdsynopsis"><p><code class="command">named-checkconf</code> [<code class="option">-h</code>] [<code class="option">-v</code>] [<code class="option">-j</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] {filename} [<code class="option">-p</code>] [<code class="option">-x</code>] [<code class="option">-z</code>]</p></div>
33 <div class="refsection">
34 <a name="id-1.7"></a><h2>DESCRIPTION</h2>
35 <p><span class="command"><strong>named-checkconf</strong></span>
36 checks the syntax, but not the semantics, of a
37 <span class="command"><strong>named</strong></span> configuration file. The file is parsed
38 and checked for syntax errors, along with all files included by it.
39 If no file is specified, <code class="filename">/etc/named.conf</code> is read
43 Note: files that <span class="command"><strong>named</strong></span> reads in separate
44 parser contexts, such as <code class="filename">rndc.key</code> and
45 <code class="filename">bind.keys</code>, are not automatically read
46 by <span class="command"><strong>named-checkconf</strong></span>. Configuration
47 errors in these files may cause <span class="command"><strong>named</strong></span> to
48 fail to run, even if <span class="command"><strong>named-checkconf</strong></span> was
49 successful. <span class="command"><strong>named-checkconf</strong></span> can be run
50 on these files explicitly, however.
53 <div class="refsection">
54 <a name="id-1.8"></a><h2>OPTIONS</h2>
55 <div class="variablelist"><dl class="variablelist">
56 <dt><span class="term">-h</span></dt>
58 Print the usage summary and exit.
60 <dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
62 Chroot to <code class="filename">directory</code> so that include
63 directives in the configuration file are processed as if
64 run by a similarly chrooted named.
66 <dt><span class="term">-v</span></dt>
68 Print the version of the <span class="command"><strong>named-checkconf</strong></span>
71 <dt><span class="term">-p</span></dt>
73 Print out the <code class="filename">named.conf</code> and included files
74 in canonical form if no errors were detected.
76 <dt><span class="term">-x</span></dt>
78 When printing the configuration files in canonical
79 form, obscure shared secrets by replacing them with
80 strings of question marks ('?'). This allows the
81 contents of <code class="filename">named.conf</code> and related
82 files to be shared — for example, when submitting
83 bug reports — without compromising private data.
84 This option cannot be used without <code class="option">-p</code>.
86 <dt><span class="term">-z</span></dt>
88 Perform a test load of all master zones found in
89 <code class="filename">named.conf</code>.
91 <dt><span class="term">-j</span></dt>
93 When loading a zonefile read the journal if it exists.
95 <dt><span class="term">filename</span></dt>
97 The name of the configuration file to be checked. If not
98 specified, it defaults to <code class="filename">/etc/named.conf</code>.
102 <div class="refsection">
103 <a name="id-1.9"></a><h2>RETURN VALUES</h2>
104 <p><span class="command"><strong>named-checkconf</strong></span>
105 returns an exit status of 1 if
106 errors were detected and 0 otherwise.
109 <div class="refsection">
110 <a name="id-1.10"></a><h2>SEE ALSO</h2>
111 <p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
112 <span class="citerefentry"><span class="refentrytitle">named-checkzone</span>(8)</span>,
113 <em class="citetitle">BIND 9 Administrator Reference Manual</em>.