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