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