named-checkzone.docbook revision d60212e03fbef1d3dd7f7eb05c0545cc373cb9fc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes [<!ENTITY mdash "&#8212;">]>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!--
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - Copyright (C) 2000-2002 Internet Software Consortium.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - Permission to use, copy, modify, and/or distribute this software for any
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - purpose with or without fee is hereby granted, provided that the above
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - copyright notice and this permission notice appear in all copies.
0662ed52e814f8f08ef0e09956413a792584eddffuankg -
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes - PERFORMANCE OF THIS SOFTWARE.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes-->
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg<!-- $Id: named-checkzone.docbook,v 1.36 2009/01/20 23:47:56 tbox Exp $ -->
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg<refentry id="man.named-checkzone">
16b55a35cff91315d261d1baa776138af465c4e4fuankg <refentryinfo>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <date>June 13, 2000</date>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </refentryinfo>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refmeta>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refentrytitle><application>named-checkzone</application></refentrytitle>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <manvolnum>8</manvolnum>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refmiscinfo>BIND9</refmiscinfo>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </refmeta>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <docinfo>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <copyright>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2004</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2005</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2006</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2007</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2009</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </copyright>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <copyright>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2000</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2001</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <year>2002</year>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <holder>Internet Software Consortium.</holder>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </copyright>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </docinfo>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refnamediv>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refname><application>named-checkzone</application></refname>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refname><application>named-compilezone</application></refname>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refpurpose>zone file validity checking or converting tool</refpurpose>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </refnamediv>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refsynopsisdiv>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <cmdsynopsis>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>named-checkzone</command>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <arg><option>-d</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-h</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-j</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-q</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-v</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-M <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-S <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-D</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg choice="req">zonename</arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg choice="req">filename</arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </cmdsynopsis>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <cmdsynopsis>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>named-compilezone</command>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-d</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-j</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-q</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-v</option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-C <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg><option>-D</option></arg>
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg choice="req">zonename</arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <arg choice="req">filename</arg>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </cmdsynopsis>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </refsynopsisdiv>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refsect1>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <title>DESCRIPTION</title>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para><command>named-checkzone</command>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg checks the syntax and integrity of a zone file. It performs the
0662ed52e814f8f08ef0e09956413a792584eddffuankg same checks as <command>named</command> does when loading a
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes zone. This makes <command>named-checkzone</command> useful for
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg checking zone files before configuring them into a name server.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>named-compilezone</command> is similar to
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>named-checkzone</command>, but it always dumps the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes zone contents to a specified file in a specified format.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Additionally, it applies stricter check levels by default,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes since the dump output will be used as an actual zone file
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes loaded by <command>named</command>.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes When manually specified otherwise, the check levels must at
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes least be as strict as those specified in the
0662ed52e814f8f08ef0e09956413a792584eddffuankg <command>named</command> configuration file.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </refsect1>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <refsect1>
0662ed52e814f8f08ef0e09956413a792584eddffuankg <title>OPTIONS</title>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <variablelist>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-d</term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Enable debugging.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
0662ed52e814f8f08ef0e09956413a792584eddffuankg </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <term>-h</term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Print the usage summary and exit.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-q</term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Quiet mode - exit code only.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-v</term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Print the version of the <command>named-checkzone</command>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes program and exit.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-j</term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes When loading the zone file read the journal if it exists.
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-c <replaceable class="parameter">class</replaceable></term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Specify the class of the zone. If not specified, "IN" is assumed.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-i <replaceable class="parameter">mode</replaceable></term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Perform post-load zone integrity checks. Possible modes are
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"full"</command> (default),
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"full-sibling"</command>,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"local"</command>,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"local-sibling"</command> and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"none"</command>.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Mode <command>"full"</command> checks that MX records
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes refer to A or AAAA record (both in-zone and out-of-zone
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes hostnames). Mode <command>"local"</command> only
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes checks MX records which refer to in-zone hostnames.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
8ffac2c334103c0336602aaede650cb578611151fuankg Mode <command>"full"</command> checks that SRV records
8ffac2c334103c0336602aaede650cb578611151fuankg refer to A or AAAA record (both in-zone and out-of-zone
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes hostnames). Mode <command>"local"</command> only
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes checks SRV records which refer to in-zone hostnames.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg </para>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Mode <command>"full"</command> checks that delegation NS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes records refer to A or AAAA record (both in-zone and out-of-zone
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes hostnames). It also checks that glue address records
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes in the zone match those advertised by the child.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Mode <command>"local"</command> only checks NS records which
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg refer to in-zone hostnames or that some required glue exists,
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg that is when the nameserver is in a child zone.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Mode <command>"full-sibling"</command> and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <command>"local-sibling"</command> disable sibling glue
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg checks but are otherwise the same as <command>"full"</command>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes and <command>"local"</command> respectively.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Mode <command>"none"</command> disables the checks.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-f <replaceable class="parameter">format</replaceable></term>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg <listitem>
0662ed52e814f8f08ef0e09956413a792584eddffuankg <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Specify the format of the zone file.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Possible formats are <command>"text"</command> (default)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes and <command>"raw"</command>.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes </varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <varlistentry>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <term>-F <replaceable class="parameter">format</replaceable></term>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <listitem>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes <para>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes Specify the format of the output file specified.
0662ed52e814f8f08ef0e09956413a792584eddffuankg Possible formats are <command>"text"</command> (default)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes and <command>"raw"</command>.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg For <command>named-checkzone</command>,
this does not cause any effects unless it dumps the zone
contents.
</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>-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:
-->