man.rndc-confgen.html 10.6 KB
Newer Older
Tinderbox User's avatar
Tinderbox User committed
1 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Tinderbox User's avatar
Tinderbox User committed
3
 - Copyright (C) 2000-2019 Internet Systems Consortium, Inc. ("ISC")
Tinderbox User's avatar
Tinderbox User committed
4 5 6 7 8 9 10 11 12
 - 
 - This Source Code Form is subject to the terms of the Mozilla Public
 - License, v. 2.0. If a copy of the MPL was not distributed with this
 - file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>rndc-confgen</title>
Tinderbox User's avatar
Tinderbox User committed
13
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
Tinderbox User's avatar
Tinderbox User committed
14
<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
15
<link rel="up" href="Bv9ARM.ch12.html" title="Manual pages">
16 17
<link rel="prev" href="man.pkcs11-tokens.html" title="pkcs11-tokens">
<link rel="next" href="man.rndc.conf.html" title="rndc.conf">
Tinderbox User's avatar
Tinderbox User committed
18 19 20 21 22 23 24
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
<tr>
<td width="20%" align="left">
25
<a accesskey="p" href="man.pkcs11-tokens.html">Prev</a> </td>
Tinderbox User's avatar
Tinderbox User committed
26
<th width="60%" align="center">Manual pages</th>
27
<td width="20%" align="right"> <a accesskey="n" href="man.rndc.conf.html">Next</a>
Tinderbox User's avatar
Tinderbox User committed
28 29 30 31 32 33 34
</td>
</tr>
</table>
<hr>
</div>
<div class="refentry">
<a name="man.rndc-confgen"></a><div class="titlepage"></div>
Tinderbox User's avatar
Tinderbox User committed
35 36 37 38 39 40
  
  

  

  <div class="refnamediv">
Tinderbox User's avatar
Tinderbox User committed
41
<h2>Name</h2>
Tinderbox User's avatar
Tinderbox User committed
42 43 44 45
<p>
    <span class="application">rndc-confgen</span>
     &#8212; rndc key generation tool
  </p>
Tinderbox User's avatar
Tinderbox User committed
46
</div>
Tinderbox User's avatar
Tinderbox User committed
47 48 49 50

  

  <div class="refsynopsisdiv">
Tinderbox User's avatar
Tinderbox User committed
51
<h2>Synopsis</h2>
Tinderbox User's avatar
Tinderbox User committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
    <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">-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>
  </div>

  <div class="refsection">
Tinderbox User's avatar
Tinderbox User committed
68
<a name="id-1.13.36.7"></a><h2>DESCRIPTION</h2>
Tinderbox User's avatar
Tinderbox User committed
69 70

    <p><span class="command"><strong>rndc-confgen</strong></span>
Tinderbox User's avatar
Tinderbox User committed
71 72 73 74 75 76 77 78 79 80 81 82
      generates configuration files
      for <span class="command"><strong>rndc</strong></span>.  It can be used as a
      convenient alternative to writing the
      <code class="filename">rndc.conf</code> file
      and the corresponding <span class="command"><strong>controls</strong></span>
      and <span class="command"><strong>key</strong></span>
      statements in <code class="filename">named.conf</code> by hand.
      Alternatively, it can be run with the <span class="command"><strong>-a</strong></span>
      option to set up a <code class="filename">rndc.key</code> file and
      avoid the need for a <code class="filename">rndc.conf</code> file
      and a <span class="command"><strong>controls</strong></span> statement altogether.
    </p>
Tinderbox User's avatar
Tinderbox User committed
83 84 85 86

  </div>

  <div class="refsection">
Tinderbox User's avatar
Tinderbox User committed
87
<a name="id-1.13.36.8"></a><h2>OPTIONS</h2>
Tinderbox User's avatar
Tinderbox User committed
88 89 90


    <div class="variablelist"><dl class="variablelist">
Tinderbox User's avatar
Tinderbox User committed
91 92
<dt><span class="term">-a</span></dt>
<dd>
Tinderbox User's avatar
Tinderbox User committed
93
          <p>
Tinderbox User's avatar
Tinderbox User committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107
            Do automatic <span class="command"><strong>rndc</strong></span> configuration.
            This creates a file <code class="filename">rndc.key</code>
            in <code class="filename">/etc</code> (or whatever
            <code class="varname">sysconfdir</code>
            was specified as when <acronym class="acronym">BIND</acronym> was
            built)
            that is read by both <span class="command"><strong>rndc</strong></span>
            and <span class="command"><strong>named</strong></span> on startup.  The
            <code class="filename">rndc.key</code> file defines a default
            command channel and authentication key allowing
            <span class="command"><strong>rndc</strong></span> to communicate with
            <span class="command"><strong>named</strong></span> on the local host
            with no further configuration.
          </p>
Tinderbox User's avatar
Tinderbox User committed
108
          <p>
Tinderbox User's avatar
Tinderbox User committed
109 110 111 112 113 114 115
            Running <span class="command"><strong>rndc-confgen -a</strong></span> allows
            BIND 9 and <span class="command"><strong>rndc</strong></span> to be used as
            drop-in
            replacements for BIND 8 and <span class="command"><strong>ndc</strong></span>,
            with no changes to the existing BIND 8
            <code class="filename">named.conf</code> file.
          </p>
Tinderbox User's avatar
Tinderbox User committed
116
          <p>
Tinderbox User's avatar
Tinderbox User committed
117 118 119 120 121 122 123 124 125 126
            If a more elaborate configuration than that
            generated by <span class="command"><strong>rndc-confgen -a</strong></span>
            is required, for example if rndc is to be used remotely,
            you should run <span class="command"><strong>rndc-confgen</strong></span> without
            the
            <span class="command"><strong>-a</strong></span> option and set up a
            <code class="filename">rndc.conf</code> and
            <code class="filename">named.conf</code>
            as directed.
          </p>
Tinderbox User's avatar
Tinderbox User committed
127
        </dd>
Tinderbox User's avatar
Tinderbox User committed
128
<dt><span class="term">-A <em class="replaceable"><code>algorithm</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
129 130
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
131 132
            Specifies the algorithm to use for the TSIG key.  Available
            choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
Tinderbox User's avatar
Tinderbox User committed
133
            hmac-sha384 and hmac-sha512.  The default is hmac-sha256.
Tinderbox User's avatar
Tinderbox User committed
134 135
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
136
<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
137 138
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
139 140 141
            Specifies the size of the authentication key in bits.
            Must be between 1 and 512 bits; the default is the
            hash size.
Tinderbox User's avatar
Tinderbox User committed
142 143
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
144
<dt><span class="term">-c <em class="replaceable"><code>keyfile</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
145 146
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
147 148
            Used with the <span class="command"><strong>-a</strong></span> option to specify
            an alternate location for <code class="filename">rndc.key</code>.
Tinderbox User's avatar
Tinderbox User committed
149 150
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
151
<dt><span class="term">-h</span></dt>
Tinderbox User's avatar
Tinderbox User committed
152 153
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
154 155
            Prints a short summary of the options and arguments to
            <span class="command"><strong>rndc-confgen</strong></span>.
Tinderbox User's avatar
Tinderbox User committed
156 157
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
158
<dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
159 160
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
161 162 163
            Specifies the key name of the rndc authentication key.
            This must be a valid domain name.
            The default is <code class="constant">rndc-key</code>.
Tinderbox User's avatar
Tinderbox User committed
164 165
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
166
<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
167 168
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
169 170 171
            Specifies the command channel port where <span class="command"><strong>named</strong></span>
            listens for connections from <span class="command"><strong>rndc</strong></span>.
            The default is 953.
Tinderbox User's avatar
Tinderbox User committed
172 173
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
174
<dt><span class="term">-s <em class="replaceable"><code>address</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
175 176
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
177 178 179 180
            Specifies the IP address where <span class="command"><strong>named</strong></span>
            listens for command channel connections from
            <span class="command"><strong>rndc</strong></span>.  The default is the loopback
            address 127.0.0.1.
Tinderbox User's avatar
Tinderbox User committed
181 182
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
183
<dt><span class="term">-t <em class="replaceable"><code>chrootdir</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
184 185
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
186 187 188 189 190
            Used with the <span class="command"><strong>-a</strong></span> option to specify
            a directory where <span class="command"><strong>named</strong></span> will run
            chrooted.  An additional copy of the <code class="filename">rndc.key</code>
            will be written relative to this directory so that
            it will be found by the chrooted <span class="command"><strong>named</strong></span>.
Tinderbox User's avatar
Tinderbox User committed
191 192
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
193
<dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
Tinderbox User's avatar
Tinderbox User committed
194 195
<dd>
          <p>
Tinderbox User's avatar
Tinderbox User committed
196 197 198 199 200 201 202
            Used with the <span class="command"><strong>-a</strong></span> option to set the
            owner
            of the <code class="filename">rndc.key</code> file generated.
            If
            <span class="command"><strong>-t</strong></span> is also specified only the file
            in
            the chroot area has its owner changed.
Tinderbox User's avatar
Tinderbox User committed
203 204
          </p>
        </dd>
Tinderbox User's avatar
Tinderbox User committed
205
</dl></div>
Tinderbox User's avatar
Tinderbox User committed
206 207 208
  </div>

  <div class="refsection">
Tinderbox User's avatar
Tinderbox User committed
209
<a name="id-1.13.36.9"></a><h2>EXAMPLES</h2>
Tinderbox User's avatar
Tinderbox User committed
210 211

    <p>
Tinderbox User's avatar
Tinderbox User committed
212 213 214
      To allow <span class="command"><strong>rndc</strong></span> to be used with
      no manual configuration, run
    </p>
Tinderbox User's avatar
Tinderbox User committed
215
    <p><strong class="userinput"><code>rndc-confgen -a</code></strong>
Tinderbox User's avatar
Tinderbox User committed
216
    </p>
Tinderbox User's avatar
Tinderbox User committed
217
    <p>
Tinderbox User's avatar
Tinderbox User committed
218 219 220 221 222
      To print a sample <code class="filename">rndc.conf</code> file and
      corresponding <span class="command"><strong>controls</strong></span> and <span class="command"><strong>key</strong></span>
      statements to be manually inserted into <code class="filename">named.conf</code>,
      run
    </p>
Tinderbox User's avatar
Tinderbox User committed
223
    <p><strong class="userinput"><code>rndc-confgen</code></strong>
Tinderbox User's avatar
Tinderbox User committed
224
    </p>
Tinderbox User's avatar
Tinderbox User committed
225 226 227
  </div>

  <div class="refsection">
Tinderbox User's avatar
Tinderbox User committed
228
<a name="id-1.13.36.10"></a><h2>SEE ALSO</h2>
Tinderbox User's avatar
Tinderbox User committed
229 230 231 232 233 234 235 236 237 238

    <p><span class="citerefentry">
        <span class="refentrytitle">rndc</span>(8)
      </span>,
      <span class="citerefentry">
        <span class="refentrytitle">rndc.conf</span>(5)
      </span>,
      <span class="citerefentry">
        <span class="refentrytitle">named</span>(8)
      </span>,
Tinderbox User's avatar
Tinderbox User committed
239 240
      <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
    </p>
Tinderbox User's avatar
Tinderbox User committed
241 242
  </div>

Tinderbox User's avatar
Tinderbox User committed
243 244 245 246 247 248
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
249
<a accesskey="p" href="man.pkcs11-tokens.html">Prev</a> </td>
250
<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch12.html">Up</a></td>
251
<td width="40%" align="right"> <a accesskey="n" href="man.rndc.conf.html">Next</a>
Tinderbox User's avatar
Tinderbox User committed
252 253 254 255
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
256
<span class="application">pkcs11-tokens</span> </td>
Tinderbox User's avatar
Tinderbox User committed
257
<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
258
<td width="40%" align="right" valign="top"> <code class="filename">rndc.conf</code>
Tinderbox User's avatar
Tinderbox User committed
259 260 261 262
</td>
</tr>
</table>
</div>
Tinderbox User's avatar
Tinderbox User committed
263
<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.14.1 (Stable Release)</p>
Tinderbox User's avatar
Tinderbox User committed
264 265
</body>
</html>