man.named-checkconf.html revision 7717ec7a6a898cdd3c35cbfba66010b7304ffd9b
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<!--
7d98a1783f222964bcde7d56dab77b822706204dBob Halley - Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - Copyright (C) 2000-2003 Internet Software Consortium.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley -
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 -
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-->
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<!-- $Id: man.named-checkconf.html,v 1.180 2011/03/22 01:14:27 tbox Exp $ -->
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence<html>
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence<head>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<title>named-checkconf</title>
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</head>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson<div class="navheader">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<table width="100%" summary="Navigation header">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson<tr>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<td width="20%" align="left">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<a accesskey="p" href="man.dnssec-signzone.html">Prev</a>�</td>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<th width="60%" align="center">Manual pages</th>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley</td>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley</tr>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley</table>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<hr>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley</div>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<div class="refentry" lang="en">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<a name="man.named-checkconf"></a><div class="titlepage"></div>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<div class="refnamediv">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<h2>Name</h2>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson<p><span class="application">named-checkconf</span> &#8212; named configuration file syntax checking tool</p>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson</div>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson<div class="refsynopsisdiv">
608f870f4821972313eadc5388a42fa55b6279d1Mark Andrews<h2>Synopsis</h2>
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>
878d3073b13833ee1a50dfeabf8e400b6fdfc754Brian Wellington</div>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<div class="refsect1" lang="en">
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<a name="id2618252"></a><h2>DESCRIPTION</h2>
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 by default.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </p>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<p>
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.
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence </p>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley</div>
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff<div class="refsect1" lang="en">
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence<a name="id2618323"></a><h2>OPTIONS</h2>
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff<div class="variablelist"><dl>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley<dt><span class="term">-h</span></dt>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<dd><p>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson Print the usage summary and exit.
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson </p></dd>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson<dd><p>
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 </p></dd>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson<dt><span class="term">-v</span></dt>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson<dd><p>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson Print the version of the <span><strong class="command">named-checkconf</strong></span>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson program and exit.
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson </p></dd>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson<dt><span class="term">-p</span></dt>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson<dd><p>
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 </p></dd>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson<dt><span class="term">-z</span></dt>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson<dd><p>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson Perform a test load of all master zones found in
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson <code class="filename">named.conf</code>.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence </p></dd>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley<dt><span class="term">-j</span></dt>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson<dd><p>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson When loading a zonefile read the journal if it exists.
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson </p></dd>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley<dt><span class="term">filename</span></dt>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson<dd><p>
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>.
44fee668021c7ceef4ee1c848031d883a508b359James Brister </p></dd>
44fee668021c7ceef4ee1c848031d883a508b359James Brister</dl></div>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson</div>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson<div class="refsect1" lang="en">
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.
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson </p>
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson</div>
44fee668021c7ceef4ee1c848031d883a508b359James Brister<div class="refsect1" lang="en">
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson<a name="id2619017"></a><h2>SEE ALSO</h2>
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>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson</div>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson<div class="refsect1" lang="en">
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson<a name="id2619047"></a><h2>AUTHOR</h2>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson<p><span class="corpauthor">Internet Systems Consortium</span>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson </p>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson</div>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson</div>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<div class="navfooter">
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<hr>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<table width="100%" summary="Navigation footer">
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence<tr>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<td width="40%" align="left">
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>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</tr>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson<tr>
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>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</td>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</tr>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</table>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</div>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</body>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson</html>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson