man.named-checkconf.html revision 9941177e7eb530451d5970959cc2828c53cb36c9
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2000-2003 Internet Software Consortium.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - purpose with or without fee is hereby granted, provided that the above
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater - copyright notice and this permission notice appear in all copies.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater - PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<!-- $Id$ -->
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<link rel="prev" href="man.dnssec-verify.html" title="dnssec-verify">
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<link rel="next" href="man.named-checkzone.html" title="named-checkzone">
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<table width="100%" summary="Navigation header">
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<a accesskey="p" href="man.dnssec-verify.html">Prev</a>�</td>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<th width="60%" align="center">Manual pages</th>
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic Updater<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<a name="man.named-checkconf"></a><div class="titlepage"></div>
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater<p><span class="application">named-checkconf</span> — named configuration file syntax checking tool</p>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<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>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<p><span><strong class="command">named-checkconf</strong></span>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson checks the syntax, but not the semantics, of a
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews <span><strong class="command">named</strong></span> configuration file. The file is parsed
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews and checked for syntax errors, along with all files included by it.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson If no file is specified, <code class="filename">/etc/named.conf</code> is read
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont Note: files that <span><strong class="command">named</strong></span> reads in separate
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont parser contexts, such as <code class="filename">rndc.key</code> and
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont <code class="filename">bind.keys</code>, are not automatically read
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont by <span><strong class="command">named-checkconf</strong></span>. Configuration
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews errors in these files may cause <span><strong class="command">named</strong></span> to
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews fail to run, even if <span><strong class="command">named-checkconf</strong></span> was
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews successful. <span><strong class="command">named-checkconf</strong></span> can be run
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews on these files explicitly, however.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews Print the usage summary and exit.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews Chroot to <code class="filename">directory</code> so that include
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson directives in the configuration file are processed as if
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews run by a similarly chrooted named.
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater Print the version of the <span><strong class="command">named-checkconf</strong></span>
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews program and exit.
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater Print out the <code class="filename">named.conf</code> and included files
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater in canonical form if no errors were detected.
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater Perform a test load of all master zones found in
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater When loading a zonefile read the journal if it exists.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<dt><span class="term">filename</span></dt>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater The name of the configuration file to be checked. If not
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater specified, it defaults to <code class="filename">/etc/named.conf</code>.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<a name="id2633539"></a><h2>RETURN VALUES</h2>
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater<p><span><strong class="command">named-checkconf</strong></span>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater returns an exit status of 1 if
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater errors were detected and 0 otherwise.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<p><span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <span class="citerefentry"><span class="refentrytitle">named-checkzone</span>(8)</span>,
ea935c46e8261ea10621e5b038426539fe8a7cc5Mark Andrews <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<table width="100%" summary="Navigation footer">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<a accesskey="p" href="man.dnssec-verify.html">Prev</a>�</td>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater<td width="40%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<span class="application">dnssec-verify</span>�</td>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<td width="40%" align="right" valign="top">�<span class="application">named-checkzone</span>