man.named-checkconf.html revision 32098293b78922a5fbd10906afa28624820d3756
70N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
70N/A<!--
1104N/A - Copyright (C) 2000-2017 Internet Systems Consortium, Inc. ("ISC")
70N/A -
70N/A - This Source Code Form is subject to the terms of the Mozilla Public
919N/A - License, v. 2.0. If a copy of the MPL was not distributed with this
919N/A - file, You can obtain one at http://mozilla.org/MPL/2.0/.
919N/A-->
919N/A<html lang="en">
919N/A<head>
919N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
919N/A<title>named-checkconf</title>
919N/A<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
919N/A<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
919N/A<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
919N/A<link rel="prev" href="man.named.conf.html" title="named.conf">
919N/A<link rel="next" href="man.named-checkzone.html" title="named-checkzone">
919N/A</head>
919N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
919N/A<div class="navheader">
919N/A<table width="100%" summary="Navigation header">
919N/A<tr><th colspan="3" align="center"><span class="application">named-checkconf</span></th></tr>
70N/A<tr>
70N/A<td width="20%" align="left">
70N/A<a accesskey="p" href="man.named.conf.html">Prev</a>�</td>
70N/A<th width="60%" align="center">Manual pages</th>
851N/A<td width="20%" align="right">�<a accesskey="n" href="man.named-checkzone.html">Next</a>
851N/A</td>
851N/A</tr>
851N/A</table>
851N/A<hr>
98N/A</div>
551N/A<div class="refentry">
321N/A<a name="man.named-checkconf"></a><div class="titlepage"></div>
321N/A
550N/A
550N/A
213N/A
649N/A
304N/A
530N/A
425N/A <div class="refnamediv">
425N/A<h2>Name</h2>
325N/A<p>
493N/A <span class="application">named-checkconf</span>
536N/A &#8212; named configuration file syntax checking tool
456N/A </p>
320N/A</div>
332N/A
501N/A <div class="refsynopsisdiv">
231N/A<h2>Synopsis</h2>
550N/A <div class="cmdsynopsis"><p>
347N/A <code class="command">named-checkconf</code>
532N/A [<code class="option">-hjvz</code>]
463N/A [<code class="option">-p</code>
493N/A [<code class="option">-x</code>
425N/A ]]
493N/A [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>]
791N/A {filename}
472N/A </p></div>
324N/A </div>
347N/A
310N/A <div class="refsection">
316N/A<a name="id-1.14.21.7"></a><h2>DESCRIPTION</h2>
474N/A
290N/A <p><span class="command"><strong>named-checkconf</strong></span>
332N/A checks the syntax, but not the semantics, of a
464N/A <span class="command"><strong>named</strong></span> configuration file. The file is parsed
332N/A and checked for syntax errors, along with all files included by it.
509N/A If no file is specified, <code class="filename">/etc/named.conf</code> is read
835N/A by default.
835N/A </p>
332N/A <p>
210N/A Note: files that <span class="command"><strong>named</strong></span> reads in separate
493N/A parser contexts, such as <code class="filename">rndc.key</code> and
792N/A <code class="filename">bind.keys</code>, are not automatically read
128N/A by <span class="command"><strong>named-checkconf</strong></span>. Configuration
414N/A errors in these files may cause <span class="command"><strong>named</strong></span> to
484N/A fail to run, even if <span class="command"><strong>named-checkconf</strong></span> was
326N/A successful. <span class="command"><strong>named-checkconf</strong></span> can be run
493N/A on these files explicitly, however.
335N/A </p>
493N/A </div>
493N/A
729N/A <div class="refsection">
425N/A<a name="id-1.14.21.8"></a><h2>OPTIONS</h2>
370N/A
70N/A <div class="variablelist"><dl class="variablelist">
400N/A<dt><span class="term">-h</span></dt>
294N/A<dd>
435N/A <p>
800N/A Print the usage summary and exit.
98N/A </p>
434N/A </dd>
505N/A<dt><span class="term">-j</span></dt>
277N/A<dd>
433N/A <p>
546N/A When loading a zonefile read the journal if it exists.
356N/A </p>
289N/A </dd>
326N/A<dt><span class="term">-p</span></dt>
439N/A<dd>
501N/A <p>
469N/A Print out the <code class="filename">named.conf</code> and included files
290N/A in canonical form if no errors were detected.
542N/A See also the <code class="option">-x</code> option.
424N/A </p>
286N/A </dd>
90N/A<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
475N/A<dd>
295N/A <p>
70N/A Chroot to <code class="filename">directory</code> so that include
299N/A directives in the configuration file are processed as if
262N/A run by a similarly chrooted <span class="command"><strong>named</strong></span>.
539N/A </p>
277N/A </dd>
332N/A<dt><span class="term">-v</span></dt>
332N/A<dd>
493N/A <p>
70N/A Print the version of the <span class="command"><strong>named-checkconf</strong></span>
70N/A program and exit.
319N/A </p>
280N/A </dd>
319N/A<dt><span class="term">-x</span></dt>
70N/A<dd>
1117N/A <p>
1117N/A When printing the configuration files in canonical
98N/A form, obscure shared secrets by replacing them with
414N/A strings of question marks ('?'). This allows the
98N/A contents of <code class="filename">named.conf</code> and related
744N/A files to be shared &#8212; for example, when submitting
1104N/A bug reports &#8212; without compromising private data.
744N/A This option cannot be used without <code class="option">-p</code>.
763N/A </p>
1122N/A </dd>
763N/A<dt><span class="term">-z</span></dt>
763N/A<dd>
744N/A <p>
493N/A Perform a test load of all master zones found in
967N/A <code class="filename">named.conf</code>.
70N/A </p>
493N/A </dd>
493N/A<dt><span class="term">filename</span></dt>
967N/A<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="refsection">
<a name="id-1.14.21.9"></a><h2>RETURN VALUES</h2>
<p><span class="command"><strong>named-checkconf</strong></span>
returns an exit status of 1 if
errors were detected and 0 otherwise.
</p>
</div>
<div class="refsection">
<a name="id-1.14.21.10"></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>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="man.named.conf.html">Prev</a>�</td>
<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.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">
<code class="filename">named.conf</code>�</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>
<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.2b1</p>
</body>
</html>