0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Copyright (C) 2000-2002, 2004-2007, 2009-2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - file, You can obtain one at http://mozilla.org/MPL/2.0/.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<!-- Converted by db4-upgrade version 1.0 -->
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.named-checkzone">
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <refentryinfo>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </refentryinfo>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <refentrytitle><application>named-checkzone</application></refentrytitle>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </copyright>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <refname><application>named-checkzone</application></refname>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <refname><application>named-compilezone</application></refname>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <refpurpose>zone file validity checking or converting tool</refpurpose>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </refnamediv>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <refsynopsisdiv>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-d</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-h</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-j</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-q</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-v</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">format</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-F <replaceable class="parameter">format</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-J <replaceable class="parameter">filename</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-M <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-l <replaceable class="parameter">ttl</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-s <replaceable class="parameter">style</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-S <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-T <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-D</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews </cmdsynopsis>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-d</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-j</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-q</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-v</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-C <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">format</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-F <replaceable class="parameter">format</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-J <replaceable class="parameter">filename</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-l <replaceable class="parameter">ttl</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">serial</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-r <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-s <replaceable class="parameter">style</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-T <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-D</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="req" rep="norepeat"><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </cmdsynopsis>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </refsynopsisdiv>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <refsection><info><title>DESCRIPTION</title></info>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checks the syntax and integrity of a zone file. It performs the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein same checks as <command>named</command> does when loading a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein zone. This makes <command>named-checkzone</command> useful for
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein checking zone files before configuring them into a name server.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <command>named-compilezone</command> is similar to
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <command>named-checkzone</command>, but it always dumps the
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews zone contents to a specified file in a specified format.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Additionally, it applies stricter check levels by default,
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews since the dump output will be used as an actual zone file
8b9fc7617b8f54641708c985697848e6cc10a5bbMark Andrews When manually specified otherwise, the check levels must at
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews least be as strict as those specified in the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refsection>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <variablelist>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Enable debugging.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </varlistentry>
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews <varlistentry>
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews Print the usage summary and exit.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews </varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Quiet mode - exit code only.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </varlistentry>
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Print the version of the <command>named-checkzone</command>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein program and exit.
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson </varlistentry>
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews <varlistentry>
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt When loading a zone file, read the journal if it exists.
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt The journal file name is assumed to be the zone file name
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt appended with the string <filename>.jnl</filename>.
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt </varlistentry>
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt <varlistentry>
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt <term>-J <replaceable class="parameter">filename</replaceable></term>
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt When loading the zone file read the journal from the given
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt file, if it exists. (Implies -j.)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <term>-c <replaceable class="parameter">class</replaceable></term>
f9f11eb54be19b7deedf3978496f71d81432a5eeJeremy Reed Specify the class of the zone. If not specified, "IN" is assumed.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </varlistentry>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews <varlistentry>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews <term>-i <replaceable class="parameter">mode</replaceable></term>
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews Perform post-load zone integrity checks. Possible modes are
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Mode <command>"full"</command> checks that MX records
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews refer to A or AAAA record (both in-zone and out-of-zone
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews hostnames). Mode <command>"local"</command> only
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews checks MX records which refer to in-zone hostnames.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Mode <command>"full"</command> checks that SRV records
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews refer to A or AAAA record (both in-zone and out-of-zone
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews hostnames). Mode <command>"local"</command> only
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews checks SRV records which refer to in-zone hostnames.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Mode <command>"full"</command> checks that delegation NS
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews records refer to A or AAAA record (both in-zone and out-of-zone
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews hostnames). It also checks that glue address records
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews in the zone match those advertised by the child.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Mode <command>"local"</command> only checks NS records which
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews refer to in-zone hostnames or that some required glue exists,
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews that is when the nameserver is in a child zone.
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews <command>"local-sibling"</command> disable sibling glue
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews checks but are otherwise the same as <command>"full"</command>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Mode <command>"none"</command> disables the checks.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews </varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <term>-f <replaceable class="parameter">format</replaceable></term>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Specify the format of the zone file.
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt Possible formats are <command>"text"</command> (default),
c9611b45736af157e2993c6ef852e55e8e24ca83Evan Hunt <command>"raw"</command>, and <command>"map"</command>.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews </varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <term>-F <replaceable class="parameter">format</replaceable></term>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Specify the format of the output file specified.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews this does not cause any effects unless it dumps the zone
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt Possible formats are <command>"text"</command> (default),
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt which is the standard textual representation of the zone,
c9611b45736af157e2993c6ef852e55e8e24ca83Evan Hunt and <command>"map"</command>, <command>"raw"</command>,
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt and <command>"raw=N"</command>, which store the zone in a
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt binary format for rapid loading by <command>named</command>.
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt <command>"raw=N"</command> specifies the format version of
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt the raw zone file: if N is 0, the raw file can be read by
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt any version of <command>named</command>; if N is 1, the file
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt can be read by release 9.9.0 or higher; the default is 1.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews </varlistentry>
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews <varlistentry>
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews <term>-k <replaceable class="parameter">mode</replaceable></term>
bfedbc02796ed51e63317ca458701da115a53285Mark Andrews Perform <command>"check-names"</command> checks with the
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews specified failure mode.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews (default for <command>named-compilezone</command>),
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews (default for <command>named-checkzone</command>) and
2047977ce2dfcfe3a0fa2d638c3242841310fad3Mark Andrews </varlistentry>
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt <varlistentry>
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt <term>-l <replaceable class="parameter">ttl</replaceable></term>
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt Sets a maximum permissible TTL for the input file.
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt Any record with a TTL higher than this value will cause
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt the zone to be rejected. This is similar to using the
35f6a21f5f8114542c050bfcb484b39ce513d4bdEvan Hunt </varlistentry>
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt <varlistentry>
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt <term>-L <replaceable class="parameter">serial</replaceable></term>
c9611b45736af157e2993c6ef852e55e8e24ca83Evan Hunt When compiling a zone to "raw" or "map" format, set the
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt "source serial" value in the header to the specified serial
6844e3f010440a9f3eb200b3c2123a19e58a64dcEvan Hunt number. (This is expected to be used primarily for testing
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt </varlistentry>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews <varlistentry>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews <term>-m <replaceable class="parameter">mode</replaceable></term>
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews Specify whether MX records should be checked to see if they
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews are addresses. Possible modes are <command>"fail"</command>,
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews </varlistentry>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews <varlistentry>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews <term>-M <replaceable class="parameter">mode</replaceable></term>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews Check if a MX record refers to a CNAME.
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews </varlistentry>
4d9f3f00d93fcb8743b1105e8cf82e862be220d1Mark Andrews <varlistentry>
4d9f3f00d93fcb8743b1105e8cf82e862be220d1Mark Andrews <term>-n <replaceable class="parameter">mode</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify whether NS records should be checked to see if they
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews are addresses.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews (default for <command>named-compilezone</command>),
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews (default for <command>named-checkzone</command>) and
4d9f3f00d93fcb8743b1105e8cf82e862be220d1Mark Andrews </varlistentry>
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews <varlistentry>
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews <term>-o <replaceable class="parameter">filename</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Write zone output to <filename>filename</filename>.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews If <filename>filename</filename> is <filename>-</filename> then
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews write to standard out.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews This is mandatory for <command>named-compilezone</command>.
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews </varlistentry>
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews <varlistentry>
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews <term>-r <replaceable class="parameter">mode</replaceable></term>
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews Check for records that are treated as different by DNSSEC but
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews are semantically equal in plain DNS.
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews </varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <varlistentry>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews <term>-s <replaceable class="parameter">style</replaceable></term>
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Specify the style of the dumped zone file.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews Possible styles are <command>"full"</command> (default)
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews The full format is most suitable for processing
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews automatically by a separate script.
2dafa707cc9af9cca66d68c1d2c3af0c768c2900Mark Andrews On the other hand, the relative format is more
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews human-readable and is thus suitable for editing by hand.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews this does not cause any effects unless it dumps the zone
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews It also does not have any meaning if the output format
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews is not text.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews </varlistentry>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews <varlistentry>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews <term>-S <replaceable class="parameter">mode</replaceable></term>
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews Check if a SRV record refers to a CNAME.
dc6da18ccbb808d21f123cc6bda399b44ad11445Mark Andrews </varlistentry>
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews <varlistentry>
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews <term>-t <replaceable class="parameter">directory</replaceable></term>
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews Chroot to <filename>directory</filename> so that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein directives in the configuration file are processed as if
2637d30fbd235fe98145f4312b10cc41a13bf7dcJeremy C. Reed run by a similarly chrooted <command>named</command>.
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews </varlistentry>
26bb3b7a67b833f0a18072567de036226890ca1aMark Andrews <varlistentry>
26bb3b7a67b833f0a18072567de036226890ca1aMark Andrews <term>-T <replaceable class="parameter">mode</replaceable></term>
48b093c864d518bb35f2137a26c24568e2eab60cMark Andrews Check if Sender Policy Framework (SPF) records exist
48b093c864d518bb35f2137a26c24568e2eab60cMark Andrews and issues a warning if an SPF-formatted TXT record is
48b093c864d518bb35f2137a26c24568e2eab60cMark Andrews not also present. Possible modes are <command>"warn"</command>
26bb3b7a67b833f0a18072567de036226890ca1aMark Andrews </varlistentry>
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews <varlistentry>
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews <term>-w <replaceable class="parameter">directory</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein filenames in master file $INCLUDE directives work. This
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein is similar to the directory clause in
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews </varlistentry>
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Dump zone file in canonical format.
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews This is always enabled for <command>named-compilezone</command>.
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews </varlistentry>
508f61f8d699c46f962b682f388e54b446a7194dMark Andrews <varlistentry>
508f61f8d699c46f962b682f388e54b446a7194dMark Andrews <term>-W <replaceable class="parameter">mode</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Specify whether to check for non-terminal wildcards.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Non-terminal wildcards are almost always the result of a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein failure to understand the wildcard matching algorithm (RFC 1034).
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Possible modes are <command>"warn"</command> (default)
508f61f8d699c46f962b682f388e54b446a7194dMark Andrews </varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein The domain name of the zone being checked.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein The name of the zone file.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </varlistentry>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </variablelist>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refsection>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <refsection><info><title>RETURN VALUES</title></info>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein returns an exit status of 1 if
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein errors were detected and 0 otherwise.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refsection>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
c40265eba0c99708887d68e67901924065ba2514Brian Wellington </citerefentry>,
6043e41fcf5dc91aa8a981c966512d73bdec31c1Mark Andrews <citerefentry>
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews <refentrytitle>named-checkconf</refentrytitle><manvolnum>8</manvolnum>
6043e41fcf5dc91aa8a981c966512d73bdec31c1Mark Andrews </citerefentry>,
c40265eba0c99708887d68e67901924065ba2514Brian Wellington <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refsection>