man.rndc.conf.html revision 5091a6fed939d70cc5ae90a8ddecf2a829cdbaba
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User - Copyright (C) 2000-2003 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Permission to use, copy, modify, and/or distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - copyright notice and this permission notice appear in all copies.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User - PERFORMANCE OF THIS SOFTWARE.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<link rel="prev" href="man.rndc.html" title="rndc">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<link rel="next" href="man.rndc-confgen.html" title="rndc-confgen">
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<table width="100%" summary="Navigation header">
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<tr><th colspan="3" align="center"><code class="filename">rndc.conf</code></th></tr>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<a accesskey="p" href="man.rndc.html">Prev</a>�</td>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<th width="60%" align="center">Manual pages</th>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<td width="20%" align="right">�<a accesskey="n" href="man.rndc-confgen.html">Next</a>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<a name="man.rndc.conf"></a><div class="titlepage"></div>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater<p><code class="filename">rndc.conf</code> — rndc configuration file</p>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<div class="cmdsynopsis"><p><code class="command">rndc.conf</code> </p></div>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<p><code class="filename">rndc.conf</code> is the configuration file
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User for <span><strong class="command">rndc</strong></span>, the BIND 9 name server control
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User utility. This file has a similar structure and syntax to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <code class="filename">named.conf</code>. Statements are enclosed
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User in braces and terminated with a semi-colon. Clauses in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User the statements are also semi-colon terminated. The usual
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User comment styles are supported:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User C style: /* */
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater C++ style: // to end of line
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Unix style: # to end of line
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<p><code class="filename">rndc.conf</code> is much simpler than
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User <code class="filename">named.conf</code>. The file uses three
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User statements: an options statement, a server statement
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User and a key statement.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The <code class="option">options</code> statement contains five clauses.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater The <code class="option">default-server</code> clause is followed by the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User name or address of a name server. This host will be used when
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User no name server is given as an argument to
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <span><strong class="command">rndc</strong></span>. The <code class="option">default-key</code>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User clause is followed by the name of a key which is identified by
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User a <code class="option">key</code> statement. If no
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="option">keyid</code> is provided on the rndc command line,
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater and no <code class="option">key</code> clause is found in a matching
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="option">server</code> statement, this default key will be
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater used to authenticate the server's commands and responses. The
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <code class="option">default-port</code> clause is followed by the port
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User to connect to on the remote name server. If no
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="option">port</code> option is provided on the rndc command
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User line, and no <code class="option">port</code> clause is found in a
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User matching <code class="option">server</code> statement, this default port
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater will be used to connect.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The <code class="option">default-source-address</code> and
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <code class="option">default-source-address-v6</code> clauses which
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater can be used to set the IPv4 and IPv6 source addresses
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User respectively.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User After the <code class="option">server</code> keyword, the server
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User statement includes a string which is the hostname or address
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater for a name server. The statement has three possible clauses:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <code class="option">key</code>, <code class="option">port</code> and
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <code class="option">addresses</code>. The key name must match the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User name of a key statement in the file. The port number
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User specifies the port to connect to. If an <code class="option">addresses</code>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User clause is supplied these addresses will be used instead of
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User the server name. Each address can take an optional port.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater If an <code class="option">source-address</code> or <code class="option">source-address-v6</code>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater of supplied then these will be used to specify the IPv4 and IPv6
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater source addresses respectively.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater The <code class="option">key</code> statement begins with an identifying
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater string, the name of the key. The statement has two clauses.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater <code class="option">algorithm</code> identifies the authentication algorithm
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater for <span><strong class="command">rndc</strong></span> to use; currently only HMAC-MD5
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater (for compatibility), HMAC-SHA1, HMAC-SHA224, HMAC-SHA256
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater (default), HMAC-SHA384 and HMAC-SHA512 are
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt supported. This is followed by a secret clause which contains
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User the base-64 encoding of the algorithm's authentication key. The
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User base-64 string is enclosed in double quotes.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater There are two common ways to generate the base-64 string for the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater secret. The BIND 9 program <span><strong class="command">rndc-confgen</strong></span>
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater be used to generate a random key, or the
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User <span><strong class="command">mmencode</strong></span> program, also known as
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User <span><strong class="command">mimencode</strong></span>, can be used to generate a
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater string from known input. <span><strong class="command">mmencode</strong></span> does
c313914d0e66b20969215e519bbf2ab4ecf39512Tinderbox User ship with BIND 9 but is available on many systems. See the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater EXAMPLE section for sample command lines for each.