named-checkzone.html revision 7208386cd37a2092c70eddf80cf29519b16c4c80
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - Copyright (C) 2000-2002 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley - copyright notice and this permission notice appear in all copies.
1e733ffc1103667dd6cf0eae01f5dfd0c84c5108Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley - PERFORMANCE OF THIS SOFTWARE.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley<!-- $Id: named-checkzone.html,v 1.25 2005/06/20 03:30:27 marka Exp $ -->
41a6b3031e3d0c566aad3808a69136eab15a2622Francis Dupont<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<a name="id2456836"></a><div class="titlepage"></div>
68c2ccc953059f389cefc0f8a5ce0f83be7458c9Danny Mayer<p><span class="application">named-checkzone</span>, <span class="application">named-compilezone</span> — zone file validity checking or converting tool</p>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="cmdsynopsis"><p><code class="command">named-checkzone</code> [<code class="option">-d</code>] [<code class="option">-j</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>format</code></em></code>] [<code class="option">-F <em class="replaceable"><code>format</code></em></code>] [<code class="option">-i <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-k <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-m <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-n <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-o <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-s <em class="replaceable"><code>style</code></em></code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-w <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-D</code>] [<code class="option">-W <em class="replaceable"><code>mode</code></em></code>] {zonename} {filename}</p></div>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<div class="cmdsynopsis"><p><code class="command">named-compilezone</code> [<code class="option">-d</code>] [<code class="option">-j</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>format</code></em></code>] [<code class="option">-F <em class="replaceable"><code>format</code></em></code>] [<code class="option">-i <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-k <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-m <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-n <em class="replaceable"><code>mode</code></em></code>] [<code class="option">-o <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-s <em class="replaceable"><code>style</code></em></code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-w <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-D</code>] [<code class="option">-W <em class="replaceable"><code>mode</code></em></code>] {zonename} {filename}</p></div>
627f3e0805e2ee948e1f8c42f2251084aac388e9Automatic Updater<a name="id2514459"></a><h2>DESCRIPTION</h2>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<p><span><strong class="command">named-checkzone</strong></span>
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer checks the syntax and integrity of a zone file. It performs the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer same checks as <span><strong class="command">named</strong></span> does when loading a
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer zone. This makes <span><strong class="command">named-checkzone</strong></span> useful for
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer checking zone files before configuring them into a name server.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named-compilezone</strong></span> is similar to
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named-checkzone</strong></span>, but it always dumps the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer zone contents to a specified file in a specified format.
68c2ccc953059f389cefc0f8a5ce0f83be7458c9Danny Mayer Additionally, it applies stricter check levels by default,
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer since the dump output will be used as an actual zone file
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer loaded by <span><strong class="command">named</strong></span>.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer When manaully specified otherwise, the check levels must at
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer least be as strict as those specified in the
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer <span><strong class="command">named</strong></span> configuration file.
b07a162e293d41eb86dcaa6c48611313f6412d1dBob Halley Enable debugging.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Quiet mode - exit code only.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Print the version of the <span><strong class="command">named-checkzone</strong></span>
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence program and exit.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence When loading the zone file read the journal if it exists.
bcf58042559f8329a99431cd9447ebd13dabf29dDanny Mayer<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
8b9c4592ed718c4187971f1104381faf538bf4f7Evan Hunt Specify the class of the zone. If not specified "IN" is assumed.
8b9c4592ed718c4187971f1104381faf538bf4f7Evan Hunt<dt><span class="term">-i <em class="replaceable"><code>mode</code></em></span></dt>
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews Perform post load zone integrity checks. Possible modes are
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews <span><strong class="command">"full"</strong></span> (default),
9547d3e03bb082d73aeabb497b60632ebfdc78a6Mark Andrews <span><strong class="command">"local"</strong></span> and
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews <span><strong class="command">"none"</strong></span>.
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews Mode <span><strong class="command">"full"</strong></span> checks that MX records
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews refer to A or AAAA record (both in-zone and out-of-zone
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews hostnames). Mode <span><strong class="command">"local"</strong></span> only
ed6ca94ad75353d5344e2a456e7a8beb480a351fMark Andrews checks MX records which refer to in-zone hostnames.
027212247d59c05452abb7a8b253efe52d14459eDavid Lawrence Mode <span><strong class="command">"full"</strong></span> checks that SRV records
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley refer to A or AAAA record (both in-zone and out-of-zone
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley hostnames). Mode <span><strong class="command">"local"</strong></span> only