Bv9ARM.ch03.html revision 5f0c46ca5f68c2148c735aa52d7541baac249c34
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster - Copyright (C) 2000-2015 Internet Systems Consortium, Inc. ("ISC")
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster - This Source Code Form is subject to the terms of the Mozilla Public
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster - License, v. 2.0. If a copy of the MPL was not distributed with this
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster - file, You can obtain one at http://mozilla.org/MPL/2.0/.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<title>Chapter�3.�Name Server Configuration</title>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<link rel="prev" href="Bv9ARM.ch02.html" title="Chapter�2.�BIND Resource Requirements">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<link rel="next" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<table width="100%" summary="Navigation header">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<tr><th colspan="3" align="center">Chapter�3.�Name Server Configuration</th></tr>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<a accesskey="p" href="Bv9ARM.ch02.html">Prev</a>�</td>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<div class="titlepage"><div><div><h1 class="title">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<a name="Bv9ARM.ch03"></a>Chapter�3.�Name Server Configuration</h1></div></div></div>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#sample_configuration">Sample Configurations</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#cache_only_sample">A Caching-only Name Server</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#auth_only_sample">An Authoritative-only Name Server</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#load_balancing">Load Balancing</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#ns_operations">Name Server Operations</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#tools">Tools for Use With the Name Server Daemon</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<dt><span class="section"><a href="Bv9ARM.ch03.html#signals">Signals</a></span></dt>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster In this chapter we provide some suggested configurations along
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster with guidelines for their use. We suggest reasonable values for
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster certain option settings.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<div class="titlepage"><div><div><h2 class="title" style="clear: both">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<a name="sample_configuration"></a>Sample Configurations</h2></div></div></div>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<div class="titlepage"><div><div><h3 class="title">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster<a name="cache_only_sample"></a>A Caching-only Name Server</h3></div></div></div>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster The following sample configuration is appropriate for a caching-only
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster name server for use by clients internal to a corporation. All
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster from outside clients are refused using the <span class="command"><strong>allow-query</strong></span>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster option. Alternatively, the same effect could be achieved using
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";
// 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 class="command"><strong>dig</strong></span>, <span class="command"><strong>host</strong></span>, and
<dt><span class="term"><a name="dig"></a><span class="command"><strong>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 class="command"><strong>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 class="command"><strong>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 class="command"><strong>named-compilezone</strong></span></span>
Since <acronym class="acronym">BIND</acronym> 9.2, <span class="command"><strong>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>
<p>See <a class="xref" href="man.rndc.html" title="rndc"><span class="refentrytitle"><span class="application">rndc</span></span>(8)</a> for details of
<a class="xref" href="Bv9ARM.ch06.html#controls_statement_definition_and_usage" title="controls Statement Definition and Usage">the section called “<span class="command"><strong>controls</strong></span> Statement Definition and
<span class="command"><strong>key</strong></span>, <span class="command"><strong>server</strong></span> and
<span class="command"><strong>default-server</strong></span>, <span class="command"><strong>default-key</strong></span>,
the name of a key as its argument, as defined by a <span class="command"><strong>key</strong></span> statement.
<span class="command"><strong>key</strong></span> statement in <code class="filename">named.conf</code>.
<span class="command"><strong>algorithm</strong></span> and <span class="command"><strong>secret</strong></span>.
has two clauses: <span class="command"><strong>key</strong></span> and <span class="command"><strong>port</strong></span>.