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