1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2001, 2003 Internet Software Consortium.
8 - Permission to use, copy, modify, and/or distribute this software for any
9 - purpose with or without fee is hereby granted, provided that the above
10 - copyright notice and this permission notice appear in all copies.
12 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 - PERFORMANCE OF THIS SOFTWARE.
21 <!-- Id: rndc-confgen.docbook,v 1.4 2009/06/15 23:47:59 tbox Exp -->
22 <refentry id="man.rndc-confgen">
24 <date>Aug 27, 2001</date>
28 <refentrytitle><application>rndc-confgen</application></refentrytitle>
29 <manvolnum>8</manvolnum>
30 <refmiscinfo>BIND9</refmiscinfo>
34 <refname><application>rndc-confgen</application></refname>
35 <refpurpose>rndc key generation tool</refpurpose>
44 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
49 <holder>Internet Software Consortium.</holder>
55 <command>rndc-confgen</command>
56 <arg><option>-a</option></arg>
57 <arg><option>-b <replaceable class="parameter">keysize</replaceable></option></arg>
58 <arg><option>-c <replaceable class="parameter">keyfile</replaceable></option></arg>
59 <arg><option>-h</option></arg>
60 <arg><option>-k <replaceable class="parameter">keyname</replaceable></option></arg>
61 <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
62 <arg><option>-r <replaceable class="parameter">randomfile</replaceable></option></arg>
63 <arg><option>-s <replaceable class="parameter">address</replaceable></option></arg>
64 <arg><option>-t <replaceable class="parameter">chrootdir</replaceable></option></arg>
65 <arg><option>-u <replaceable class="parameter">user</replaceable></option></arg>
70 <title>DESCRIPTION</title>
71 <para><command>rndc-confgen</command>
72 generates configuration files
73 for <command>rndc</command>. It can be used as a
74 convenient alternative to writing the
75 <filename>rndc.conf</filename> file
76 and the corresponding <command>controls</command>
77 and <command>key</command>
78 statements in <filename>named.conf</filename> by hand.
79 Alternatively, it can be run with the <command>-a</command>
80 option to set up a <filename>rndc.key</filename> file and
81 avoid the need for a <filename>rndc.conf</filename> file
82 and a <command>controls</command> statement altogether.
88 <title>OPTIONS</title>
95 Do automatic <command>rndc</command> configuration.
96 This creates a file <filename>rndc.key</filename>
97 in <filename>/etc</filename> (or whatever
98 <varname>sysconfdir</varname>
99 was specified as when <acronym>BIND</acronym> was
101 that is read by both <command>rndc</command>
102 and <command>named</command> on startup. The
103 <filename>rndc.key</filename> file defines a default
104 command channel and authentication key allowing
105 <command>rndc</command> to communicate with
106 <command>named</command> on the local host
107 with no further configuration.
110 Running <command>rndc-confgen -a</command> allows
111 BIND 9 and <command>rndc</command> to be used as
113 replacements for BIND 8 and <command>ndc</command>,
114 with no changes to the existing BIND 8
115 <filename>named.conf</filename> file.
118 If a more elaborate configuration than that
119 generated by <command>rndc-confgen -a</command>
120 is required, for example if rndc is to be used remotely,
121 you should run <command>rndc-confgen</command> without
123 <command>-a</command> option and set up a
124 <filename>rndc.conf</filename> and
125 <filename>named.conf</filename>
132 <term>-b <replaceable class="parameter">keysize</replaceable></term>
135 Specifies the size of the authentication key in bits.
136 Must be between 1 and 512 bits; the default is 128.
142 <term>-c <replaceable class="parameter">keyfile</replaceable></term>
145 Used with the <command>-a</command> option to specify
146 an alternate location for <filename>rndc.key</filename>.
155 Prints a short summary of the options and arguments to
156 <command>rndc-confgen</command>.
162 <term>-k <replaceable class="parameter">keyname</replaceable></term>
165 Specifies the key name of the rndc authentication key.
166 This must be a valid domain name.
167 The default is <constant>rndc-key</constant>.
173 <term>-p <replaceable class="parameter">port</replaceable></term>
176 Specifies the command channel port where <command>named</command>
177 listens for connections from <command>rndc</command>.
184 <term>-r <replaceable class="parameter">randomfile</replaceable></term>
187 Specifies a source of random data for generating the
188 authorization. If the operating
189 system does not provide a <filename>/dev/random</filename>
190 or equivalent device, the default source of randomness
191 is keyboard input. <filename>randomdev</filename>
193 the name of a character device or file containing random
194 data to be used instead of the default. The special value
195 <filename>keyboard</filename> indicates that keyboard
196 input should be used.
202 <term>-s <replaceable class="parameter">address</replaceable></term>
205 Specifies the IP address where <command>named</command>
206 listens for command channel connections from
207 <command>rndc</command>. The default is the loopback
214 <term>-t <replaceable class="parameter">chrootdir</replaceable></term>
217 Used with the <command>-a</command> option to specify
218 a directory where <command>named</command> will run
219 chrooted. An additional copy of the <filename>rndc.key</filename>
220 will be written relative to this directory so that
221 it will be found by the chrooted <command>named</command>.
227 <term>-u <replaceable class="parameter">user</replaceable></term>
230 Used with the <command>-a</command> option to set the
232 of the <filename>rndc.key</filename> file generated.
234 <command>-t</command> is also specified only the file
236 the chroot area has its owner changed.
245 <title>EXAMPLES</title>
247 To allow <command>rndc</command> to be used with
248 no manual configuration, run
250 <para><userinput>rndc-confgen -a</userinput>
253 To print a sample <filename>rndc.conf</filename> file and
254 corresponding <command>controls</command> and <command>key</command>
255 statements to be manually inserted into <filename>named.conf</filename>,
258 <para><userinput>rndc-confgen</userinput>
263 <title>SEE ALSO</title>
265 <refentrytitle>rndc</refentrytitle><manvolnum>8</manvolnum>
268 <refentrytitle>rndc.conf</refentrytitle><manvolnum>5</manvolnum>
271 <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
273 <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
278 <title>AUTHOR</title>
279 <para><corpauthor>Internet Systems Consortium</corpauthor>