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