2 - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000-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.
19 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
20 <title>rndc-confgen</title>
21 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
22 <link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
23 <link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
24 <link rel="prev" href="man.rndc.conf.html" title="rndc.conf">
25 <link rel="next" href="man.ddns-confgen.html" title="ddns-confgen">
27 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
28 <div class="navheader">
29 <table width="100%" summary="Navigation header">
30 <tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
32 <td width="20%" align="left">
33 <a accesskey="p" href="man.rndc.conf.html">Prev</a> </td>
34 <th width="60%" align="center">Manual pages</th>
35 <td width="20%" align="right"> <a accesskey="n" href="man.ddns-confgen.html">Next</a>
41 <div class="refentry">
42 <a name="man.rndc-confgen"></a><div class="titlepage"></div>
43 <div class="refnamediv">
45 <p><span class="application">rndc-confgen</span> — rndc key generation tool</p>
47 <div class="refsynopsisdiv">
49 <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>
51 <div class="refsection">
52 <a name="id-1.14.23.7"></a><h2>DESCRIPTION</h2>
53 <p><span class="command"><strong>rndc-confgen</strong></span>
54 generates configuration files
55 for <span class="command"><strong>rndc</strong></span>. It can be used as a
56 convenient alternative to writing the
57 <code class="filename">rndc.conf</code> file
58 and the corresponding <span class="command"><strong>controls</strong></span>
59 and <span class="command"><strong>key</strong></span>
60 statements in <code class="filename">named.conf</code> by hand.
61 Alternatively, it can be run with the <span class="command"><strong>-a</strong></span>
62 option to set up a <code class="filename">rndc.key</code> file and
63 avoid the need for a <code class="filename">rndc.conf</code> file
64 and a <span class="command"><strong>controls</strong></span> statement altogether.
67 <div class="refsection">
68 <a name="id-1.14.23.8"></a><h2>OPTIONS</h2>
69 <div class="variablelist"><dl class="variablelist">
70 <dt><span class="term">-a</span></dt>
73 Do automatic <span class="command"><strong>rndc</strong></span> configuration.
74 This creates a file <code class="filename">rndc.key</code>
75 in <code class="filename">/etc</code> (or whatever
76 <code class="varname">sysconfdir</code>
77 was specified as when <acronym class="acronym">BIND</acronym> was
79 that is read by both <span class="command"><strong>rndc</strong></span>
80 and <span class="command"><strong>named</strong></span> on startup. The
81 <code class="filename">rndc.key</code> file defines a default
82 command channel and authentication key allowing
83 <span class="command"><strong>rndc</strong></span> to communicate with
84 <span class="command"><strong>named</strong></span> on the local host
85 with no further configuration.
88 Running <span class="command"><strong>rndc-confgen -a</strong></span> allows
89 BIND 9 and <span class="command"><strong>rndc</strong></span> to be used as
91 replacements for BIND 8 and <span class="command"><strong>ndc</strong></span>,
92 with no changes to the existing BIND 8
93 <code class="filename">named.conf</code> file.
96 If a more elaborate configuration than that
97 generated by <span class="command"><strong>rndc-confgen -a</strong></span>
98 is required, for example if rndc is to be used remotely,
99 you should run <span class="command"><strong>rndc-confgen</strong></span> without
101 <span class="command"><strong>-a</strong></span> option and set up a
102 <code class="filename">rndc.conf</code> and
103 <code class="filename">named.conf</code>
107 <dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
109 Specifies the size of the authentication key in bits.
110 Must be between 1 and 512 bits; the default is 128.
112 <dt><span class="term">-c <em class="replaceable"><code>keyfile</code></em></span></dt>
114 Used with the <span class="command"><strong>-a</strong></span> option to specify
115 an alternate location for <code class="filename">rndc.key</code>.
117 <dt><span class="term">-h</span></dt>
119 Prints a short summary of the options and arguments to
120 <span class="command"><strong>rndc-confgen</strong></span>.
122 <dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
124 Specifies the key name of the rndc authentication key.
125 This must be a valid domain name.
126 The default is <code class="constant">rndc-key</code>.
128 <dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
130 Specifies the command channel port where <span class="command"><strong>named</strong></span>
131 listens for connections from <span class="command"><strong>rndc</strong></span>.
134 <dt><span class="term">-r <em class="replaceable"><code>randomfile</code></em></span></dt>
136 Specifies a source of random data for generating the
137 authorization. If the operating
138 system does not provide a <code class="filename">/dev/random</code>
139 or equivalent device, the default source of randomness
140 is keyboard input. <code class="filename">randomdev</code>
142 the name of a character device or file containing random
143 data to be used instead of the default. The special value
144 <code class="filename">keyboard</code> indicates that keyboard
145 input should be used.
147 <dt><span class="term">-s <em class="replaceable"><code>address</code></em></span></dt>
149 Specifies the IP address where <span class="command"><strong>named</strong></span>
150 listens for command channel connections from
151 <span class="command"><strong>rndc</strong></span>. The default is the loopback
154 <dt><span class="term">-t <em class="replaceable"><code>chrootdir</code></em></span></dt>
156 Used with the <span class="command"><strong>-a</strong></span> option to specify
157 a directory where <span class="command"><strong>named</strong></span> will run
158 chrooted. An additional copy of the <code class="filename">rndc.key</code>
159 will be written relative to this directory so that
160 it will be found by the chrooted <span class="command"><strong>named</strong></span>.
162 <dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
164 Used with the <span class="command"><strong>-a</strong></span> option to set the
166 of the <code class="filename">rndc.key</code> file generated.
168 <span class="command"><strong>-t</strong></span> is also specified only the file
170 the chroot area has its owner changed.
174 <div class="refsection">
175 <a name="id-1.14.23.9"></a><h2>EXAMPLES</h2>
177 To allow <span class="command"><strong>rndc</strong></span> to be used with
178 no manual configuration, run
180 <p><strong class="userinput"><code>rndc-confgen -a</code></strong>
183 To print a sample <code class="filename">rndc.conf</code> file and
184 corresponding <span class="command"><strong>controls</strong></span> and <span class="command"><strong>key</strong></span>
185 statements to be manually inserted into <code class="filename">named.conf</code>,
188 <p><strong class="userinput"><code>rndc-confgen</code></strong>
191 <div class="refsection">
192 <a name="id-1.14.23.10"></a><h2>SEE ALSO</h2>
193 <p><span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
194 <span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
195 <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
196 <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
200 <div class="navfooter">
202 <table width="100%" summary="Navigation footer">
204 <td width="40%" align="left">
205 <a accesskey="p" href="man.rndc.conf.html">Prev</a> </td>
206 <td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
207 <td width="40%" align="right"> <a accesskey="n" href="man.ddns-confgen.html">Next</a>
211 <td width="40%" align="left" valign="top">
212 <code class="filename">rndc.conf</code> </td>
213 <td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
214 <td width="40%" align="right" valign="top"> <span class="application">ddns-confgen</span>
219 <p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.9.9-P4 (Extended Support Version)</p>