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