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