named-checkzone.docbook revision e9359db5e958bf05f9b9c5fe3c27d533f0f05550
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2001 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Permission to use, copy, modify, and distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - copyright notice and this permission notice appear in all copies.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<!-- $Id: named-checkzone.docbook,v 1.6 2002/07/11 04:49:27 marka Exp $ -->
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <refentryinfo>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </refentryinfo>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <refentrytitle><application>named-checkzone</application></refentrytitle>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <refname><application>named-checkzone</application></refname>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <refpurpose>zone file validity checking tool</refpurpose>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </refnamediv>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <refsynopsisdiv>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <cmdsynopsis>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <arg><option>-w <replaceable class="parameter">directory</replaceable></option></arg>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </cmdsynopsis>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </refsynopsisdiv>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>named-checkzone</command> checks the syntax and integrity of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein a zone file. It performs the same checks as <command>named</command>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein does when loading a zone. This makes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>named-checkzone</command> useful for checking zone
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User files before configuring them into a name server.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <variablelist>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Enable debugging.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </varlistentry>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Quiet mode - exit code only.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </varlistentry>
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Print the version of the <command>named-checkzone</command>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User program and exit.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein When loading the zone file read the journal if it exists.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <term>-c <replaceable class="parameter">class</replaceable></term>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Specify the class of the zone. If not specified "IN" is assumed.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <term>-t <replaceable class="parameter">directory</replaceable></term>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein chroot to <filename>directory</filename> so that include
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User directives in the configuration file are processed as if
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User run by a similarly chrooted named.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <term>-w <replaceable class="parameter">directory</replaceable></term>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User chdir to <filename>directory</filename> so that relative
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User filenames in master file $INCLUDE directives work. This
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User is similar to the directory clause in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The domain name of the zone being checked.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The name of the zone file.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </variablelist>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>named-checkzone</command> returns an exit status of 1 if
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User errors were detected and 0 otherwise.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <citerefentry>