named-checkzone.docbook revision b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen [<!ENTITY mdash "—">]>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen - Copyright (C) 2000-2002 Internet Software Consortium.
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen - Permission to use, copy, modify, and distribute this software for any
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen - purpose with or without fee is hereby granted, provided that the above
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen - copyright notice and this permission notice appear in all copies.
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen - PERFORMANCE OF THIS SOFTWARE.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen<!-- $Id: named-checkzone.docbook,v 1.22 2005/07/19 04:55:19 marka Exp $ -->
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <refentryinfo>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </refentryinfo>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <refentrytitle><application>named-checkzone</application></refentrytitle>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <holder>Internet Software Consortium.</holder>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <refname><application>named-checkzone</application></refname>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <refname><application>named-compilezone</application></refname>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <refpurpose>zone file validity checking or converting tool</refpurpose>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen </refnamediv>
b66d803de86bfb411165b3465b0d9ef64ecfe2a1Timo Sirainen <refsynopsisdiv>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <cmdsynopsis>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
6a262c9bd8f57cf1e57112e0522dbdab28ae8c29Timo Sirainen <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
6a262c9bd8f57cf1e57112e0522dbdab28ae8c29Timo Sirainen <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
bf7dc750b95039981c0e9d728f313d50cf38a156Martti Rannanjärvi <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
12224fcf2de6724c89f63c0f9ee857f28a270df5Timo Sirainen <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </cmdsynopsis>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <cmdsynopsis>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-f <replaceable class="parameter">format</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-F <replaceable class="parameter">format</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-i <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-k <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-m <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-n <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-o <replaceable class="parameter">filename</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-s <replaceable class="parameter">style</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <arg><option>-W <replaceable class="parameter">mode</replaceable></option></arg>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </cmdsynopsis>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </refsynopsisdiv>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen checks the syntax and integrity of a zone file. It performs the
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen same checks as <command>named</command> does when loading a
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen zone. This makes <command>named-checkzone</command> useful for
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen checking zone files before configuring them into a name server.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <command>named-compilezone</command> is similar to
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <command>named-checkzone</command>, but it always dumps the
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen zone contents to a specified file in a specified format.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Additionally, it applies stricter check levels by default,
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen since the dump output will be used as an actual zone file
f77da594de6318312a7f31589c9e4c38e2b74c73Timo Sirainen When manaully specified otherwise, the check levels must at
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen least be as strict as those specified in the
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <variablelist>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Enable debugging.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Quiet mode - exit code only.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Print the version of the <command>named-checkzone</command>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen program and exit.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
f77da594de6318312a7f31589c9e4c38e2b74c73Timo Sirainen When loading the zone file read the journal if it exists.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <term>-c <replaceable class="parameter">class</replaceable></term>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Specify the class of the zone. If not specified "IN" is assumed.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <term>-i <replaceable class="parameter">mode</replaceable></term>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Perform post load zone integrity checks. Possible modes are
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Mode <command>"full"</command> checks that MX records
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen refer to A or AAAA record (both in-zone and out-of-zone
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen hostnames). Mode <command>"local"</command> only
f77da594de6318312a7f31589c9e4c38e2b74c73Timo Sirainen checks MX records which refer to in-zone hostnames.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Mode <command>"full"</command> checks that SRV records
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen refer to A or AAAA record (both in-zone and out-of-zone
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen hostnames). Mode <command>"local"</command> only
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen checks SRV records which refer to in-zone hostnames.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Mode <command>"full"</command> checks that delegation NS
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen records refer to A or AAAA record (both in-zone and out-of-zone
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen hostnames). It also checks that glue addresses records
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen in the zone match those advertised by the child.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Mode <command>"local"</command> only checks NS records which
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen refer to in-zone hostnames or that some required glue exists,
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen that is when the nameserver is in a child zone.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Mode <command>"none"</command> disables the checks.
1db62753d9e3b5d71018889c8ef0a3722a307455Timo Sirainen </varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <varlistentry>
b3126bef7460052415eea07b300d02c8eb07c1d7Timo Sirainen <term>-f <replaceable class="parameter">format</replaceable></term>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Specify the format of the zone file.
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen Possible formats are <command>"text"</command> (default)
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen </varlistentry>
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen <varlistentry>
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen <term>-F <replaceable class="parameter">format</replaceable></term>
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen Specify the format of the output file specified.
4eecd3e2aadb20768a60f701e329b4345d04430cTimo Sirainen Possible formats are <command>"text"</command> (default)
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen this does not cause any effects unless it dumps the zone
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen </varlistentry>
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen <varlistentry>
5fbccc935e3f7b916aa7c6e302a212821072e83aTimo Sirainen <term>-k <replaceable class="parameter">mode</replaceable></term>
50d16f6fefefb19e41a01400ac11a2adb4d8c231Timo Sirainen Perform <command>"check-name"</command> checks with the
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen specified failure mode.
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen (default for <command>named-compilezone</command>),
1db62753d9e3b5d71018889c8ef0a3722a307455Timo Sirainen (default for <command>named-checkzone</command>) and
cf63dc8723b971cc80638fccbf494d961cbafc7fTimo Sirainen </varlistentry>
cf63dc8723b971cc80638fccbf494d961cbafc7fTimo Sirainen <varlistentry>
b932ee7fbbec6e79b777dcc7ba613b9e99f8337bTimo Sirainen <term>-m <replaceable class="parameter">mode</replaceable></term>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen Specify whether MX records should be checked to see if they
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen are addresses. Possible modes are <command>"fail"</command>,
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen </varlistentry>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <varlistentry>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <term>-n <replaceable class="parameter">mode</replaceable></term>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen Specify whether NS records should be checked to see if they
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen are addresses.
23878bd03d1de531e3261a25598beec621351910Timo Sirainen (default for <command>named-compilezone</command>),
23878bd03d1de531e3261a25598beec621351910Timo Sirainen (default for <command>named-checkzone</command>) and
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen </varlistentry>
1a3f9d72e15fb931edf58f104fb7ff12d238f051Timo Sirainen <varlistentry>
cf63dc8723b971cc80638fccbf494d961cbafc7fTimo Sirainen <term>-o <replaceable class="parameter">filename</replaceable></term>
977f08d645b1779527c0938bbb848b61064839c3Aki Tuomi Write zone output to <filename>filename</filename>.
977f08d645b1779527c0938bbb848b61064839c3Aki Tuomi This is mandatory for <command>named-compilezone</command>.
977f08d645b1779527c0938bbb848b61064839c3Aki Tuomi </varlistentry>
977f08d645b1779527c0938bbb848b61064839c3Aki Tuomi <varlistentry>
977f08d645b1779527c0938bbb848b61064839c3Aki Tuomi <term>-s <replaceable class="parameter">style</replaceable></term>