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