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