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