man.rndc-confgen.html revision 070c022f10320d27954b0b50226ca0fc556439ff
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - Copyright (C) 2000-2003 Internet Software Consortium.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - Permission to use, copy, modify, and distribute this software for any
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - purpose with or without fee is hereby granted, provided that the above
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - copyright notice and this permission notice appear in all copies.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi - PERFORMANCE OF THIS SOFTWARE.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<!-- $Id: man.rndc-confgen.html,v 1.76 2008/04/05 01:09:34 tbox Exp $ -->
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<link rel="prev" href="man.rndc.conf.html" title="rndc.conf">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<table width="100%" summary="Navigation header">
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<th width="60%" align="center">Manual pages</th>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<a name="man.rndc-confgen"></a><div class="titlepage"></div>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<p><span class="application">rndc-confgen</span> — rndc key generation tool</p>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<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>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<a name="id2607104"></a><h2>DESCRIPTION</h2>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi<p><span><strong class="command">rndc-confgen</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi generates configuration files
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi for <span><strong class="command">rndc</strong></span>. It can be used as a
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi convenient alternative to writing the
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <code class="filename">rndc.conf</code> file
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi and the corresponding <span><strong class="command">controls</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi and <span><strong class="command">key</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi statements in <code class="filename">named.conf</code> by hand.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi Alternatively, it can be run with the <span><strong class="command">-a</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi option to set up a <code class="filename">rndc.key</code> file and
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi avoid the need for a <code class="filename">rndc.conf</code> file
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi and a <span><strong class="command">controls</strong></span> statement altogether.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi Do automatic <span><strong class="command">rndc</strong></span> configuration.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi This creates a file <code class="filename">rndc.key</code>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi in <code class="filename">/etc</code> (or whatever
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi was specified as when <acronym class="acronym">BIND</acronym> was
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi that is read by both <span><strong class="command">rndc</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi and <span><strong class="command">named</strong></span> on startup. The
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <code class="filename">rndc.key</code> file defines a default
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi command channel and authentication key allowing
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <span><strong class="command">rndc</strong></span> to communicate with
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <span><strong class="command">named</strong></span> on the local host
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi with no further configuration.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi Running <span><strong class="command">rndc-confgen -a</strong></span> allows
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi BIND 9 and <span><strong class="command">rndc</strong></span> to be used as
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi replacements for BIND 8 and <span><strong class="command">ndc</strong></span>,
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi with no changes to the existing BIND 8
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <code class="filename">named.conf</code> file.
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi If a more elaborate configuration than that
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi generated by <span><strong class="command">rndc-confgen -a</strong></span>
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi is required, for example if rndc is to be used remotely,
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi you should run <span><strong class="command">rndc-confgen</strong></span> without
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <span><strong class="command">-a</strong></span> option and set up a
f2d34afa1058d195513e7ab9a6c1f0ce38b4d05bRobert Mustacchi <code class="filename">rndc.conf</code> and