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