Bv9ARM.ch03.html revision 5a4557e8de2951a2796676b5ec4b6a90caa5be14
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - Copyright (C) 2000-2003 Internet Software Consortium.
819e90d415ed17d59af3a247b2ad9d6feb0c21b5Luke Smith - Permission to use, copy, modify, and distribute this software for any
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - purpose with or without fee is hereby granted, provided that the above
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - copyright notice and this permission notice appear in all copies.
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly - PERFORMANCE OF THIS SOFTWARE.
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<!-- $Id: Bv9ARM.ch03.html,v 1.48 2005/07/19 06:12:17 marka Exp $ -->
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<title>Chapter�3.�Name Server Configuration</title>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<link rel="prev" href="Bv9ARM.ch02.html" title="Chapter�2.�BIND Resource Requirements">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<link rel="next" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<table width="100%" summary="Navigation header">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<tr><th colspan="3" align="center">Chapter�3.�Name Server Configuration</th></tr>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<a accesskey="p" href="Bv9ARM.ch02.html">Prev</a>�</td>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<div class="titlepage"><div><div><h2 class="title">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<a name="Bv9ARM.ch03"></a>Chapter�3.�Name Server Configuration</h2></div></div></div>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect1"><a href="Bv9ARM.ch03.html#sample_configuration">Sample Configurations</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2537924">A Caching-only Name Server</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2537940">An Authoritative-only Name Server</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2538030">Load Balancing</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2538454">Name Server Operations</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2538459">Tools for Use With the Name Server Daemon</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2540208">Signals</a></span></dt>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly In this section we provide some suggested configurations along
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly with guidelines for their use. We suggest reasonable values for
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly certain option settings.
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<div class="titlepage"><div><div><h2 class="title" style="clear: both">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<a name="sample_configuration"></a>Sample Configurations</h2></div></div></div>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<div class="titlepage"><div><div><h3 class="title">
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly<a name="id2537924"></a>A Caching-only Name Server</h3></div></div></div>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly The following sample configuration is appropriate for a caching-only
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly name server for use by clients internal to a corporation. All
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly from outside clients are refused using the <span><strong class="command">allow-query</strong></span>
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly option. Alternatively, the same effect could be achieved using
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly firewall rules.
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnelly// Two corporate subnets we wish to allow queries from.
8f9d94fb7812612dff92ce14a37dbcad4ff02c1cJenny Donnellyacl corpnets { 192.168.4.0/24; 192.168.7.0/24; };
zone "0.0.127.in-addr.arpa" {
file "localhost.rev";
zone "0.0.127.in-addr.arpa" {
file "localhost.rev";
// We are the master server for example.com
zone "example.com" {
file "example.com.db";
// IP addresses of slave servers allowed to transfer example.com
// 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> [-aCdlrTwv] [-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>] <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>
<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 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>.
<span class="term"><span><strong class="command">clients-per-query</strong></span>, </span><span class="term"><span><strong class="command">max-clients-per-query</strong></span></span>