named-checkzone.docbook revision 339d2a4d4b3b2e0be9e43afec6e84fe468edfaee
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater [<!ENTITY mdash "&#8212;">]>
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater<!--
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - Copyright (C) 2004-2007, 2009-2011 Internet Systems Consortium, Inc. ("ISC")
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - Copyright (C) 2000-2002 Internet Software Consortium.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews -
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater - Permission to use, copy, modify, and/or distribute this software for any
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - purpose with or without fee is hereby granted, provided that the above
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - copyright notice and this permission notice appear in all copies.
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater -
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - PERFORMANCE OF THIS SOFTWARE.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews-->
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<!-- $Id: named-checkzone.docbook,v 1.43 2011/12/09 23:47:02 tbox Exp $ -->
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<refentry id="man.named-checkzone">
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User <refentryinfo>
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User <date>June 13, 2000</date>
50066670817cdf9e86c832066d73715232b29680Tinderbox User </refentryinfo>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refmeta>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refentrytitle><application>named-checkzone</application></refentrytitle>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <manvolnum>8</manvolnum>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refmiscinfo>BIND9</refmiscinfo>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </refmeta>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User <docinfo>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <copyright>
50066670817cdf9e86c832066d73715232b29680Tinderbox User <year>2004</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2005</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2006</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2007</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2009</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2010</year>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <year>2011</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </copyright>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <copyright>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <year>2000</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <year>2001</year>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <year>2002</year>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <holder>Internet Software Consortium.</holder>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </copyright>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </docinfo>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refnamediv>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refname><application>named-checkzone</application></refname>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refname><application>named-compilezone</application></refname>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refpurpose>zone file validity checking or converting tool</refpurpose>
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater </refnamediv>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refsynopsisdiv>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <cmdsynopsis>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <command>named-checkzone</command>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-d</option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-h</option></arg>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <arg><option>-j</option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-q</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-v</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <arg><option>-M <replaceable class="parameter">mode</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-S <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
481870b95fee976541f4fe455c0ef2dbeab3ec7aTinderbox User <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-D</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
481870b95fee976541f4fe455c0ef2dbeab3ec7aTinderbox User <arg choice="req">zonename</arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg choice="req">filename</arg>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater </cmdsynopsis>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <cmdsynopsis>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <command>named-compilezone</command>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-d</option></arg>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <arg><option>-j</option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-q</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-v</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-C <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-D</option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg choice="req"><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg choice="req">zonename</arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg choice="req">filename</arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </cmdsynopsis>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User </refsynopsisdiv>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refsect1>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <title>DESCRIPTION</title>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <para><command>named-checkzone</command>
6478b87fd23bcd3ab74c25b261021fe19a239c4fTinderbox User checks the syntax and integrity of a zone file. It performs the
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater same checks as <command>named</command> does when loading a
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User zone. This makes <command>named-checkzone</command> useful for
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User checking zone files before configuring them into a name server.
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <para>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <command>named-compilezone</command> is similar to
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <command>named-checkzone</command>, but it always dumps the
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User zone contents to a specified file in a specified format.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User Additionally, it applies stricter check levels by default,
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User since the dump output will be used as an actual zone file
481870b95fee976541f4fe455c0ef2dbeab3ec7aTinderbox User loaded by <command>named</command>.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User When manually specified otherwise, the check levels must at
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews least be as strict as those specified in the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <command>named</command> configuration file.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User </para>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User </refsect1>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refsect1>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <title>OPTIONS</title>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <variablelist>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <varlistentry>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <term>-d</term>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <listitem>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <para>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User Enable debugging.
6f1205897504b8f50b1785975482c995888dd630Tinderbox User </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </listitem>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User </varlistentry>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
6f1205897504b8f50b1785975482c995888dd630Tinderbox User <varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <term>-h</term>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <listitem>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <para>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Print the usage summary and exit.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </listitem>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <term>-q</term>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <listitem>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Quiet mode - exit code only.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </listitem>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <term>-v</term>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <listitem>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Print the version of the <command>named-checkzone</command>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User program and exit.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </listitem>
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater </varlistentry>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <term>-j</term>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <listitem>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <para>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews When loading the zone file read the journal if it exists.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </listitem>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <term>-c <replaceable class="parameter">class</replaceable></term>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <listitem>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Specify the class of the zone. If not specified, "IN" is assumed.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </listitem>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
163af735c2082a024167be111d27bd5b5ff4f462Automatic Updater <term>-i <replaceable class="parameter">mode</replaceable></term>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <listitem>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <para>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Perform post-load zone integrity checks. Possible modes are
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <command>"full"</command> (default),
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <command>"full-sibling"</command>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <command>"local"</command>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <command>"local-sibling"</command> and
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <command>"none"</command>.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User <para>
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User Mode <command>"full"</command> checks that MX records
50066670817cdf9e86c832066d73715232b29680Tinderbox User refer to A or AAAA record (both in-zone and out-of-zone
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews hostnames). Mode <command>"local"</command> only
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews checks MX records which refer to in-zone hostnames.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User <para>
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User Mode <command>"full"</command> checks that SRV records
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews refer to A or AAAA record (both in-zone and out-of-zone
50066670817cdf9e86c832066d73715232b29680Tinderbox User hostnames). Mode <command>"local"</command> only
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews checks SRV records which refer to in-zone hostnames.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </para>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <para>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Mode <command>"full"</command> checks that delegation NS
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt records refer to A or AAAA record (both in-zone and out-of-zone
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews hostnames). It also checks that glue address records
922312472e2e05ebc64993d465999c5351b83036Automatic Updater in the zone match those advertised by the child.
Mode <command>"local"</command> only checks NS records which
refer to in-zone hostnames or that some required glue exists,
that is when the nameserver is in a child zone.
</para>
<para>
Mode <command>"full-sibling"</command> and
<command>"local-sibling"</command> disable sibling glue
checks but are otherwise the same as <command>"full"</command>
and <command>"local"</command> respectively.
</para>
<para>
Mode <command>"none"</command> disables the checks.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-f <replaceable class="parameter">format</replaceable></term>
<listitem>
<para>
Specify the format of the zone file.
Possible formats are <command>"text"</command> (default)
and <command>"raw"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-F <replaceable class="parameter">format</replaceable></term>
<listitem>
<para>
Specify the format of the output file specified.
For <command>named-checkzone</command>,
this does not cause any effects unless it dumps the zone
contents.
</para>
<para>
Possible formats are <command>"text"</command> (default)
and <command>"raw"</command> or <command>"raw=N"</command>,
which store the zone in a binary format for rapid loading
by <command>named</command>. <command>"raw=N"</command>
specifies the format version of the raw zone file: if N
is 0, the raw file can be read by any version of
<command>named</command>; if N is 1, the file can be read
by release 9.9.0 or higher. The default is 1.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-k <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Perform <command>"check-names"</command> checks with the
specified failure mode.
Possible modes are <command>"fail"</command>
(default for <command>named-compilezone</command>),
<command>"warn"</command>
(default for <command>named-checkzone</command>) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-m <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Specify whether MX records should be checked to see if they
are addresses. Possible modes are <command>"fail"</command>,
<command>"warn"</command> (default) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-M <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Check if a MX record refers to a CNAME.
Possible modes are <command>"fail"</command>,
<command>"warn"</command> (default) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-n <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Specify whether NS records should be checked to see if they
are addresses.
Possible modes are <command>"fail"</command>
(default for <command>named-compilezone</command>),
<command>"warn"</command>
(default for <command>named-checkzone</command>) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-o <replaceable class="parameter">filename</replaceable></term>
<listitem>
<para>
Write zone output to <filename>filename</filename>.
If <filename>filename</filename> is <filename>-</filename> then
write to standard out.
This is mandatory for <command>named-compilezone</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-r <replaceable class="parameter">mode</replaceable></term>
<listitem>
<para>
Check for records that are treated as different by DNSSEC but
are semantically equal in plain DNS.
Possible modes are <command>"fail"</command>,
<command>"warn"</command> (default) and
<command>"ignore"</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-s <replaceable class="parameter">style</replaceable></term>
<listitem>
<para>
Specify the style of the dumped zone file.
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:
-->