man.rndc-confgen.html revision 6ddb448306dd58f2521b4f9859b38dbb402e1dd1
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - Copyright (C) 2000-2003 Internet Software Consortium.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - Permission to use, copy, modify, and distribute this software for any
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - purpose with or without fee is hereby granted, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - copyright notice and this permission notice appear in all copies.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - PERFORMANCE OF THIS SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<!-- $Id: man.rndc-confgen.html,v 1.58 2007/08/13 05:27:51 marka Exp $ -->
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<link rel="prev" href="man.rndc.conf.html" title="rndc.conf">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<a name="man.rndc-confgen"></a><div class="titlepage"></div>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><span class="application">rndc-confgen</span> — rndc key generation tool</p>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<div class="cmdsynopsis"><p><code class="command">rndc-confgen</code> [<code class="option">-a</code>] [<code class="option">-b <em class="replaceable"><code>keysize</code></em></code>] [<code class="option">-c <em class="replaceable"><code>keyfile</code></em></code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>keyname</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-r <em class="replaceable"><code>randomfile</code></em></code>] [<code class="option">-s <em class="replaceable"><code>address</code></em></code>] [<code class="option">-t <em class="replaceable"><code>chrootdir</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>]</p></div>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><span><strong class="command">rndc-confgen</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein generates configuration files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein for <span><strong class="command">rndc</strong></span>. It can be used as a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein convenient alternative to writing the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein and the corresponding <span><strong class="command">controls</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein and <span><strong class="command">key</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein statements in <code class="filename">named.conf</code> by hand.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Alternatively, it can be run with the <span><strong class="command">-a</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein option to set up a <code class="filename">rndc.key</code> file and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein avoid the need for a <code class="filename">rndc.conf</code> file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein and a <span><strong class="command">controls</strong></span> statement altogether.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Do automatic <span><strong class="command">rndc</strong></span> configuration.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein This creates a file <code class="filename">rndc.key</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein in <code class="filename">/etc</code> (or whatever
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein was specified as when <acronym class="acronym">BIND</acronym> was
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein that is read by both <span><strong class="command">rndc</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein and <span><strong class="command">named</strong></span> on startup. The
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <code class="filename">rndc.key</code> file defines a default
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein command channel and authentication key allowing
727f5b8846457a33d06f515a10a7e1aa849ddf18Andreas Gustafsson <span><strong class="command">rndc</strong></span> to communicate with
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <span><strong class="command">named</strong></span> on the local host
8e245ec21beee31a780de9b89ba1e8bb2b9f4c9aAndreas Gustafsson with no further configuration.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Running <span><strong class="command">rndc-confgen -a</strong></span> allows
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce BIND 9 and <span><strong class="command">rndc</strong></span> to be used as
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce replacements for BIND 8 and <span><strong class="command">ndc</strong></span>,
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce with no changes to the existing BIND 8
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein If a more elaborate configuration than that
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein generated by <span><strong class="command">rndc-confgen -a</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein is required, for example if rndc is to be used remotely,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein you should run <span><strong class="command">rndc-confgen</strong></span> without
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span><strong class="command">-a</strong></span> option and set up a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein as directed.
575e532437cf7f203707765e21767db92fa1e480Mark Andrews<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
8e245ec21beee31a780de9b89ba1e8bb2b9f4c9aAndreas Gustafsson Specifies the size of the authentication key in bits.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Must be between 1 and 512 bits; the default is 128.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<dt><span class="term">-c <em class="replaceable"><code>keyfile</code></em></span></dt>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Used with the <span><strong class="command">-a</strong></span> option to specify
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce an alternate location for <code class="filename">rndc.key</code>.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Prints a short summary of the options and arguments to
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <span><strong class="command">rndc-confgen</strong></span>.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Specifies the key name of the rndc authentication key.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce This must be a valid domain name.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce The default is <code class="constant">rndc-key</code>.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Specifies the command channel port where <span><strong class="command">named</strong></span>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce listens for connections from <span><strong class="command">rndc</strong></span>.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce The default is 953.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<dt><span class="term">-r <em class="replaceable"><code>randomfile</code></em></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Specifies a source of random data for generating the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein authorization. If the operating
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein system does not provide a <code class="filename">/dev/random</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein or equivalent device, the default source of randomness
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein is keyboard input. <code class="filename">randomdev</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein the name of a character device or file containing random
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein data to be used instead of the default. The special value
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <code class="filename">keyboard</code> indicates that keyboard
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein input should be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term">-s <em class="replaceable"><code>address</code></em></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Specifies the IP address where <span><strong class="command">named</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein listens for command channel connections from
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span><strong class="command">rndc</strong></span>. The default is the loopback
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein address 127.0.0.1.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term">-t <em class="replaceable"><code>chrootdir</code></em></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Used with the <span><strong class="command">-a</strong></span> option to specify
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein a directory where <span><strong class="command">named</strong></span> will run
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein chrooted. An additional copy of the <code class="filename">rndc.key</code>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein will be written relative to this directory so that
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein it will be found by the chrooted <span><strong class="command">named</strong></span>.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Used with the <span><strong class="command">-a</strong></span> option to set the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein of the <code class="filename">rndc.key</code> file generated.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span><strong class="command">-t</strong></span> is also specified only the file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein the chroot area has its owner changed.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein To allow <span><strong class="command">rndc</strong></span> to be used with
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein no manual configuration, run
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><strong class="userinput"><code>rndc-confgen -a</code></strong>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein To print a sample <code class="filename">rndc.conf</code> file and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein corresponding <span><strong class="command">controls</strong></span> and <span><strong class="command">key</strong></span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein statements to be manually inserted into <code class="filename">named.conf</code>,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><strong class="userinput"><code>rndc-confgen</code></strong>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<p><span class="corpauthor">Internet Systems Consortium</span>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<td width="40%" align="right" valign="top">�</td>