rndc-confgen.docbook revision bfeb2af9cf4564c00a0e1100744cf5acd3b1d5ea
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
7d98a1783f222964bcde7d56dab77b822706204dBob Halley "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence [<!ENTITY mdash "—">]>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley - Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley - Copyright (C) 2001, 2003 Internet Software Consortium.
15a44745412679c30a6d022733925af70a38b715David Lawrence - Permission to use, copy, modify, and/or distribute this software for any
15a44745412679c30a6d022733925af70a38b715David Lawrence - purpose with or without fee is hereby granted, provided that the above
15a44745412679c30a6d022733925af70a38b715David Lawrence - copyright notice and this permission notice appear in all copies.
15a44745412679c30a6d022733925af70a38b715David Lawrence - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
15a44745412679c30a6d022733925af70a38b715David Lawrence - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15a44745412679c30a6d022733925af70a38b715David Lawrence - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15a44745412679c30a6d022733925af70a38b715David Lawrence - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8f7cae3d7b0c122c3b17e8409bbb80005433acd2Brian Wellington - PERFORMANCE OF THIS SOFTWARE.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley<!-- $Id: rndc-confgen.docbook,v 1.4 2009/06/15 23:47:59 tbox Exp $ -->
8f7cae3d7b0c122c3b17e8409bbb80005433acd2Brian Wellington <refentryinfo>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </refentryinfo>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <refentrytitle><application>rndc-confgen</application></refentrytitle>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <refnamediv>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson <refname><application>rndc-confgen</application></refname>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <refpurpose>rndc key generation tool</refpurpose>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </refnamediv>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </copyright>
8327c62a49a2487d29a37acbed6b602e629fc0eeAndreas Gustafsson <holder>Internet Software Consortium.</holder>
878d3073b13833ee1a50dfeabf8e400b6fdfc754Brian Wellington <refsynopsisdiv>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <cmdsynopsis>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <arg><option>-b <replaceable class="parameter">keysize</replaceable></option></arg>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson <arg><option>-c <replaceable class="parameter">keyfile</replaceable></option></arg>
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence <arg><option>-k <replaceable class="parameter">keyname</replaceable></option></arg>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <arg><option>-r <replaceable class="parameter">randomfile</replaceable></option></arg>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <arg><option>-s <replaceable class="parameter">address</replaceable></option></arg>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <arg><option>-t <replaceable class="parameter">chrootdir</replaceable></option></arg>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley <arg><option>-u <replaceable class="parameter">user</replaceable></option></arg>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley </cmdsynopsis>
8582a1e113c13886ccbd1b534d6c240315767be6Bob Halley </refsynopsisdiv>
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence generates configuration files
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff convenient alternative to writing the
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff and the corresponding <command>controls</command>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson statements in <filename>named.conf</filename> by hand.
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson Alternatively, it can be run with the <command>-a</command>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson option to set up a <filename>rndc.key</filename> file and
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson avoid the need for a <filename>rndc.conf</filename> file
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson and a <command>controls</command> statement altogether.
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson <variablelist>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson <varlistentry>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson Do automatic <command>rndc</command> configuration.
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson This creates a file <filename>rndc.key</filename>
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson in <filename>/etc</filename> (or whatever
e02c696ea586f8dcc7c6145cc0f143f887960cd4Andreas Gustafsson was specified as when <acronym>BIND</acronym> was
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson <filename>rndc.key</filename> file defines a default
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson command channel and authentication key allowing
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson <command>rndc</command> to communicate with
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson with no further configuration.
44fee668021c7ceef4ee1c848031d883a508b359James Brister Running <command>rndc-confgen -a</command> allows
44fee668021c7ceef4ee1c848031d883a508b359James Brister BIND 9 and <command>rndc</command> to be used as
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson replacements for BIND 8 and <command>ndc</command>,
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson with no changes to the existing BIND 8
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson If a more elaborate configuration than that
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson generated by <command>rndc-confgen -a</command>
44fee668021c7ceef4ee1c848031d883a508b359James Brister is required, for example if rndc is to be used remotely,
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson you should run <command>rndc-confgen</command> without
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson <command>-a</command> option and set up a
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson </varlistentry>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson <varlistentry>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson <term>-b <replaceable class="parameter">keysize</replaceable></term>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson Specifies the size of the authentication key in bits.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence Must be between 1 and 512 bits; the default is 128.
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson </varlistentry>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson <varlistentry>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson <term>-c <replaceable class="parameter">keyfile</replaceable></term>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson Used with the <command>-a</command> option to specify
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson an alternate location for <filename>rndc.key</filename>.
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson </varlistentry>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson <varlistentry>
7193a1762e428cfba06907e51fa9e4bce3b5569aAndreas Gustafsson Prints a short summary of the options and arguments to
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson </varlistentry>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson <varlistentry>
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrence <term>-k <replaceable class="parameter">keyname</replaceable></term>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley Specifies the key name of the rndc authentication key.
11d435aa4cf77e035445978f7e3776a3589715fdAndreas Gustafsson This must be a valid domain name.
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrence The default is <constant>rndc-key</constant>.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </varlistentry>
a0f6cda5fd9f2fcc4154bb63628f849b639a40caAndreas Gustafsson <varlistentry>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley <term>-p <replaceable class="parameter">port</replaceable></term>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley Specifies the command channel port where <command>named</command>
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley listens for connections from <command>rndc</command>.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley The default is 953.
1687985cdfc3a4c330c5bdb02c131835f8756e3cBob Halley </varlistentry>