Bv9ARM.ch03.html revision 9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdff
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<!--
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - Copyright (C) 2000-2003 Internet Software Consortium.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift -
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - Permission to use, copy, modify, and distribute this software for any
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - purpose with or without fee is hereby granted, provided that the above
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - copyright notice and this permission notice appear in all copies.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift -
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - PERFORMANCE OF THIS SOFTWARE.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac-->
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac<!-- $Id: Bv9ARM.ch03.html,v 1.74 2009/02/26 01:12:16 tbox Exp $ -->
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac<html>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<head>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<title>Chapter�3.�Name Server Configuration</title>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
a3d3ab94806056d2355afea6fe8daac41059b9fbludovicp<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<link rel="prev" href="Bv9ARM.ch02.html" title="Chapter�2.�BIND Resource Requirements">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<link rel="next" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</head>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="navheader">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<table width="100%" summary="Navigation header">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr><th colspan="3" align="center">Chapter�3.�Name Server Configuration</th></tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td width="20%" align="left">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a accesskey="p" href="Bv9ARM.ch02.html">Prev</a>�</td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<th width="60%" align="center">�</th>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</table>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<hr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="chapter" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h2 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="Bv9ARM.ch03"></a>Chapter�3.�Name Server Configuration</h2></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="toc">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p><b>Table of Contents</b></p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect1"><a href="Bv9ARM.ch03.html#sample_configuration">Sample Configurations</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd><dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567897">A Caching-only Name Server</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2567913">An Authoritative-only Name Server</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dl></dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568004">Load Balancing</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect1"><a href="Bv9ARM.ch03.html#id2568358">Name Server Operations</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd><dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2568363">Tools for Use With the Name Server Daemon</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="sect2"><a href="Bv9ARM.ch03.html#id2570071">Signals</a></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dl></dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift In this chapter we provide some suggested configurations along
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift with guidelines for their use. We suggest reasonable values for
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift certain option settings.
7ce59cffdb903ce1661537ac78892e0ca8a79dd2matthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect1" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h2 class="title" style="clear: both">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="sample_configuration"></a>Sample Configurations</h2></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect2" lang="en">
7ce59cffdb903ce1661537ac78892e0ca8a79dd2matthew_swift<div class="titlepage"><div><div><h3 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="id2567897"></a>A Caching-only Name Server</h3></div></div></div>
7ce59cffdb903ce1661537ac78892e0ca8a79dd2matthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The following sample configuration is appropriate for a caching-only
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift name server for use by clients internal to a corporation. All
7ce59cffdb903ce1661537ac78892e0ca8a79dd2matthew_swift queries
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift from outside clients are refused using the <span><strong class="command">allow-query</strong></span>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift option. Alternatively, the same effect could be achieved using
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift suitable
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift firewall rules.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<pre class="programlisting">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift// Two corporate subnets we wish to allow queries from.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftacl corpnets { 192.168.4.0/24; 192.168.7.0/24; };
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftoptions {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift directory "/etc/namedb"; // Working directory
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift allow-query { corpnets; };
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift// Provide a reverse mapping for the loopback address 127.0.0.1
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftzone "0.0.127.in-addr.arpa" {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift type master;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift file "localhost.rev";
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift notify no;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</pre>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect2" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h3 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="id2567913"></a>An Authoritative-only Name Server</h3></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift This sample configuration is for an authoritative-only server
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift that is the master server for "<code class="filename">example.com</code>"
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift and a slave for the subdomain "<code class="filename">eng.example.com</code>".
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<pre class="programlisting">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftoptions {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift directory "/etc/namedb"; // Working directory
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift allow-query-cache { none; }; // Do not allow access to cache
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift allow-query { any; }; // This is the default
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift recursion no; // Do not provide recursive service
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift// Provide a reverse mapping for the loopback address 127.0.0.1
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftzone "0.0.127.in-addr.arpa" {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift type master;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift file "localhost.rev";
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift notify no;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift// We are the master server for example.com
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftzone "example.com" {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift type master;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift file "example.com.db";
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift // IP addresses of slave servers allowed to transfer example.com
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift allow-transfer {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift 192.168.4.14;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift 192.168.5.53;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift };
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift// We are a slave server for eng.example.com
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swiftzone "eng.example.com" {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift type slave;
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift file "eng.example.com.bk";
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift // IP address of eng.example.com master server
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift masters { 192.168.4.12; };
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift};
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</pre>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect1" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h2 class="title" style="clear: both">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="id2568004"></a>Load Balancing</h2></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift A primitive form of load balancing can be achieved in
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift the <acronym class="acronym">DNS</acronym> by using multiple records
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift (such as multiple A records) for one name.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift For example, if you have three WWW servers with network addresses
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of 10.0.0.1, 10.0.0.2 and 10.0.0.3, a set of records such as the
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift following means that clients will connect to each machine one third
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of the time:
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="informaltable"><table border="1">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<colgroup>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<col>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<col>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<col>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<col>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<col>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</colgroup>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tbody>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Name
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift TTL
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift CLASS
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift TYPE
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Resource Record (RR) Data
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">www</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">600</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">IN</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">A</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">10.0.0.1</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p></p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">600</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">IN</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">A</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">10.0.0.2</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p></p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">600</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">IN</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">A</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <code class="literal">10.0.0.3</code>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </td>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tr>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</tbody>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</table></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift When a resolver queries for these records, <acronym class="acronym">BIND</acronym> will rotate
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift them and respond to the query with the records in a different
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift order. In the example above, clients will randomly receive
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift records in the order 1, 2, 3; 2, 3, 1; and 3, 1, 2. Most clients
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift will use the first record returned and discard the rest.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift For more detail on ordering responses, check the
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <span><strong class="command">rrset-order</strong></span> substatement in the
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <span><strong class="command">options</strong></span> statement, see
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <a href="Bv9ARM.ch06.html#rrset_ordering">RRset Ordering</a>.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect1" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h2 class="title" style="clear: both">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="id2568358"></a>Name Server Operations</h2></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect2" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h3 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="id2568363"></a>Tools for Use With the Name Server Daemon</h3></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift This section describes several indispensable diagnostic,
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift administrative and monitoring tools available to the system
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift administrator for controlling and debugging the name server
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift daemon.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect3" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h4 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="diagnostic_tools"></a>Diagnostic Tools</h4></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The <span><strong class="command">dig</strong></span>, <span><strong class="command">host</strong></span>, and
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <span><strong class="command">nslookup</strong></span> programs are all command
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift line tools
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift for manually querying name servers. They differ in style and
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift output format.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="variablelist"><dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="term"><a name="dig"></a><span><strong class="command">dig</strong></span></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The domain information groper (<span><strong class="command">dig</strong></span>)
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift is the most versatile and complete of these lookup tools.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift It has two modes: simple interactive
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift mode for a single query, and batch mode which executes a
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift query for
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift each in a list of several query lines. All query options are
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift accessible
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift from the command line.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<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>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The usual simple use of <span><strong class="command">dig</strong></span> will take the form
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift <span><strong class="command">dig @server domain query-type query-class</strong></span>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift For more information and a list of available commands and
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift options, see the <span><strong class="command">dig</strong></span> man
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift page.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="term"><span><strong class="command">host</strong></span></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The <span><strong class="command">host</strong></span> utility emphasizes
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift simplicity
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift and ease of use. By default, it converts
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift between host names and Internet addresses, but its
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift functionality
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift can be extended with the use of options.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<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>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift For more information and a list of available commands and
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift options, see the <span><strong class="command">host</strong></span> man
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift page.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt><span class="term"><span><strong class="command">nslookup</strong></span></span></dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p><span><strong class="command">nslookup</strong></span>
443912c6877a8ce1c66a3fd7446e9eaa1e9d919amatthew_swift has two modes: interactive and
443912c6877a8ce1c66a3fd7446e9eaa1e9d919amatthew_swift non-interactive. Interactive mode allows the user to
443912c6877a8ce1c66a3fd7446e9eaa1e9d919amatthew_swift query name servers for information about various
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift hosts and domains or to print a list of hosts in a
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift domain. Non-interactive mode is used to print just
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift the name and requested information for a host or
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift domain.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="cmdsynopsis"><p><code class="command">nslookup</code> [-option...] [[<em class="replaceable"><code>host-to-find</code></em>] | [- [server]]]</p></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Interactive mode is entered when no arguments are given (the
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift default name server will be used) or when the first argument
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift is a
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift hyphen (`-') and the second argument is the host name or
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Internet address
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of a name server.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Non-interactive mode is used when the name or Internet
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift address
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of the host to be looked up is given as the first argument.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift optional second argument specifies the host name or address
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of a name server.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Due to its arcane user interface and frequently inconsistent
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift behavior, we do not recommend the use of <span><strong class="command">nslookup</strong></span>.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Use <span><strong class="command">dig</strong></span> instead.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dl></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="sect3" lang="en">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="titlepage"><div><div><h4 class="title">
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="admin_tools"></a>Administrative Tools</h4></div></div></div>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Administrative tools play an integral part in the management
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift of a server.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<div class="variablelist"><dl>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="named-checkconf"></a><span class="term"><span><strong class="command">named-checkconf</strong></span></span>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The <span><strong class="command">named-checkconf</strong></span> program
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift checks the syntax of a <code class="filename">named.conf</code> file.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<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>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="named-checkzone"></a><span class="term"><span><strong class="command">named-checkzone</strong></span></span>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift The <span><strong class="command">named-checkzone</strong></span> program
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift checks a master file for
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift syntax and consistency.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<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>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<a name="named-compilezone"></a><span class="term"><span><strong class="command">named-compilezone</strong></span></span>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift</dt>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dd><p>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift Similar to <span><strong class="command">named-checkzone,</strong></span> but
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift it always dumps the zone content to a specified file
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift (typically in a different format).
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift </p></dd>
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift<dt>
<a name="rndc"></a><span class="term"><span><strong class="command">rndc</strong></span></span>
</dt>
<dd>
<p>
The remote name daemon control
(<span><strong class="command">rndc</strong></span>) program allows the
system
administrator to control the operation of a name server.
Since <acronym class="acronym">BIND</acronym> 9.2, <span><strong class="command">rndc</strong></span>
supports all the commands of the BIND 8 <span><strong class="command">ndc</strong></span>
utility except <span><strong class="command">ndc start</strong></span> and
<span><strong class="command">ndc restart</strong></span>, which were also
not supported in <span><strong class="command">ndc</strong></span>'s
channel mode.
If you run <span><strong class="command">rndc</strong></span> without any
options
it will display a usage message as follows:
</p>
<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>The <span><strong class="command">command</strong></span>
is one of the following:
</p>
<div class="variablelist"><dl>
<dt><span class="term"><strong class="userinput"><code>reload</code></strong></span></dt>
<dd><p>
Reload configuration file and zones.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>reload <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dd><p>
Reload the given zone.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>refresh <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dd><p>
Schedule zone maintenance for the given zone.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>retransfer <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dd><p>
Retransfer the given zone from the master.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>freeze
[<span class="optional"><em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</span>]</code></strong></span></dt>
<dd><p>
Suspend updates to a dynamic zone. If no zone is
specified,
then all zones are suspended. This allows manual
edits to be made to a zone normally updated by dynamic
update. It
also causes changes in the journal file to be synced
into the master
and the journal file to be removed. All dynamic
update attempts will
be refused while the zone is frozen.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>thaw
[<span class="optional"><em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</span>]</code></strong></span></dt>
<dd><p>
Enable updates to a frozen dynamic zone. If no zone
is
specified, then all frozen zones are enabled. This
causes
the server to reload the zone from disk, and
re-enables dynamic updates
after the load has completed. After a zone is thawed,
dynamic updates
will no longer be refused.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>notify <em class="replaceable"><code>zone</code></em>
[<span class="optional"><em class="replaceable"><code>class</code></em>
[<span class="optional"><em class="replaceable"><code>view</code></em></span>]</span>]</code></strong></span></dt>
<dd><p>
Resend NOTIFY messages for the zone.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>reconfig</code></strong></span></dt>
<dd><p>
Reload the configuration file and load new zones,
but do not reload existing zone files even if they
have changed.
This is faster than a full <span><strong class="command">reload</strong></span> when there
is a large number of zones because it avoids the need
to examine the
modification times of the zones files.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>stats</code></strong></span></dt>
<dd><p>
Write server statistics to the statistics file.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>querylog</code></strong></span></dt>
<dd><p>
Toggle query logging. Query logging can also be enabled
by explicitly directing the <span><strong class="command">queries</strong></span>
<span><strong class="command">category</strong></span> to a
<span><strong class="command">channel</strong></span> in the
<span><strong class="command">logging</strong></span> section of
<code class="filename">named.conf</code> or by specifying
<span><strong class="command">querylog yes;</strong></span> in the
<span><strong class="command">options</strong></span> section of
<code class="filename">named.conf</code>.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>dumpdb
[<span class="optional">-all|-cache|-zone</span>]
[<span class="optional"><em class="replaceable"><code>view ...</code></em></span>]</code></strong></span></dt>
<dd><p>
Dump the server's caches (default) and/or zones to
the
dump file for the specified views. If no view is
specified, all
views are dumped.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>stop [<span class="optional">-p</span>]</code></strong></span></dt>
<dd><p>
Stop the server, making sure any recent changes
made through dynamic update or IXFR are first saved to
the master files of the updated zones.
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>
had completed stopping.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>halt [<span class="optional">-p</span>]</code></strong></span></dt>
<dd><p>
Stop the server immediately. Recent changes
made through dynamic update or IXFR are not saved to
the master files, but will be rolled forward from the
journal files when the server is restarted.
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>
had completed halting.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>trace</code></strong></span></dt>
<dd><p>
Increment the servers debugging level by one.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>trace <em class="replaceable"><code>level</code></em></code></strong></span></dt>
<dd><p>
Sets the server's debugging level to an explicit
value.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>notrace</code></strong></span></dt>
<dd><p>
Sets the server's debugging level to 0.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>flush</code></strong></span></dt>
<dd><p>
Flushes the server's cache.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>flushname</code></strong> <em class="replaceable"><code>name</code></em></span></dt>
<dd><p>
Flushes the given name from the server's cache.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>status</code></strong></span></dt>
<dd><p>
Display status of the server.
Note that the number of zones includes the internal <span><strong class="command">bind/CH</strong></span> zone
and the default <span><strong class="command">/IN</strong></span>
hint zone if there is not an
explicit root zone configured.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>recursing</code></strong></span></dt>
<dd><p>
Dump the list of queries <span><strong class="command">named</strong></span> is currently recursing
on.
</p></dd>
<dt><span class="term"><strong class="userinput"><code>validation
[<span class="optional">on|off</span>]
[<span class="optional"><em class="replaceable"><code>view ...</code></em></span>]
</code></strong></span></dt>
<dd><p>
Enable or disable DNSSEC validation.
Note <span><strong class="command">dnssec-enable</strong></span> also needs to be
set to <strong class="userinput"><code>yes</code></strong> to be effective.
It defaults to enabled.
</p></dd>
</dl></div>
<p>
A configuration file is required, since all
communication with the server is authenticated with
digital signatures that rely on a shared secret, and
there is no way to provide that secret other than with a
configuration file. The default location for the
<span><strong class="command">rndc</strong></span> configuration file is
<code class="filename">/etc/rndc.conf</code>, but an
alternate
location can be specified with the <code class="option">-c</code>
option. If the configuration file is not found,
<span><strong class="command">rndc</strong></span> will also look in
<code class="filename">/etc/rndc.key</code> (or whatever
<code class="varname">sysconfdir</code> was defined when
the <acronym class="acronym">BIND</acronym> build was
configured).
The <code class="filename">rndc.key</code> file is
generated by
running <span><strong class="command">rndc-confgen -a</strong></span> as
described in
<a href="Bv9ARM.ch06.html#controls_statement_definition_and_usage" title="controls Statement Definition and
Usage">the section called &#8220;<span><strong class="command">controls</strong></span> Statement Definition and
Usage&#8221;</a>.
</p>
<p>
The format of the configuration file is similar to
that of <code class="filename">named.conf</code>, but
limited to
only four statements, the <span><strong class="command">options</strong></span>,
<span><strong class="command">key</strong></span>, <span><strong class="command">server</strong></span> and
<span><strong class="command">include</strong></span>
statements. These statements are what associate the
secret keys to the servers with which they are meant to
be shared. The order of statements is not
significant.
</p>
<p>
The <span><strong class="command">options</strong></span> statement has
three clauses:
<span><strong class="command">default-server</strong></span>, <span><strong class="command">default-key</strong></span>,
and <span><strong class="command">default-port</strong></span>.
<span><strong class="command">default-server</strong></span> takes a
host name or address argument and represents the server
that will
be contacted if no <code class="option">-s</code>
option is provided on the command line.
<span><strong class="command">default-key</strong></span> takes
the name of a key as its argument, as defined by a <span><strong class="command">key</strong></span> statement.
<span><strong class="command">default-port</strong></span> specifies the
port to which
<span><strong class="command">rndc</strong></span> should connect if no
port is given on the command line or in a
<span><strong class="command">server</strong></span> statement.
</p>
<p>
The <span><strong class="command">key</strong></span> statement defines a
key to be used
by <span><strong class="command">rndc</strong></span> when authenticating
with
<span><strong class="command">named</strong></span>. Its syntax is
identical to the
<span><strong class="command">key</strong></span> statement in <code class="filename">named.conf</code>.
The keyword <strong class="userinput"><code>key</code></strong> is
followed by a key name, which must be a valid
domain name, though it need not actually be hierarchical;
thus,
a string like "<strong class="userinput"><code>rndc_key</code></strong>" is a valid
name.
The <span><strong class="command">key</strong></span> statement has two
clauses:
<span><strong class="command">algorithm</strong></span> and <span><strong class="command">secret</strong></span>.
While the configuration parser will accept any string as the
argument
to algorithm, currently only the string "<strong class="userinput"><code>hmac-md5</code></strong>"
has any meaning. The secret is a base-64 encoded string
as specified in RFC 3548.
</p>
<p>
The <span><strong class="command">server</strong></span> statement
associates a key
defined using the <span><strong class="command">key</strong></span>
statement with a server.
The keyword <strong class="userinput"><code>server</code></strong> is followed by a
host name or address. The <span><strong class="command">server</strong></span> statement
has two clauses: <span><strong class="command">key</strong></span> and <span><strong class="command">port</strong></span>.
The <span><strong class="command">key</strong></span> clause specifies the
name of the key
to be used when communicating with this server, and the
<span><strong class="command">port</strong></span> clause can be used to
specify the port <span><strong class="command">rndc</strong></span> should
connect
to on the server.
</p>
<p>
A sample minimal configuration file is as follows:
</p>
<pre class="programlisting">
key rndc_key {
algorithm "hmac-md5";
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
options {
default-server 127.0.0.1;
default-key rndc_key;
};
</pre>
<p>
This file, if installed as <code class="filename">/etc/rndc.conf</code>,
would allow the command:
</p>
<p>
<code class="prompt">$ </code><strong class="userinput"><code>rndc reload</code></strong>
</p>
<p>
to connect to 127.0.0.1 port 953 and cause the name server
to reload, if a name server on the local machine were
running with
following controls statements:
</p>
<pre class="programlisting">
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
</pre>
<p>
and it had an identical key statement for
<code class="literal">rndc_key</code>.
</p>
<p>
Running the <span><strong class="command">rndc-confgen</strong></span>
program will
conveniently create a <code class="filename">rndc.conf</code>
file for you, and also display the
corresponding <span><strong class="command">controls</strong></span>
statement that you need to
add to <code class="filename">named.conf</code>.
Alternatively,
you can run <span><strong class="command">rndc-confgen -a</strong></span>
to set up
a <code class="filename">rndc.key</code> file and not
modify
<code class="filename">named.conf</code> at all.
</p>
</dd>
</dl></div>
</div>
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="id2570071"></a>Signals</h3></div></div></div>
<p>
Certain UNIX signals cause the name server to take specific
actions, as described in the following table. These signals can
be sent using the <span><strong class="command">kill</strong></span> command.
</p>
<div class="informaltable"><table border="1">
<colgroup>
<col>
<col>
</colgroup>
<tbody>
<tr>
<td>
<p><span><strong class="command">SIGHUP</strong></span></p>
</td>
<td>
<p>
Causes the server to read <code class="filename">named.conf</code> and
reload the database.
</p>
</td>
</tr>
<tr>
<td>
<p><span><strong class="command">SIGTERM</strong></span></p>
</td>
<td>
<p>
Causes the server to clean up and exit.
</p>
</td>
</tr>
<tr>
<td>
<p><span><strong class="command">SIGINT</strong></span></p>
</td>
<td>
<p>
Causes the server to clean up and exit.
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="Bv9ARM.ch02.html">Prev</a>�</td>
<td width="20%" align="center">�</td>
<td width="40%" align="right">�<a accesskey="n" href="Bv9ARM.ch04.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Chapter�2.�<acronym class="acronym">BIND</acronym> Resource Requirements�</td>
<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
<td width="40%" align="right" valign="top">�Chapter�4.�Advanced DNS Features</td>
</tr>
</table>
</div>
</body>
</html>