man.named-checkconf.html revision 1238b38c9f0ab563b762dc0fd00ac6c34c2b7295
863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainen<!--
863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainen - Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
3faa1040e5a3f9f35ffad29110216094ab2f5880Timo Sirainen - Copyright (C) 2000-2003 Internet Software Consortium.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen -
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen - Permission to use, copy, modify, and/or distribute this software for any
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen - purpose with or without fee is hereby granted, provided that the above
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen - copyright notice and this permission notice appear in all copies.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen -
cf3894a2a22dc76247275e7ad7a5417fa5f27a28Timo Sirainen - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
b8efab7ea8876c0a33a73ee0d08eddada31320f8Timo Sirainen - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
96d19229e5f322411eb84446e5477d8170cfa5afTimo Sirainen - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainen - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7ab70e15c63c172c1715a40c8ffcff0285b6f05eTimo Sirainen - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen - PERFORMANCE OF THIS SOFTWARE.
83879fb63453dc3b96269d2217339e14dca753b4Timo Sirainen-->
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen<!-- $Id: man.named-checkconf.html,v 1.158 2010/06/26 01:14:18 tbox Exp $ -->
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen<html>
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen<head>
d47a87c927ca77e780480f4eaf575511698d42c8Timo Sirainen<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen<title>named-checkconf</title>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8761992b5aa05862e7ec3a460cdc17af41a4a0f5Timo Sirainen<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<link rel="prev" href="man.dnssec-signzone.html" title="dnssec-signzone">
5d03d9f439e41c90215a3c938ffebe4c2a8ae257Timo Sirainen<link rel="next" href="man.named-checkzone.html" title="named-checkzone">
3faa1040e5a3f9f35ffad29110216094ab2f5880Timo Sirainen</head>
f29756821a4c6b12b73e4a2a3e1c230117a43773Timo Sirainen<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
b63e20ea9bc84f1aa90a551f217d01385e070b73Timo Sirainen<div class="navheader">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<table width="100%" summary="Navigation header">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
9874b30b34224c1372800be017f3bb636e7d7f7aTimo Sirainen<tr>
83879fb63453dc3b96269d2217339e14dca753b4Timo Sirainen<td width="20%" align="left">
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen<a accesskey="p" href="man.dnssec-signzone.html">Prev</a>�</td>
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen<th width="60%" align="center">Manual pages</th>
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
d47a87c927ca77e780480f4eaf575511698d42c8Timo Sirainen</td>
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen</tr>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen</table>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen<hr>
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen</div>
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<div class="refentry" lang="en">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<a name="man.named-checkconf"></a><div class="titlepage"></div>
2710604bdf77c8db98ef3837223edc81a24a52f0Timo Sirainen<div class="refnamediv">
cf3894a2a22dc76247275e7ad7a5417fa5f27a28Timo Sirainen<h2>Name</h2>
f29756821a4c6b12b73e4a2a3e1c230117a43773Timo Sirainen<p><span class="application">named-checkconf</span> &#8212; named configuration file syntax checking tool</p>
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen</div>
b63e20ea9bc84f1aa90a551f217d01385e070b73Timo Sirainen<div class="refsynopsisdiv">
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen<h2>Synopsis</h2>
9874b30b34224c1372800be017f3bb636e7d7f7aTimo Sirainen<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>
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainen</div>
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainen<div class="refsect1" lang="en">
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen<a name="id2616665"></a><h2>DESCRIPTION</h2>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen<p><span><strong class="command">named-checkconf</strong></span>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen checks the syntax, but not the semantics, of a
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen <span><strong class="command">named</strong></span> configuration file. The file is parsed
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen and checked for syntax errors, along with all files included by it.
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen If no file is specified, <code class="filename">/etc/named.conf</code> is read
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen by default.
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen </p>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen<p>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen Note: files that <span><strong class="command">named</strong></span> reads in separate
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen parser contexts, such as <code class="filename">rndc.key</code> and
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen <code class="filename">bind.keys</code>, are not automatically read
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen by <span><strong class="command">named-checkconf</strong></span>. Configuration
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen errors in these files may cause <span><strong class="command">named</strong></span> to
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen fail to run, even if <span><strong class="command">named-checkconf</strong></span> was
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen successful. <span><strong class="command">named-checkconf</strong></span> can be run
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainen on these files explicitly, however.
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen </p>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen</div>
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen<div class="refsect1" lang="en">
<a name="id2616736"></a><h2>OPTIONS</h2>
<div class="variablelist"><dl>
<dt><span class="term">-h</span></dt>
<dd><p>
Print the usage summary and exit.
</p></dd>
<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
<dd><p>
Chroot to <code class="filename">directory</code> so that include
directives in the configuration file are processed as if
run by a similarly chrooted named.
</p></dd>
<dt><span class="term">-v</span></dt>
<dd><p>
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">-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="id2616938"></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="id2616952"></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="id2616982"></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-signzone.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-signzone</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>