2 - Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2001, 2003 Internet Software Consortium.
5 - Permission to use, copy, modify, and/or distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
17 <!-- Id: rndc-confgen.html,v 1.7 2009/07/11 01:12:45 tbox Exp -->
20 <meta http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
21 <title>rndc-confgen
</title>
22 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.71.1">
24 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF"><div class=
"refentry" lang=
"en">
25 <a name=
"man.rndc-confgen"></a><div class=
"titlepage"></div>
26 <div class=
"refnamediv">
28 <p><span class=
"application">rndc-confgen
</span> — rndc key generation tool
</p>
30 <div class=
"refsynopsisdiv">
32 <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>
34 <div class=
"refsect1" lang=
"en">
35 <a name=
"id2543432"></a><h2>DESCRIPTION
</h2>
36 <p><span><strong class=
"command">rndc-confgen
</strong></span>
37 generates configuration files
38 for
<span><strong class=
"command">rndc
</strong></span>. It can be used as a
39 convenient alternative to writing the
40 <code class=
"filename">rndc.conf
</code> file
41 and the corresponding
<span><strong class=
"command">controls
</strong></span>
42 and
<span><strong class=
"command">key
</strong></span>
43 statements in
<code class=
"filename">named.conf
</code> by hand.
44 Alternatively, it can be run with the
<span><strong class=
"command">-a
</strong></span>
45 option to set up a
<code class=
"filename">rndc.key
</code> file and
46 avoid the need for a
<code class=
"filename">rndc.conf
</code> file
47 and a
<span><strong class=
"command">controls
</strong></span> statement altogether.
50 <div class=
"refsect1" lang=
"en">
51 <a name=
"id2543477"></a><h2>OPTIONS
</h2>
52 <div class=
"variablelist"><dl>
53 <dt><span class=
"term">-a
</span></dt>
56 Do automatic
<span><strong class=
"command">rndc
</strong></span> configuration.
57 This creates a file
<code class=
"filename">rndc.key
</code>
58 in
<code class=
"filename">/etc
</code> (or whatever
59 <code class=
"varname">sysconfdir
</code>
60 was specified as when
<acronym class=
"acronym">BIND
</acronym> was
62 that is read by both
<span><strong class=
"command">rndc
</strong></span>
63 and
<span><strong class=
"command">named
</strong></span> on startup. The
64 <code class=
"filename">rndc.key
</code> file defines a default
65 command channel and authentication key allowing
66 <span><strong class=
"command">rndc
</strong></span> to communicate with
67 <span><strong class=
"command">named
</strong></span> on the local host
68 with no further configuration.
71 Running
<span><strong class=
"command">rndc-confgen -a
</strong></span> allows
72 BIND
9 and
<span><strong class=
"command">rndc
</strong></span> to be used as
74 replacements for BIND
8 and
<span><strong class=
"command">ndc
</strong></span>,
75 with no changes to the existing BIND
8
76 <code class=
"filename">named.conf
</code> file.
79 If a more elaborate configuration than that
80 generated by
<span><strong class=
"command">rndc-confgen -a
</strong></span>
81 is required, for example if rndc is to be used remotely,
82 you should run
<span><strong class=
"command">rndc-confgen
</strong></span> without
84 <span><strong class=
"command">-a
</strong></span> option and set up a
85 <code class=
"filename">rndc.conf
</code> and
86 <code class=
"filename">named.conf
</code>
90 <dt><span class=
"term">-b
<em class=
"replaceable"><code>keysize
</code></em></span></dt>
92 Specifies the size of the authentication key in bits.
93 Must be between
1 and
512 bits; the default is
128.
95 <dt><span class=
"term">-c
<em class=
"replaceable"><code>keyfile
</code></em></span></dt>
97 Used with the
<span><strong class=
"command">-a
</strong></span> option to specify
98 an alternate location for
<code class=
"filename">rndc.key
</code>.
100 <dt><span class=
"term">-h
</span></dt>
102 Prints a short summary of the options and arguments to
103 <span><strong class=
"command">rndc-confgen
</strong></span>.
105 <dt><span class=
"term">-k
<em class=
"replaceable"><code>keyname
</code></em></span></dt>
107 Specifies the key name of the rndc authentication key.
108 This must be a valid domain name.
109 The default is
<code class=
"constant">rndc-key
</code>.
111 <dt><span class=
"term">-p
<em class=
"replaceable"><code>port
</code></em></span></dt>
113 Specifies the command channel port where
<span><strong class=
"command">named
</strong></span>
114 listens for connections from
<span><strong class=
"command">rndc
</strong></span>.
117 <dt><span class=
"term">-r
<em class=
"replaceable"><code>randomfile
</code></em></span></dt>
119 Specifies a source of random data for generating the
120 authorization. If the operating
121 system does not provide a
<code class=
"filename">/dev/random
</code>
122 or equivalent device, the default source of randomness
123 is keyboard input.
<code class=
"filename">randomdev
</code>
125 the name of a character device or file containing random
126 data to be used instead of the default. The special value
127 <code class=
"filename">keyboard
</code> indicates that keyboard
128 input should be used.
130 <dt><span class=
"term">-s
<em class=
"replaceable"><code>address
</code></em></span></dt>
132 Specifies the IP address where
<span><strong class=
"command">named
</strong></span>
133 listens for command channel connections from
134 <span><strong class=
"command">rndc
</strong></span>. The default is the loopback
137 <dt><span class=
"term">-t
<em class=
"replaceable"><code>chrootdir
</code></em></span></dt>
139 Used with the
<span><strong class=
"command">-a
</strong></span> option to specify
140 a directory where
<span><strong class=
"command">named
</strong></span> will run
141 chrooted. An additional copy of the
<code class=
"filename">rndc.key
</code>
142 will be written relative to this directory so that
143 it will be found by the chrooted
<span><strong class=
"command">named
</strong></span>.
145 <dt><span class=
"term">-u
<em class=
"replaceable"><code>user
</code></em></span></dt>
147 Used with the
<span><strong class=
"command">-a
</strong></span> option to set the
149 of the
<code class=
"filename">rndc.key
</code> file generated.
151 <span><strong class=
"command">-t
</strong></span> is also specified only the file
153 the chroot area has its owner changed.
157 <div class=
"refsect1" lang=
"en">
158 <a name=
"id2543790"></a><h2>EXAMPLES
</h2>
160 To allow
<span><strong class=
"command">rndc
</strong></span> to be used with
161 no manual configuration, run
163 <p><strong class=
"userinput"><code>rndc-confgen -a
</code></strong>
166 To print a sample
<code class=
"filename">rndc.conf
</code> file and
167 corresponding
<span><strong class=
"command">controls
</strong></span> and
<span><strong class=
"command">key
</strong></span>
168 statements to be manually inserted into
<code class=
"filename">named.conf
</code>,
171 <p><strong class=
"userinput"><code>rndc-confgen
</code></strong>
174 <div class=
"refsect1" lang=
"en">
175 <a name=
"id2543832"></a><h2>SEE ALSO
</h2>
176 <p><span class=
"citerefentry"><span class=
"refentrytitle">rndc
</span>(
8)
</span>,
177 <span class=
"citerefentry"><span class=
"refentrytitle">rndc.conf
</span>(
5)
</span>,
178 <span class=
"citerefentry"><span class=
"refentrytitle">named
</span>(
8)
</span>,
179 <em class=
"citetitle">BIND
9 Administrator Reference Manual
</em>.
182 <div class=
"refsect1" lang=
"en">
183 <a name=
"id2543870"></a><h2>AUTHOR
</h2>
184 <p><span class=
"corpauthor">Internet Systems Consortium
</span>