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 <!-- $Id: named-checkconf.docbook,v 1.22 2009/12/28 23:21:16 each Exp $ -->
22 <refentry id="man.named-checkconf">
24 <date>June 14, 2000</date>
28 <refentrytitle><application>named-checkconf</application></refentrytitle>
29 <manvolnum>8</manvolnum>
30 <refmiscinfo>BIND9</refmiscinfo>
40 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
46 <holder>Internet Software Consortium.</holder>
51 <refname><application>named-checkconf</application></refname>
52 <refpurpose>named configuration file syntax checking tool</refpurpose>
57 <command>named-checkconf</command>
58 <arg><option>-h</option></arg>
59 <arg><option>-v</option></arg>
60 <arg><option>-j</option></arg>
61 <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
62 <arg choice="req">filename</arg>
63 <arg><option>-p</option></arg>
64 <arg><option>-x</option></arg>
65 <arg><option>-z</option></arg>
70 <title>DESCRIPTION</title>
71 <para><command>named-checkconf</command>
72 checks the syntax, but not the semantics, of a
73 <command>named</command> configuration file. The file is parsed
74 and checked for syntax errors, along with all files included by it.
75 If no file is specified, <filename>/etc/named.conf</filename> is read
79 Note: files that <command>named</command> reads in separate
80 parser contexts, such as <filename>rndc.key</filename> and
81 <filename>bind.keys</filename>, are not automatically read
82 by <command>named-checkconf</command>. Configuration
83 errors in these files may cause <command>named</command> to
84 fail to run, even if <command>named-checkconf</command> was
85 successful. <command>named-checkconf</command> can be run
86 on these files explicitly, however.
91 <title>OPTIONS</title>
98 Print the usage summary and exit.
104 <term>-t <replaceable class="parameter">directory</replaceable></term>
107 Chroot to <filename>directory</filename> so that include
108 directives in the configuration file are processed as if
109 run by a similarly chrooted named.
118 Print the version of the <command>named-checkconf</command>
128 Print out the <filename>named.conf</filename> and included files
129 in canonical form if no errors were detected.
138 When printing the configuration files in canonical
139 form, obscure shared secrets by replacing them with
140 strings of question marks ('?'). This allows the
141 contents of <filename>named.conf</filename> and related
142 files to be shared — for example, when submitting
143 bug reports — without compromising private data.
144 This option cannot be used without <option>-p</option>.
153 Perform a test load of all master zones found in
154 <filename>named.conf</filename>.
163 When loading a zonefile read the journal if it exists.
169 <term>filename</term>
172 The name of the configuration file to be checked. If not
173 specified, it defaults to <filename>/etc/named.conf</filename>.
183 <title>RETURN VALUES</title>
184 <para><command>named-checkconf</command>
185 returns an exit status of 1 if
186 errors were detected and 0 otherwise.
191 <title>SEE ALSO</title>
193 <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
196 <refentrytitle>named-checkzone</refentrytitle><manvolnum>8</manvolnum>
198 <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
203 <title>AUTHOR</title>
204 <para><corpauthor>Internet Systems Consortium</corpauthor>