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, 2005, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2000-2002 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 <refentry id="man.named-checkconf">
23 <date>January 10, 2014</date>
27 <refentrytitle><application>named-checkconf</application></refentrytitle>
28 <manvolnum>8</manvolnum>
29 <refmiscinfo>BIND9</refmiscinfo>
39 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
45 <holder>Internet Software Consortium.</holder>
50 <refname><application>named-checkconf</application></refname>
51 <refpurpose>named configuration file syntax checking tool</refpurpose>
56 <command>named-checkconf</command>
57 <arg><option>-h</option></arg>
58 <arg><option>-v</option></arg>
59 <arg><option>-j</option></arg>
60 <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
61 <arg choice="req">filename</arg>
62 <arg><option>-p</option></arg>
63 <arg><option>-x</option></arg>
64 <arg><option>-z</option></arg>
69 <title>DESCRIPTION</title>
70 <para><command>named-checkconf</command>
71 checks the syntax, but not the semantics, of a
72 <command>named</command> configuration file. The file is parsed
73 and checked for syntax errors, along with all files included by it.
74 If no file is specified, <filename>/etc/named.conf</filename> is read
78 Note: files that <command>named</command> reads in separate
79 parser contexts, such as <filename>rndc.key</filename> and
80 <filename>bind.keys</filename>, are not automatically read
81 by <command>named-checkconf</command>. Configuration
82 errors in these files may cause <command>named</command> to
83 fail to run, even if <command>named-checkconf</command> was
84 successful. <command>named-checkconf</command> can be run
85 on these files explicitly, however.
90 <title>OPTIONS</title>
97 Print the usage summary and exit.
103 <term>-t <replaceable class="parameter">directory</replaceable></term>
106 Chroot to <filename>directory</filename> so that include
107 directives in the configuration file are processed as if
108 run by a similarly chrooted named.
117 Print the version of the <command>named-checkconf</command>
127 Print out the <filename>named.conf</filename> and included files
128 in canonical form if no errors were detected.
137 When printing the configuration files in canonical
138 form, obscure shared secrets by replacing them with
139 strings of question marks ('?'). This allows the
140 contents of <filename>named.conf</filename> and related
141 files to be shared — for example, when submitting
142 bug reports — without compromising private data.
143 This option cannot be used without <option>-p</option>.
152 Perform a test load of all master zones found in
153 <filename>named.conf</filename>.
162 When loading a zonefile read the journal if it exists.
168 <term>filename</term>
171 The name of the configuration file to be checked. If not
172 specified, it defaults to <filename>/etc/named.conf</filename>.
182 <title>RETURN VALUES</title>
183 <para><command>named-checkconf</command>
184 returns an exit status of 1 if
185 errors were detected and 0 otherwise.
190 <title>SEE ALSO</title>
192 <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
195 <refentrytitle>named-checkzone</refentrytitle><manvolnum>8</manvolnum>
197 <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
202 <title>AUTHOR</title>
203 <para><corpauthor>Internet Systems Consortium</corpauthor>