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