Bv9ARM.ch03.html revision ac93437301f55ed69bf85883a497a75598c628f9
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
6736c640e65e06990ef33af71ee81fac4df4ff5fjim - Copyright (C) 2000-2003 Internet Software Consortium.
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf - Permission to use, copy, modify, and distribute this software for any
4bb0a88a01fb7b494bb02a8b881b5eab0308bda6sf - purpose with or without fee is hereby granted, provided that the above
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf - copyright notice and this permission notice appear in all copies.
295ba2e25e562ee52c7bf96808cf9d486ebfb325sf - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
295ba2e25e562ee52c7bf96808cf9d486ebfb325sf - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3104923cb51cf5826c97368d1f0d5202c352cd4fsf - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
3104923cb51cf5826c97368d1f0d5202c352cd4fsf - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7b395e4e878c28a4784919cfd2e704ddd14a3390jorton - PERFORMANCE OF THIS SOFTWARE.
e81785da447b469da66f218b3f0244aab507958djorton<!-- $Id: Bv9ARM.ch03.html,v 1.75 2009/05/15 01:15:46 tbox Exp $ -->
e81785da447b469da66f218b3f0244aab507958djorton<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
424b4e796cde9df955948c354cb4df6080a92d4esf<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
424b4e796cde9df955948c354cb4df6080a92d4esf<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
5cc1d035c9293c4d64b2344b5eac35edd1bd4537rpluem<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
5cc1d035c9293c4d64b2344b5eac35edd1bd4537rpluem<link rel="prev" href="Bv9ARM.ch02.html" title="Chapter�2.�BIND Resource Requirements">
5cc1d035c9293c4d64b2344b5eac35edd1bd4537rpluem<link rel="next" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
00f53c09b10014571b639d5e9df993fb188220a6sf<tr><th colspan="3" align="center">Chapter�3.�Name Server Configuration</th></tr>
459eaf0826f995b73a0dc066f59ea10d2824e72dsf<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
53e9b27aba029b18be814df40bcf6f0428771d1efuankg<a name="Bv9ARM.ch03"></a>Chapter�3.�Name Server Configuration</h2></div></div></div>
fe2e0971201136f2dbc6b000ad5c006a1a6ff672sf<dt><span class="sect1"><a href="Bv9ARM.ch03.html#sample_configuration">Sample Configurations</a></span></dt>
347074f011eae59e518ddf8d8474d35e029a2056sf<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567897">A Caching-only Name Server</a></span></dt>
21da42a6b8f551ef603bd06356d3bf71d6d0c21dsf<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567913">An Authoritative-only Name Server</a></span></dt>
21da42a6b8f551ef603bd06356d3bf71d6d0c21dsf<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568004">Load Balancing</a></span></dt>
2876a591f17b0c6ed0cf28da929643965e67c953sf<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568358">Name Server Operations</a></span></dt>
2876a591f17b0c6ed0cf28da929643965e67c953sf<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2568363">Tools for Use With the Name Server Daemon</a></span></dt>
2876a591f17b0c6ed0cf28da929643965e67c953sf<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2570071">Signals</a></span></dt>
5a1f28ac93914b4bae892c69ac4b3e670bc10da8nd In this chapter we provide some suggested configurations along
5a1f28ac93914b4bae892c69ac4b3e670bc10da8nd with guidelines for their use. We suggest reasonable values for
0361488d59792d052a9f8024c0e5a1ef909252e6rpluem certain option settings.
6135cc8178d75a52828ad225b1d568cd1e97799erpluem<div class="titlepage"><div><div><h2 class="title" style="clear: both">
6135cc8178d75a52828ad225b1d568cd1e97799erpluem<a name="sample_configuration"></a>Sample Configurations</h2></div></div></div>
44761f3e3072cf78a4997a88bb9a515ca101a1f4covener<a name="id2567897"></a>A Caching-only Name Server</h3></div></div></div>
2ba1586475aa4ec972ca7c19b06d53bf76f0ee7efuankg The following sample configuration is appropriate for a caching-only
2ba1586475aa4ec972ca7c19b06d53bf76f0ee7efuankg name server for use by clients internal to a corporation. All
c7502880be24058c7fc03771fda61f95bc238339sf from outside clients are refused using the <span><strong class="command">allow-query</strong></span>
c7502880be24058c7fc03771fda61f95bc238339sf option. Alternatively, the same effect could be achieved using
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf firewall rules.
6bb524f1895f30265a1431afc460977d391cb36bsf// Two corporate subnets we wish to allow queries from.
8233250a7f6c06225752db92bf32117bd9648c1dsf // Working directory
b40bfdb714672f972887f9f1f1e154e00125bb68covener allow-query { corpnets; };
b40bfdb714672f972887f9f1f1e154e00125bb68covener// Provide a reverse mapping for the loopback
b40bfdb714672f972887f9f1f1e154e00125bb68covener// address 127.0.0.1
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrin type master;
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung<a name="id2567913"></a>An Authoritative-only Name Server</h3></div></div></div>
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung This sample configuration is for an authoritative-only server
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung that is the master server for "<code class="filename">example.com</code>"
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung and a slave for the subdomain "<code class="filename">eng.example.com</code>".
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung // Working directory
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick // Do not allow access to cache
0827cb14e550f6f65018431c22c2c913631c8f25kbrand allow-query-cache { none; };
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick // This is the default
ae600ca541efc686b34f8b1f21bd3d0741d37674covener allow-query { any; };
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick // Do not provide recursive service
cfa64348224b66dd1c9979b809406c4d15b1c137fielding recursion no;
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim// Provide a reverse mapping for the loopback
cfa64348224b66dd1c9979b809406c4d15b1c137fielding// address 127.0.0.1
cfa64348224b66dd1c9979b809406c4d15b1c137fielding type master;
// We are the master server for example.com
zone "example.com" {
file "example.com.db";
// 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> [-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>
If <code class="option">-p</code> is specified <span><strong class="command">named</strong></span>'s process id is returned.
This allows an external process to determine when <span><strong class="command">named</strong></span>
<dt><span class="term"><strong class="userinput"><code>halt [<span class="optional">-p</span>]</code></strong></span></dt>
If <code class="option">-p</code> is specified <span><strong class="command">named</strong></span>'s process id is returned.
This allows an external process to determine when <span><strong class="command">named</strong></span>
<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">key</strong></span> statement in <code class="filename">named.conf</code>.
<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>.