man.named-checkconf.html revision 299e3f18eb4f9297e6f06ca373806b07bec13a02
8495845a800cf09321436aed996188c9a92cd647bnicholes - Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC")
8495845a800cf09321436aed996188c9a92cd647bnicholes - Copyright (C) 2000-2003 Internet Software Consortium.
8495845a800cf09321436aed996188c9a92cd647bnicholes - Permission to use, copy, modify, and/or distribute this software for any
8495845a800cf09321436aed996188c9a92cd647bnicholes - purpose with or without fee is hereby granted, provided that the above
8495845a800cf09321436aed996188c9a92cd647bnicholes - copyright notice and this permission notice appear in all copies.
8495845a800cf09321436aed996188c9a92cd647bnicholes - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8495845a800cf09321436aed996188c9a92cd647bnicholes - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0662ed52e814f8f08ef0e09956413a792584eddffuankg - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
8495845a800cf09321436aed996188c9a92cd647bnicholes - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
8495845a800cf09321436aed996188c9a92cd647bnicholes - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
8495845a800cf09321436aed996188c9a92cd647bnicholes - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8495845a800cf09321436aed996188c9a92cd647bnicholes - PERFORMANCE OF THIS SOFTWARE.
8495845a800cf09321436aed996188c9a92cd647bnicholes<!-- $Id$ -->
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
8495845a800cf09321436aed996188c9a92cd647bnicholes<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8495845a800cf09321436aed996188c9a92cd647bnicholes<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
8495845a800cf09321436aed996188c9a92cd647bnicholes<link rel="prev" href="man.dnssec-verify.html" title="dnssec-verify">
8495845a800cf09321436aed996188c9a92cd647bnicholes<link rel="next" href="man.named-checkzone.html" title="named-checkzone">
8495845a800cf09321436aed996188c9a92cd647bnicholes<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
8495845a800cf09321436aed996188c9a92cd647bnicholes<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
8495845a800cf09321436aed996188c9a92cd647bnicholes<a accesskey="p" href="man.dnssec-verify.html">Prev</a>�</td>
8495845a800cf09321436aed996188c9a92cd647bnicholes<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
8495845a800cf09321436aed996188c9a92cd647bnicholes<a name="man.named-checkconf"></a><div class="titlepage"></div>
8495845a800cf09321436aed996188c9a92cd647bnicholes<p><span class="application">named-checkconf</span> — named configuration file syntax checking tool</p>
8495845a800cf09321436aed996188c9a92cd647bnicholes<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">-z</code>]</p></div>
8495845a800cf09321436aed996188c9a92cd647bnicholes<p><span><strong class="command">named-checkconf</strong></span>
8495845a800cf09321436aed996188c9a92cd647bnicholes checks the syntax, but not the semantics, of a
8495845a800cf09321436aed996188c9a92cd647bnicholes <span><strong class="command">named</strong></span> configuration file. The file is parsed
8495845a800cf09321436aed996188c9a92cd647bnicholes and checked for syntax errors, along with all files included by it.
8495845a800cf09321436aed996188c9a92cd647bnicholes If no file is specified, <code class="filename">/etc/named.conf</code> is read
8495845a800cf09321436aed996188c9a92cd647bnicholes Note: files that <span><strong class="command">named</strong></span> reads in separate
8495845a800cf09321436aed996188c9a92cd647bnicholes parser contexts, such as <code class="filename">rndc.key</code> and
8495845a800cf09321436aed996188c9a92cd647bnicholes <code class="filename">bind.keys</code>, are not automatically read
8495845a800cf09321436aed996188c9a92cd647bnicholes by <span><strong class="command">named-checkconf</strong></span>. Configuration
8495845a800cf09321436aed996188c9a92cd647bnicholes errors in these files may cause <span><strong class="command">named</strong></span> to
8495845a800cf09321436aed996188c9a92cd647bnicholes fail to run, even if <span><strong class="command">named-checkconf</strong></span> was
8495845a800cf09321436aed996188c9a92cd647bnicholes successful. <span><strong class="command">named-checkconf</strong></span> can be run
8495845a800cf09321436aed996188c9a92cd647bnicholes on these files explicitly, however.
8495845a800cf09321436aed996188c9a92cd647bnicholes Print the usage summary and exit.
8495845a800cf09321436aed996188c9a92cd647bnicholes<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
8495845a800cf09321436aed996188c9a92cd647bnicholes Chroot to <code class="filename">directory</code> so that include
8495845a800cf09321436aed996188c9a92cd647bnicholes directives in the configuration file are processed as if
8495845a800cf09321436aed996188c9a92cd647bnicholes run by a similarly chrooted named.
8495845a800cf09321436aed996188c9a92cd647bnicholes Print the version of the <span><strong class="command">named-checkconf</strong></span>
8495845a800cf09321436aed996188c9a92cd647bnicholes program and exit.
8495845a800cf09321436aed996188c9a92cd647bnicholes Print out the <code class="filename">named.conf</code> and included files
8495845a800cf09321436aed996188c9a92cd647bnicholes in canonical form if no errors were detected.
8495845a800cf09321436aed996188c9a92cd647bnicholes Perform a test load of all master zones found in
8495845a800cf09321436aed996188c9a92cd647bnicholes When loading a zonefile read the journal if it exists.
8495845a800cf09321436aed996188c9a92cd647bnicholes The name of the configuration file to be checked. If not
8495845a800cf09321436aed996188c9a92cd647bnicholes specified, it defaults to <code class="filename">/etc/named.conf</code>.
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholes<p><span><strong class="command">named-checkconf</strong></span>
8495845a800cf09321436aed996188c9a92cd647bnicholes returns an exit status of 1 if
8495845a800cf09321436aed996188c9a92cd647bnicholes errors were detected and 0 otherwise.
8495845a800cf09321436aed996188c9a92cd647bnicholes<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
8495845a800cf09321436aed996188c9a92cd647bnicholes <span class="citerefentry"><span class="refentrytitle">named-checkzone</span>(8)</span>,
8495845a800cf09321436aed996188c9a92cd647bnicholes <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
8495845a800cf09321436aed996188c9a92cd647bnicholes<p><span class="corpauthor">Internet Systems Consortium</span>
8495845a800cf09321436aed996188c9a92cd647bnicholes<a accesskey="p" href="man.dnssec-verify.html">Prev</a>�</td>
8495845a800cf09321436aed996188c9a92cd647bnicholes<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
8495845a800cf09321436aed996188c9a92cd647bnicholes<td width="40%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
8495845a800cf09321436aed996188c9a92cd647bnicholes<span class="application">dnssec-verify</span>�</td>
8495845a800cf09321436aed996188c9a92cd647bnicholes<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
8495845a800cf09321436aed996188c9a92cd647bnicholes<td width="40%" align="right" valign="top">�<span class="application">named-checkzone</span>