Bv9ARM.ch03.html revision 731cc132f22dbc9e0ecd7035dce314a61076d31b
240b85022b73af58a6d971cd3d05d54037d8f682nd - Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding - Copyright (C) 2000-2003 Internet Software Consortium.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding - Permission to use, copy, modify, and distribute this software for any
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding - purpose with or without fee is hereby granted, provided that the above
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding - copyright notice and this permission notice appear in all copies.
240b85022b73af58a6d971cd3d05d54037d8f682nd - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
240b85022b73af58a6d971cd3d05d54037d8f682nd - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
240b85022b73af58a6d971cd3d05d54037d8f682nd - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
240b85022b73af58a6d971cd3d05d54037d8f682nd - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
240b85022b73af58a6d971cd3d05d54037d8f682nd - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
240b85022b73af58a6d971cd3d05d54037d8f682nd - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
240b85022b73af58a6d971cd3d05d54037d8f682nd - PERFORMANCE OF THIS SOFTWARE.
240b85022b73af58a6d971cd3d05d54037d8f682nd<!-- $Id: Bv9ARM.ch03.html,v 1.71 2008/09/25 04:45:04 tbox Exp $ -->
240b85022b73af58a6d971cd3d05d54037d8f682nd<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
240b85022b73af58a6d971cd3d05d54037d8f682nd<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
240b85022b73af58a6d971cd3d05d54037d8f682nd<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
240b85022b73af58a6d971cd3d05d54037d8f682nd<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
2d2eda71267231c2526be701fe655db125852c1ffielding<link rel="prev" href="Bv9ARM.ch02.html" title="Chapter�2.�BIND Resource Requirements">
2d2eda71267231c2526be701fe655db125852c1ffielding<link rel="next" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
2d2eda71267231c2526be701fe655db125852c1ffielding<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
2d2eda71267231c2526be701fe655db125852c1ffielding<tr><th colspan="3" align="center">Chapter�3.�Name Server Configuration</th></tr>
2d2eda71267231c2526be701fe655db125852c1ffielding<a accesskey="p" href="Bv9ARM.ch02.html">Prev</a>�</td>
2d2eda71267231c2526be701fe655db125852c1ffielding<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
2d2eda71267231c2526be701fe655db125852c1ffielding<a name="Bv9ARM.ch03"></a>Chapter�3.�Name Server Configuration</h2></div></div></div>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect1"><a href="Bv9ARM.ch03.html#sample_configuration">Sample Configurations</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567894">A Caching-only Name Server</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567910">An Authoritative-only Name Server</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568001">Load Balancing</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568355">Name Server Operations</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2568360">Tools for Use With the Name Server Daemon</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2570104">Signals</a></span></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding In this section we provide some suggested configurations along
2d2eda71267231c2526be701fe655db125852c1ffielding with guidelines for their use. We suggest reasonable values for
2d2eda71267231c2526be701fe655db125852c1ffielding certain option settings.
2d2eda71267231c2526be701fe655db125852c1ffielding<div class="titlepage"><div><div><h2 class="title" style="clear: both">
2d2eda71267231c2526be701fe655db125852c1ffielding<a name="sample_configuration"></a>Sample Configurations</h2></div></div></div>
2d2eda71267231c2526be701fe655db125852c1ffielding<a name="id2567894"></a>A Caching-only Name Server</h3></div></div></div>
2d2eda71267231c2526be701fe655db125852c1ffielding The following sample configuration is appropriate for a caching-only
1acdb106aad7f32757afa07281b80e292229c3a8sf name server for use by clients internal to a corporation. All
2d2eda71267231c2526be701fe655db125852c1ffielding from outside clients are refused using the <span><strong class="command">allow-query</strong></span>
2d2eda71267231c2526be701fe655db125852c1ffielding option. Alternatively, the same effect could be achieved using
1acdb106aad7f32757afa07281b80e292229c3a8sf firewall rules.
1acdb106aad7f32757afa07281b80e292229c3a8sf// Two corporate subnets we wish to allow queries from.
8b2f33c25de9a2e8ac689e633b4e8dfecdec31a3rjung allow-query { corpnets; };
1acdb106aad7f32757afa07281b80e292229c3a8sf// Provide a reverse mapping for the loopback address 127.0.0.1
1acdb106aad7f32757afa07281b80e292229c3a8sf type master;
1acdb106aad7f32757afa07281b80e292229c3a8sf notify no;
1acdb106aad7f32757afa07281b80e292229c3a8sf<a name="id2567910"></a>An Authoritative-only Name Server</h3></div></div></div>
1acdb106aad7f32757afa07281b80e292229c3a8sf This sample configuration is for an authoritative-only server
1acdb106aad7f32757afa07281b80e292229c3a8sf that is the master server for "<code class="filename">example.com</code>"
1acdb106aad7f32757afa07281b80e292229c3a8sf and a slave for the subdomain "<code class="filename">eng.example.com</code>".
1acdb106aad7f32757afa07281b80e292229c3a8sf allow-query-cache { none; }; // Do not allow access to cache
1acdb106aad7f32757afa07281b80e292229c3a8sf allow-query { any; }; // This is the default
1acdb106aad7f32757afa07281b80e292229c3a8sf recursion no; // Do not provide recursive service
1acdb106aad7f32757afa07281b80e292229c3a8sf// Provide a reverse mapping for the loopback address 127.0.0.1
1acdb106aad7f32757afa07281b80e292229c3a8sf type master;
1acdb106aad7f32757afa07281b80e292229c3a8sf notify no;
1acdb106aad7f32757afa07281b80e292229c3a8sf// We are the master server for example.com
1acdb106aad7f32757afa07281b80e292229c3a8sf type master;
1acdb106aad7f32757afa07281b80e292229c3a8sf // IP addresses of slave servers allowed to transfer example.com
2d2eda71267231c2526be701fe655db125852c1ffielding allow-transfer {
1acdb106aad7f32757afa07281b80e292229c3a8sf 192.168.4.14;
2d2eda71267231c2526be701fe655db125852c1ffielding 192.168.5.53;
// We are a slave server for eng.example.com
zone "eng.example.com" {
file "eng.example.com.bk";
// IP address of eng.example.com master server
The <span><strong class="command">dig</strong></span>, <span><strong class="command">host</strong></span>, and
<dt><span class="term"><a name="dig"></a><span><strong class="command">dig</strong></span></span></dt>
<div class="cmdsynopsis"><p><code class="command">dig</code> [@<em class="replaceable"><code>server</code></em>] <em class="replaceable"><code>domain</code></em> [<em class="replaceable"><code>query-type</code></em>] [<em class="replaceable"><code>query-class</code></em>] [+<em class="replaceable"><code>query-option</code></em>] [-<em class="replaceable"><code>dig-option</code></em>] [%<em class="replaceable"><code>comment</code></em>]</p></div>
<div class="cmdsynopsis"><p><code class="command">host</code> [-aCdlnrsTwv] [-c <em class="replaceable"><code>class</code></em>] [-N <em class="replaceable"><code>ndots</code></em>] [-t <em class="replaceable"><code>type</code></em>] [-W <em class="replaceable"><code>timeout</code></em>] [-R <em class="replaceable"><code>retries</code></em>] [-m <em class="replaceable"><code>flag</code></em>] [-4] [-6] <em class="replaceable"><code>hostname</code></em> [<em class="replaceable"><code>server</code></em>]</p></div>
<div class="cmdsynopsis"><p><code class="command">nslookup</code> [-option...] [[<em class="replaceable"><code>host-to-find</code></em>] | [- [server]]]</p></div>
<a name="named-checkconf"></a><span class="term"><span><strong class="command">named-checkconf</strong></span></span>
<div class="cmdsynopsis"><p><code class="command">named-checkconf</code> [-jvz] [-t <em class="replaceable"><code>directory</code></em>] [<em class="replaceable"><code>filename</code></em>]</p></div>
<a name="named-checkzone"></a><span class="term"><span><strong class="command">named-checkzone</strong></span></span>
<div class="cmdsynopsis"><p><code class="command">named-checkzone</code> [-djqvD] [-c <em class="replaceable"><code>class</code></em>] [-o <em class="replaceable"><code>output</code></em>] [-t <em class="replaceable"><code>directory</code></em>] [-w <em class="replaceable"><code>directory</code></em>] [-k <em class="replaceable"><code>(ignore|warn|fail)</code></em>] [-n <em class="replaceable"><code>(ignore|warn|fail)</code></em>] [-W <em class="replaceable"><code>(ignore|warn)</code></em>] <em class="replaceable"><code>zone</code></em> [<em class="replaceable"><code>filename</code></em>]</p></div>
<a name="named-compilezone"></a><span class="term"><span><strong class="command">named-compilezone</strong></span></span>
Since <acronym class="acronym">BIND</acronym> 9.2, <span><strong class="command">rndc</strong></span>
<div class="cmdsynopsis"><p><code class="command">rndc</code> [-c <em class="replaceable"><code>config</code></em>] [-s <em class="replaceable"><code>server</code></em>] [-p <em class="replaceable"><code>port</code></em>] [-y <em class="replaceable"><code>key</code></em>] <em class="replaceable"><code>command</code></em> [<em class="replaceable"><code>command</code></em>...]</p></div>
<dt><span class="term"><strong class="userinput"><code>reload <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>refresh <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>retransfer <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</span>]</code></strong></span></dt>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>notify <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
[<span class="optional"><em class="replaceable"><code>view ...</code></em></span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>stop [<span class="optional">-p</span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>halt [<span class="optional">-p</span>]</code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>trace <em class="replaceable"><code>level</code></em></code></strong></span></dt>
<dt><span class="term"><strong class="userinput"><code>flushname</code></strong> <em class="replaceable"><code>name</code></em></span></dt>
Note that the number of zones includes the internal <span><strong class="command">bind/CH</strong></span> zone
<a href="Bv9ARM.ch06.html#controls_statement_definition_and_usage" title="controls Statement Definition and
Usage">the section called “<span><strong class="command">controls</strong></span> Statement Definition and
<span><strong class="command">key</strong></span>, <span><strong class="command">server</strong></span> and
<span><strong class="command">default-server</strong></span>, <span><strong class="command">default-key</strong></span>,
the name of a key as its argument, as defined by a <span><strong class="command">key</strong></span> statement.
<span><strong class="command">algorithm</strong></span> and <span><strong class="command">secret</strong></span>.
has two clauses: <span><strong class="command">key</strong></span> and <span><strong class="command">port</strong></span>.