named-checkzone.docbook revision 6844e3f010440a9f3eb200b3c2123a19e58a64dc
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley [<!ENTITY mdash "&#8212;">]>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley<!--
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - Copyright (C) 2004-2007, 2009-2011 Internet Systems Consortium, Inc. ("ISC")
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - Copyright (C) 2000-2002 Internet Software Consortium.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley -
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - Permission to use, copy, modify, and/or distribute this software for any
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - purpose with or without fee is hereby granted, provided that the above
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - copyright notice and this permission notice appear in all copies.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley -
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley - PERFORMANCE OF THIS SOFTWARE.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley-->
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley<!-- $Id: named-checkzone.docbook,v 1.44 2011/12/22 07:32:39 each Exp $ -->
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley<refentry id="man.named-checkzone">
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refentryinfo>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <date>June 13, 2000</date>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </refentryinfo>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refmeta>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <refentrytitle><application>named-checkzone</application></refentrytitle>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <manvolnum>8</manvolnum>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <refmiscinfo>BIND9</refmiscinfo>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </refmeta>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <docinfo>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <copyright>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2004</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2005</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2006</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2007</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2009</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2010</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2011</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </copyright>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <copyright>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2000</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2001</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <year>2002</year>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <holder>Internet Software Consortium.</holder>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </copyright>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </docinfo>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refnamediv>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refname><application>named-checkzone</application></refname>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refname><application>named-compilezone</application></refname>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refpurpose>zone file validity checking or converting tool</refpurpose>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </refnamediv>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <refsynopsisdiv>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <cmdsynopsis>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>named-checkzone</command>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-d</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-h</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-j</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-q</option></arg>
df6699ac61e8cf5d576561210f58d3425680edd7Andreas Gustafsson <arg><option>-v</option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-M <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-S <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-D</option></arg>
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
2504b0a58600c1156a6b829c816d13c58a069453Bob Halley <arg choice="req">zonename</arg>
38980568375a6505452550b5677104ab44291b66Bob Halley <arg choice="req">filename</arg>
00e7d7a0e8529998c78b73371dc90fbf680b57efBob Halley </cmdsynopsis>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <cmdsynopsis>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>named-compilezone</command>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-d</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-j</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-q</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-v</option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-C <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
6f44af1c8320e84d6b0c0c42bacadfe3020d9a91Mark Andrews <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
6f44af1c8320e84d6b0c0c42bacadfe3020d9a91Mark Andrews <arg><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-D</option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg choice="req"><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg choice="req">zonename</arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <arg choice="req">filename</arg>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </cmdsynopsis>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </refsynopsisdiv>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <refsect1>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <title>DESCRIPTION</title>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para><command>named-checkzone</command>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley checks the syntax and integrity of a zone file. It performs the
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley same checks as <command>named</command> does when loading a
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley zone. This makes <command>named-checkzone</command> useful for
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley checking zone files before configuring them into a name server.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>named-compilezone</command> is similar to
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>named-checkzone</command>, but it always dumps the
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley zone contents to a specified file in a specified format.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Additionally, it applies stricter check levels by default,
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley since the dump output will be used as an actual zone file
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley loaded by <command>named</command>.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley When manually specified otherwise, the check levels must at
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley least be as strict as those specified in the
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>named</command> configuration file.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </refsect1>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <refsect1>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <title>OPTIONS</title>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <variablelist>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-d</term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley Enable debugging.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </para>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-h</term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Print the usage summary and exit.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-q</term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley Quiet mode - exit code only.
38980568375a6505452550b5677104ab44291b66Bob Halley </para>
e3027d397f237ff018174fd17bf377a4a1890c6bBob Halley </listitem>
e3027d397f237ff018174fd17bf377a4a1890c6bBob Halley </varlistentry>
e3027d397f237ff018174fd17bf377a4a1890c6bBob Halley
e3027d397f237ff018174fd17bf377a4a1890c6bBob Halley <varlistentry>
38980568375a6505452550b5677104ab44291b66Bob Halley <term>-v</term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Print the version of the <command>named-checkzone</command>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley program and exit.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
38980568375a6505452550b5677104ab44291b66Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
38980568375a6505452550b5677104ab44291b66Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
38980568375a6505452550b5677104ab44291b66Bob Halley <term>-j</term>
e3027d397f237ff018174fd17bf377a4a1890c6bBob Halley <listitem>
38980568375a6505452550b5677104ab44291b66Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley When loading the zone file read the journal if it exists.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
38980568375a6505452550b5677104ab44291b66Bob Halley </listitem>
38980568375a6505452550b5677104ab44291b66Bob Halley </varlistentry>
38980568375a6505452550b5677104ab44291b66Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <term>-c <replaceable class="parameter">class</replaceable></term>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <listitem>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Specify the class of the zone. If not specified, "IN" is assumed.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-i <replaceable class="parameter">mode</replaceable></term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Perform post-load zone integrity checks. Possible modes are
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley <command>"full"</command> (default),
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"full-sibling"</command>,
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"local"</command>,
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"local-sibling"</command> and
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"none"</command>.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley Mode <command>"full"</command> checks that MX records
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley refer to A or AAAA record (both in-zone and out-of-zone
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley hostnames). Mode <command>"local"</command> only
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley checks MX records which refer to in-zone hostnames.
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley </para>
38980568375a6505452550b5677104ab44291b66Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley Mode <command>"full"</command> checks that SRV records
38980568375a6505452550b5677104ab44291b66Bob Halley refer to A or AAAA record (both in-zone and out-of-zone
38980568375a6505452550b5677104ab44291b66Bob Halley hostnames). Mode <command>"local"</command> only
38980568375a6505452550b5677104ab44291b66Bob Halley checks SRV records which refer to in-zone hostnames.
38980568375a6505452550b5677104ab44291b66Bob Halley </para>
38980568375a6505452550b5677104ab44291b66Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley Mode <command>"full"</command> checks that delegation NS
38980568375a6505452550b5677104ab44291b66Bob Halley records refer to A or AAAA record (both in-zone and out-of-zone
38980568375a6505452550b5677104ab44291b66Bob Halley hostnames). It also checks that glue address records
38980568375a6505452550b5677104ab44291b66Bob Halley in the zone match those advertised by the child.
38980568375a6505452550b5677104ab44291b66Bob Halley Mode <command>"local"</command> only checks NS records which
38980568375a6505452550b5677104ab44291b66Bob Halley refer to in-zone hostnames or that some required glue exists,
38980568375a6505452550b5677104ab44291b66Bob Halley that is when the nameserver is in a child zone.
38980568375a6505452550b5677104ab44291b66Bob Halley </para>
38980568375a6505452550b5677104ab44291b66Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley Mode <command>"full-sibling"</command> and
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <command>"local-sibling"</command> disable sibling glue
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews checks but are otherwise the same as <command>"full"</command>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley and <command>"local"</command> respectively.
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Mode <command>"none"</command> disables the checks.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews <varlistentry>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <term>-f <replaceable class="parameter">format</replaceable></term>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <listitem>
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Specify the format of the zone file.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Possible formats are <command>"text"</command> (default),
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"raw"</command>, and <command>"fast"</command>.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-F <replaceable class="parameter">format</replaceable></term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Specify the format of the output file specified.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley For <command>named-checkzone</command>,
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley this does not cause any effects unless it dumps the zone
38980568375a6505452550b5677104ab44291b66Bob Halley contents.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Possible formats are <command>"text"</command> (default),
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley which is the standard textual representation of the zone,
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley and <command>"fast"</command>, <command>"raw"</command>,
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley and <command>"raw=N"</command>, which store the zone in a
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley binary format for rapid loading by <command>named</command>.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"raw=N"</command> specifies the format version of
38980568375a6505452550b5677104ab44291b66Bob Halley the raw zone file: if N is 0, the raw file can be read by
38980568375a6505452550b5677104ab44291b66Bob Halley any version of <command>named</command>; if N is 1, the file
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley can be read by release 9.9.0 or higher; the default is 1.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-k <replaceable class="parameter">mode</replaceable></term>
38980568375a6505452550b5677104ab44291b66Bob Halley <listitem>
38980568375a6505452550b5677104ab44291b66Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley Perform <command>"check-names"</command> checks with the
38980568375a6505452550b5677104ab44291b66Bob Halley specified failure mode.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley Possible modes are <command>"fail"</command>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley (default for <command>named-compilezone</command>),
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"warn"</command>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley (default for <command>named-checkzone</command>) and
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"ignore"</command>.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-L <replaceable class="parameter">serial</replaceable></term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley When compiling a zone to "raw" or "fast" format, set the
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley "source serial" value in the header to the specified serial
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley number. (This is expected to be used primarily for testing
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley purposes.)
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </para>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley </varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <varlistentry>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <term>-m <replaceable class="parameter">mode</replaceable></term>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <listitem>
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <para>
38980568375a6505452550b5677104ab44291b66Bob Halley Specify whether MX records should be checked to see if they
38980568375a6505452550b5677104ab44291b66Bob Halley are addresses. Possible modes are <command>"fail"</command>,
38980568375a6505452550b5677104ab44291b66Bob Halley <command>"warn"</command> (default) and
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley <command>"ignore"</command>.
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley </para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <term>-M <replaceable class="parameter">mode</replaceable></term>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley Check if a MX record refers to a CNAME.
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley Possible modes are <command>"fail"</command>,
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <command>"warn"</command> (default) and
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <command>"ignore"</command>.
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <term>-n <replaceable class="parameter">mode</replaceable></term>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley Specify whether NS records should be checked to see if they
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley are addresses.
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley Possible modes are <command>"fail"</command>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley (default for <command>named-compilezone</command>),
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <command>"warn"</command>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley (default for <command>named-checkzone</command>) and
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <command>"ignore"</command>.
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley </varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <varlistentry>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <term>-o <replaceable class="parameter">filename</replaceable></term>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <listitem>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley <para>
08f8af2a42ddd2b87f1d67c09c0ba057b3253f29Bob Halley Write zone output to <filename>filename</filename>.
e7dbdb25475cdca583dd41f053da2d7c53622b6cBob Halley If <filename>filename</filename> is <filename>-</filename> then
e7dbdb25475cdca583dd41f053da2d7c53622b6cBob Halley write to standard out.
e7dbdb25475cdca583dd41f053da2d7c53622b6cBob Halley This is mandatory for <command>named-compilezone</command>.
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews </para>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews </listitem>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews </varlistentry>
800b03baba638ddb3f67cc0d2ad2e70042fe8525Mark Andrews
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews <varlistentry>
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews <term>-r <replaceable class="parameter">mode</replaceable></term>
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews <listitem>
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews <para>
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews Check for records that are treated as different by DNSSEC but
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews are semantically equal in plain DNS.
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews Possible modes are <command>"fail"</command>,
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews <command>"warn"</command> (default) and
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews <command>"ignore"</command>.
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews </para>
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews </listitem>
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews </varlistentry>
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews <varlistentry>
0358d65e0709c6e34876ec45f914d6e4f38ec241Mark Andrews <term>-s <replaceable class="parameter">style</replaceable></term>
0b16ae54f714bed65d749e3f601a29246cd98672Mark Andrews <listitem>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley <para>
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley Specify the style of the dumped zone file.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley Possible styles are <command>"full"</command> (default)
and <command>"relative"</command>.
The full format is most suitable for processing
automatically by a separate script.
On the other hand, the relative format is more
human-readable and is thus suitable for editing by hand.
For <command>named-checkzone</command>
this does not cause any effects unless it dumps the zone
contents.
It also does not have any meaning if the output format
is not text.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-S <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Check if a SRV record refers to a CNAME.
Possible modes are <command>"fail"</command>,
<command>"warn"</command> (default) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-t <replaceable class="parameter">directory</replaceable></term>
<listitem>
<para>
Chroot to <filename>directory</filename> so that
include
directives in the configuration file are processed as if
run by a similarly chrooted named.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-w <replaceable class="parameter">directory</replaceable></term>
<listitem>
<para>
chdir to <filename>directory</filename> so that
relative
filenames in master file $INCLUDE directives work. This
is similar to the directory clause in
<filename>named.conf</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-D</term>
<listitem>
<para>
Dump zone file in canonical format.
This is always enabled for <command>named-compilezone</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-W <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Specify whether to check for non-terminal wildcards.
Non-terminal wildcards are almost always the result of a
failure to understand the wildcard matching algorithm (RFC 1034).
Possible modes are <command>"warn"</command> (default)
and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>zonename</term>
<listitem>
<para>
The domain name of the zone being checked.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>filename</term>
<listitem>
<para>
The name of the zone file.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>RETURN VALUES</title>
<para><command>named-checkzone</command>
returns an exit status of 1 if
errors were detected and 0 otherwise.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para><citerefentry>
<refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>named-checkconf</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citetitle>RFC 1035</citetitle>,
<citetitle>BIND 9 Administrator Reference Manual</citetitle>.
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para><corpauthor>Internet Systems Consortium</corpauthor>
</para>
</refsect1>
</refentry><!--
- Local variables:
- mode: sgml
- End:
-->