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