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