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