man.rndc-confgen.html revision bd84b04e4fda4f41923bba6e7277546d87045b5a
2728d0618e15ee3a2ecc5f6d15acd7898e6de85aTinderbox User<!--
7e09576b7739de29ade3fc4d11daa1836d300459Tinderbox User - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
7e09576b7739de29ade3fc4d11daa1836d300459Tinderbox User - Copyright (C) 2000-2003 Internet Software Consortium.
7e09576b7739de29ade3fc4d11daa1836d300459Tinderbox User -
7e09576b7739de29ade3fc4d11daa1836d300459Tinderbox User - Permission to use, copy, modify, and/or distribute this software for any
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt - purpose with or without fee is hereby granted, provided that the above
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews - copyright notice and this permission notice appear in all copies.
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews -
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews-->
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<!-- $Id$ -->
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<html>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<head>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<title>rndc-confgen</title>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<link rel="prev" href="man.rndc.conf.html" title="rndc.conf">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<link rel="next" href="man.ddns-confgen.html" title="ddns-confgen">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</head>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="navheader">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<table width="100%" summary="Navigation header">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<tr>
f5c17a057fc5974bb51d7bc8c5827a7fd6dc9aeeEvan Hunt<td width="20%" align="left">
f5c17a057fc5974bb51d7bc8c5827a7fd6dc9aeeEvan Hunt<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews<th width="60%" align="center">Manual pages</th>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<td width="20%" align="right">�<a accesskey="n" href="man.ddns-confgen.html">Next</a>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</td>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</tr>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</table>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<hr>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</div>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="refentry" lang="en">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<a name="man.rndc-confgen"></a><div class="titlepage"></div>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="refnamediv">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<h2>Name</h2>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<p><span class="application">rndc-confgen</span> &#8212; rndc key generation tool</p>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</div>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="refsynopsisdiv">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<h2>Synopsis</h2>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<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">-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>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</div>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="refsect1" lang="en">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<a name="id2664133"></a><h2>DESCRIPTION</h2>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<p><span><strong class="command">rndc-confgen</strong></span>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt generates configuration files
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt for <span><strong class="command">rndc</strong></span>. It can be used as a
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt convenient alternative to writing the
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt <code class="filename">rndc.conf</code> file
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt and the corresponding <span><strong class="command">controls</strong></span>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt and <span><strong class="command">key</strong></span>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt statements in <code class="filename">named.conf</code> by hand.
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt Alternatively, it can be run with the <span><strong class="command">-a</strong></span>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt option to set up a <code class="filename">rndc.key</code> file and
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt avoid the need for a <code class="filename">rndc.conf</code> file
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt and a <span><strong class="command">controls</strong></span> statement altogether.
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt </p>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt</div>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="refsect1" lang="en">
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<a name="id2664199"></a><h2>OPTIONS</h2>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<div class="variablelist"><dl>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<dt><span class="term">-a</span></dt>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<dd>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt<p>
11435e83c66b7587b285187c2ed0c7de59992e6dEvan Hunt Do automatic <span><strong class="command">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><strong class="command">rndc</strong></span>
and <span><strong class="command">named</strong></span> on startup. The
<code class="filename">rndc.key</code> file defines a default
command channel and authentication key allowing
<span><strong class="command">rndc</strong></span> to communicate with
<span><strong class="command">named</strong></span> on the local host
with no further configuration.
</p>
<p>
Running <span><strong class="command">rndc-confgen -a</strong></span> allows
BIND 9 and <span><strong class="command">rndc</strong></span> to be used as
drop-in
replacements for BIND 8 and <span><strong class="command">ndc</strong></span>,
with no changes to the existing BIND 8
<code class="filename">named.conf</code> file.
</p>
<p>
If a more elaborate configuration than that
generated by <span><strong class="command">rndc-confgen -a</strong></span>
is required, for example if rndc is to be used remotely,
you should run <span><strong class="command">rndc-confgen</strong></span> without
the
<span><strong class="command">-a</strong></span> option and set up a
<code class="filename">rndc.conf</code> and
<code class="filename">named.conf</code>
as directed.
</p>
</dd>
<dt><span class="term">-A <em class="replaceable"><code>algorithm</code></em></span></dt>
<dd><p>
Specifies the algorithm to use for the TSIG key. Available
choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
hmac-sha384 and hmac-sha512. The default is hmac-md5.
</p></dd>
<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
<dd><p>
Specifies the size of the authentication key in bits.
Must be between 1 and 512 bits; the default is the
hash size.
</p></dd>
<dt><span class="term">-c <em class="replaceable"><code>keyfile</code></em></span></dt>
<dd><p>
Used with the <span><strong class="command">-a</strong></span> option to specify
an alternate location for <code class="filename">rndc.key</code>.
</p></dd>
<dt><span class="term">-h</span></dt>
<dd><p>
Prints a short summary of the options and arguments to
<span><strong class="command">rndc-confgen</strong></span>.
</p></dd>
<dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
<dd><p>
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>.
</p></dd>
<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
<dd><p>
Specifies the command channel port where <span><strong class="command">named</strong></span>
listens for connections from <span><strong class="command">rndc</strong></span>.
The default is 953.
</p></dd>
<dt><span class="term">-r <em class="replaceable"><code>randomfile</code></em></span></dt>
<dd><p>
Specifies a source of random data for generating the
authorization. If the operating
system does not provide a <code class="filename">/dev/random</code>
or equivalent device, the default source of randomness
is keyboard input. <code class="filename">randomdev</code>
specifies
the name of a character device or file containing random
data to be used instead of the default. The special value
<code class="filename">keyboard</code> indicates that keyboard
input should be used.
</p></dd>
<dt><span class="term">-s <em class="replaceable"><code>address</code></em></span></dt>
<dd><p>
Specifies the IP address where <span><strong class="command">named</strong></span>
listens for command channel connections from
<span><strong class="command">rndc</strong></span>. The default is the loopback
address 127.0.0.1.
</p></dd>
<dt><span class="term">-t <em class="replaceable"><code>chrootdir</code></em></span></dt>
<dd><p>
Used with the <span><strong class="command">-a</strong></span> option to specify
a directory where <span><strong class="command">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><strong class="command">named</strong></span>.
</p></dd>
<dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
<dd><p>
Used with the <span><strong class="command">-a</strong></span> option to set the
owner
of the <code class="filename">rndc.key</code> file generated.
If
<span><strong class="command">-t</strong></span> is also specified only the file
in
the chroot area has its owner changed.
</p></dd>
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2665217"></a><h2>EXAMPLES</h2>
<p>
To allow <span><strong class="command">rndc</strong></span> to be used with
no manual configuration, run
</p>
<p><strong class="userinput"><code>rndc-confgen -a</code></strong>
</p>
<p>
To print a sample <code class="filename">rndc.conf</code> file and
corresponding <span><strong class="command">controls</strong></span> and <span><strong class="command">key</strong></span>
statements to be manually inserted into <code class="filename">named.conf</code>,
run
</p>
<p><strong class="userinput"><code>rndc-confgen</code></strong>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2667526"></a><h2>SEE ALSO</h2>
<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>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2667564"></a><h2>AUTHOR</h2>
<p><span class="corpauthor">Internet Systems Consortium</span>
</p>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
<td width="40%" align="right">�<a accesskey="n" href="man.ddns-confgen.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<code class="filename">rndc.conf</code>�</td>
<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
<td width="40%" align="right" valign="top">�<span class="application">ddns-confgen</span>
</td>
</tr>
</table>
</div>
<p style="text-align: center;">BIND 9.11.0pre-alpha</p>
</body>
</html>