man.rndc.conf.html revision 0f863f054cd14a83f8b8464d5976a97df39ee899
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk - Copyright (C) 2000-2016 Internet Systems Consortium, Inc. ("ISC")
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk - This Source Code Form is subject to the terms of the Mozilla Public
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk - License, v. 2.0. If a copy of the MPL was not distributed with this
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk - file, You can obtain one at http://mozilla.org/MPL/2.0/.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<link rel="next" href="man.rndc-confgen.html" title="rndc-confgen">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<tr><th colspan="3" align="center"><code class="filename">rndc.conf</code></th></tr>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<td width="20%" align="right">�<a accesskey="n" href="man.rndc-confgen.html">Next</a>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk<a name="man.rndc.conf"></a><div class="titlepage"></div>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk — rndc configuration file
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <p><code class="filename">rndc.conf</code> is the configuration file
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk for <span class="command"><strong>rndc</strong></span>, the BIND 9 name server control
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk utility. This file has a similar structure and syntax to
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="filename">named.conf</code>. Statements are enclosed
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk in braces and terminated with a semi-colon. Clauses in
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk the statements are also semi-colon terminated. The usual
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk comment styles are supported:
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk C style: /* */
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk C++ style: // to end of line
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk Unix style: # to end of line
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <p><code class="filename">rndc.conf</code> is much simpler than
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="filename">named.conf</code>. The file uses three
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk statements: an options statement, a server statement
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk and a key statement.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk The <code class="option">options</code> statement contains five clauses.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk The <code class="option">default-server</code> clause is followed by the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk name or address of a name server. This host will be used when
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk no name server is given as an argument to
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <span class="command"><strong>rndc</strong></span>. The <code class="option">default-key</code>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk clause is followed by the name of a key which is identified by
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">keyid</code> is provided on the rndc command line,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk and no <code class="option">key</code> clause is found in a matching
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">server</code> statement, this default key will be
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk used to authenticate the server's commands and responses. The
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">default-port</code> clause is followed by the port
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk to connect to on the remote name server. If no
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">port</code> option is provided on the rndc command
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk line, and no <code class="option">port</code> clause is found in a
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk matching <code class="option">server</code> statement, this default port
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk will be used to connect.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk The <code class="option">default-source-address</code> and
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">default-source-address-v6</code> clauses which
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk can be used to set the IPv4 and IPv6 source addresses
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk respectively.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk After the <code class="option">server</code> keyword, the server
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk statement includes a string which is the hostname or address
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk for a name server. The statement has three possible clauses:
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">key</code>, <code class="option">port</code> and
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">addresses</code>. The key name must match the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk name of a key statement in the file. The port number
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk specifies the port to connect to. If an <code class="option">addresses</code>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk clause is supplied these addresses will be used instead of
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk the server name. Each address can take an optional port.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk If an <code class="option">source-address</code> or <code class="option">source-address-v6</code>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk of supplied then these will be used to specify the IPv4 and IPv6
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk source addresses respectively.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk The <code class="option">key</code> statement begins with an identifying
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk string, the name of the key. The statement has two clauses.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <code class="option">algorithm</code> identifies the authentication algorithm
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk for <span class="command"><strong>rndc</strong></span> to use; currently only HMAC-MD5
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk (for compatibility), HMAC-SHA1, HMAC-SHA224, HMAC-SHA256
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk (default), HMAC-SHA384 and HMAC-SHA512 are
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk supported. This is followed by a secret clause which contains
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk the base-64 encoding of the algorithm's authentication key. The
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk base-64 string is enclosed in double quotes.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk There are two common ways to generate the base-64 string for the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk secret. The BIND 9 program <span class="command"><strong>rndc-confgen</strong></span>
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk be used to generate a random key, or the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <span class="command"><strong>mmencode</strong></span> program, also known as
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk <span class="command"><strong>mimencode</strong></span>, can be used to generate a
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk string from known input. <span class="command"><strong>mmencode</strong></span> does
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk ship with BIND 9 but is available on many systems. See the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk EXAMPLE section for sample command lines for each.