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