Blame bin/check/named-checkconf.docbook

Packit 5ce601
Packit 5ce601
]>
Packit 5ce601
Packit 5ce601
 - Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit 5ce601
 -
Packit 5ce601
 - This Source Code Form is subject to the terms of the Mozilla Public
Packit 5ce601
 - License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service 704ed8
 - file, you can obtain one at https://mozilla.org/MPL/2.0/.
Packit 5ce601
 -
Packit 5ce601
 - See the COPYRIGHT file distributed with this work for additional
Packit 5ce601
 - information regarding copyright ownership.
Packit 5ce601
-->
Packit 5ce601
Packit 5ce601
Packit Service d3afd5
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.named-checkconf">
Packit 5ce601
  <info>
Packit 5ce601
    <date>2014-01-10</date>
Packit 5ce601
  </info>
Packit 5ce601
  <refentryinfo>
Packit 5ce601
    <corpname>ISC</corpname>
Packit 5ce601
    <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
Packit 5ce601
  </refentryinfo>
Packit 5ce601
Packit 5ce601
  <refmeta>
Packit 5ce601
    <refentrytitle><application>named-checkconf</application></refentrytitle>
Packit 5ce601
    <manvolnum>8</manvolnum>
Packit Service d3afd5
    <refmiscinfo>BIND9</refmiscinfo>
Packit 5ce601
  </refmeta>
Packit 5ce601
Packit 5ce601
  <docinfo>
Packit 5ce601
    <copyright>
Packit 5ce601
      <year>2000</year>
Packit 5ce601
      <year>2001</year>
Packit 5ce601
      <year>2002</year>
Packit 5ce601
      <year>2004</year>
Packit 5ce601
      <year>2005</year>
Packit 5ce601
      <year>2007</year>
Packit 5ce601
      <year>2009</year>
Packit 5ce601
      <year>2014</year>
Packit 5ce601
      <year>2015</year>
Packit 5ce601
      <year>2016</year>
Packit 5ce601
      <year>2018</year>
Packit 5ce601
      <year>2019</year>
Packit 5ce601
      <year>2020</year>
Packit 5ce601
      <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
Packit 5ce601
    </copyright>
Packit 5ce601
  </docinfo>
Packit 5ce601
Packit 5ce601
  <refnamediv>
Packit 5ce601
    <refname><application>named-checkconf</application></refname>
Packit 5ce601
    <refpurpose>named configuration file syntax checking tool</refpurpose>
Packit 5ce601
  </refnamediv>
Packit 5ce601
Packit 5ce601
  <refsynopsisdiv>
Packit 5ce601
    <cmdsynopsis sepchar=" ">
Packit 5ce601
      <command>named-checkconf</command>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-hjvz</option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-p</option>
Packit 5ce601
	<arg choice="opt" rep="norepeat"><option>-x</option>
Packit 5ce601
      </arg></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
Packit 5ce601
      <arg choice="req" rep="norepeat">filename</arg>
Packit 5ce601
    </cmdsynopsis>
Packit 5ce601
  </refsynopsisdiv>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>DESCRIPTION</title></info>
Packit 5ce601
Packit 5ce601
    <para><command>named-checkconf</command>
Packit 5ce601
      checks the syntax, but not the semantics, of a
Packit 5ce601
      <command>named</command> configuration file.  The file is parsed
Packit 5ce601
      and checked for syntax errors, along with all files included by it.
Packit 5ce601
      If no file is specified, <filename>/etc/named.conf</filename> is read
Packit 5ce601
      by default.
Packit 5ce601
    </para>
Packit 5ce601
    <para>
Packit 5ce601
      Note: files that <command>named</command> reads in separate
Packit 5ce601
      parser contexts, such as <filename>rndc.key</filename> and
Packit 5ce601
      <filename>bind.keys</filename>, are not automatically read
Packit 5ce601
      by <command>named-checkconf</command>.  Configuration
Packit 5ce601
      errors in these files may cause <command>named</command> to
Packit 5ce601
      fail to run, even if <command>named-checkconf</command> was
Packit 5ce601
      successful.  <command>named-checkconf</command> can be run
Packit 5ce601
      on these files explicitly, however.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>OPTIONS</title></info>
Packit 5ce601
Packit 5ce601
    <variablelist>
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-h</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
            Print the usage summary and exit.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-j</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
            When loading a zonefile read the journal if it exists.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-p</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
	    Print out the <filename>named.conf</filename> and included files
Packit 5ce601
	    in canonical form if no errors were detected.
Packit 5ce601
            See also the <option>-x</option> option.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-t <replaceable class="parameter">directory</replaceable></term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
            Chroot to <filename>directory</filename> so that include
Packit 5ce601
            directives in the configuration file are processed as if
Packit 5ce601
            run by a similarly chrooted <command>named</command>.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-v</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
            Print the version of the <command>named-checkconf</command>
Packit 5ce601
            program and exit.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-x</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
	    When printing the configuration files in canonical
Packit 5ce601
            form, obscure shared secrets by replacing them with
Packit 5ce601
            strings of question marks ('?'). This allows the
Packit 5ce601
            contents of <filename>named.conf</filename> and related
Packit 5ce601
            files to be shared — for example, when submitting
Packit 5ce601
            bug reports — without compromising private data.
Packit 5ce601
            This option cannot be used without <option>-p</option>.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>-z</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
	    Perform a test load of all master zones found in
Packit 5ce601
	    <filename>named.conf</filename>.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
        <term>filename</term>
Packit 5ce601
        <listitem>
Packit 5ce601
          <para>
Packit 5ce601
            The name of the configuration file to be checked.  If not
Packit 5ce601
            specified, it defaults to <filename>/etc/named.conf</filename>.
Packit 5ce601
          </para>
Packit 5ce601
        </listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
    </variablelist>
Packit 5ce601
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>RETURN VALUES</title></info>
Packit 5ce601
Packit 5ce601
    <para><command>named-checkconf</command>
Packit 5ce601
      returns an exit status of 1 if
Packit 5ce601
      errors were detected and 0 otherwise.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>SEE ALSO</title></info>
Packit 5ce601
Packit 5ce601
    <para><citerefentry>
Packit 5ce601
        <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
Packit 5ce601
      </citerefentry>,
Packit 5ce601
      <citerefentry>
Packit 5ce601
        <refentrytitle>named-checkzone</refentrytitle><manvolnum>8</manvolnum>
Packit 5ce601
      </citerefentry>,
Packit 5ce601
      <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
</refentry>