man.named-checkconf.html revision d856585f5fe37cc2ea82115c10339578d2b517b1
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<!--
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater - Copyright (C) 2000-2003 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User -
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Permission to use, copy, modify, and/or distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - purpose with or without fee is hereby granted, provided that the above
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - copyright notice and this permission notice appear in all copies.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - PERFORMANCE OF THIS SOFTWARE.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User-->
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<!-- $Id: man.named-checkconf.html,v 1.148 2009/12/29 01:14:03 tbox Exp $ -->
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<html>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<head>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<title>named-checkconf</title>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<link rel="prev" href="man.dnssec-signzone.html" title="dnssec-signzone">
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User<link rel="next" href="man.named-checkzone.html" title="named-checkzone">
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User</head>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<div class="navheader">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<table width="100%" summary="Navigation header">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<tr>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<td width="20%" align="left">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<a accesskey="p" href="man.dnssec-signzone.html">Prev</a>�</td>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<th width="60%" align="center">Manual pages</th>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater</td>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User</tr>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater</table>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<hr>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User</div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="refentry" lang="en">
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User<a name="man.named-checkconf"></a><div class="titlepage"></div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="refnamediv">
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<h2>Name</h2>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<p><span class="application">named-checkconf</span> &#8212; named configuration file syntax checking tool</p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater</div>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<div class="refsynopsisdiv">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<h2>Synopsis</h2>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<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>
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User</div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="refsect1" lang="en">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<a name="id2612759"></a><h2>DESCRIPTION</h2>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><span><strong class="command">named-checkconf</strong></span>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater checks the syntax, but not the semantics, of a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <span><strong class="command">named</strong></span> configuration file. The file is parsed
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater and checked for syntax errors, along with all files included by it.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User If no file is specified, <code class="filename">/etc/named.conf</code> is read
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater by default.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater Note: files that <span><strong class="command">named</strong></span> reads in separate
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User parser contexts, such as <code class="filename">rndc.key</code> and
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="filename">bind.keys</code>, are not automatically read
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User by <span><strong class="command">named-checkconf</strong></span>. Configuration
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater errors in these files may cause <span><strong class="command">named</strong></span> to
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User fail to run, even if <span><strong class="command">named-checkconf</strong></span> was
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater successful. <span><strong class="command">named-checkconf</strong></span> can be run
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User on these files explicitly, however.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </p>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User</div>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<div class="refsect1" lang="en">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<a name="id2612829"></a><h2>OPTIONS</h2>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="variablelist"><dl>
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User<dt><span class="term">-h</span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater Print the usage summary and exit.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </p></dd>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<dd><p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater Chroot to <code class="filename">directory</code> so that include
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater directives in the configuration file are processed as if
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater run by a similarly chrooted named.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </p></dd>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dt><span class="term">-v</span></dt>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dd><p>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt Print the version of the <span><strong class="command">named-checkconf</strong></span>
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User program and exit.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User </p></dd>
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User<dt><span class="term">-p</span></dt>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dd><p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater Print out the <code class="filename">named.conf</code> and included files
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater in canonical form if no errors were detected.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </p></dd>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dt><span class="term">-z</span></dt>
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User<dd><p>
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User Perform a test load of all master zones found in
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="filename">named.conf</code>.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </p></dd>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<dt><span class="term">-j</span></dt>
c2258eedf2d9d0207b45b90014f8fde5413b41a3Tinderbox User<dd><p>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater When loading a zonefile read the journal if it exists.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater </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="id2612964"></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="id2612978"></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="id2613008"></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>