rndc.conf.html revision 61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User<!--
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2001 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User -
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Permission to use, copy, modify, and distribute this software for any
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - purpose with or without fee is hereby granted, provided that the above
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - copyright notice and this permission notice appear in all copies.
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User -
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User - PERFORMANCE OF THIS SOFTWARE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User-->
f9ce6280cec79deb16ff6d9807aa493ff23e10d9Tinderbox User
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox User<!-- $Id: rndc.conf.html,v 1.8 2004/04/07 00:57:01 marka Exp $ -->
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<HTML
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><HEAD
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><TITLE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>rndc.conf</TITLE
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><META
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserNAME="GENERATOR"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCONTENT="Modular DocBook HTML Stylesheet Version 1.73
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User"></HEAD
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><BODY
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="REFENTRY"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserBGCOLOR="#FFFFFF"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTEXT="#000000"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINK="#0000FF"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntVLINK="#840084"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserALINK="#0000FF"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><H1
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User><A
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNAME="AEN1"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><TT
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLASS="FILENAME"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt>rndc.conf</TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User></A
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User></H1
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><DIV
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLASS="REFNAMEDIV"
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox User><A
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNAME="AEN9"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User></A
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><H2
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>Name</H2
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FILENAME"
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User>rndc.conf</TT
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User>&nbsp;--&nbsp;rndc configuration file</DIV
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><DIV
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox UserCLASS="REFSYNOPSISDIV"
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><A
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox UserNAME="AEN13"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User></A
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><H2
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User>Synopsis</H2
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><P
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><B
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox UserCLASS="COMMAND"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>rndc.conf</B
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User> </P
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User></DIV
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><DIV
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox UserCLASS="REFSECT1"
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User><A
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNAME="AEN16"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User></A
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><H2
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox User>DESCRIPTION</H2
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> <TT
801d3c8888d6026eb1fd31c23e51e4f54dbc317eTinderbox UserCLASS="FILENAME"
801d3c8888d6026eb1fd31c23e51e4f54dbc317eTinderbox User>rndc.conf</TT
adabefa84c3dcf048566cc23fd457c577f208eeaTinderbox User> is the configuration file
adabefa84c3dcf048566cc23fd457c577f208eeaTinderbox User for <B
adabefa84c3dcf048566cc23fd457c577f208eeaTinderbox UserCLASS="COMMAND"
adabefa84c3dcf048566cc23fd457c577f208eeaTinderbox User>rndc</B
adabefa84c3dcf048566cc23fd457c577f208eeaTinderbox User>, the BIND 9 name server control
801d3c8888d6026eb1fd31c23e51e4f54dbc317eTinderbox User utility. This file has a similar structure and syntax to
801d3c8888d6026eb1fd31c23e51e4f54dbc317eTinderbox User <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FILENAME"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>named.conf</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>. Statements are enclosed
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User in braces and terminated with a semi-colon. Clauses in
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User the statements are also semi-colon terminated. The usual
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User comment styles are supported:
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User </P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> C style: /* */
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> C++ style: // to end of line
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User </P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><P
eb2a5f51bd5c100799d93d51c9e22666cbd64d90Tinderbox User> Unix style: # to end of line
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </P
eb2a5f51bd5c100799d93d51c9e22666cbd64d90Tinderbox User><P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="FILENAME"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>rndc.conf</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> is much simpler than
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User <TT
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLASS="FILENAME"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>named.conf</TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>. The file uses three
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User statements: an options statement, a server statement
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User and a key statement.
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User </P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> The <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>options</TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> statement contains three clauses.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="OPTION"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>default-server</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> clause is followed by the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User name or address of a name server. This host will be used when
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User no name server is given as an argument to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="COMMAND"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>rndc</B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>. The <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="OPTION"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>default-key</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User clause is followed by the name of a key which is identified by
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User a <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt>key</TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> statement. If no
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt>keyid</TT
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt> is provided on the rndc command line,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User and no <TT
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox UserCLASS="OPTION"
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox User>key</TT
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox User> clause is found in a matching
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox User <TT
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox UserCLASS="OPTION"
0ce865f8b2e652d6fe0c029e3538f4cc7e009fe1Tinderbox User>server</TT
3cdd0f1bc921f19e790b4f795b90eabc94e9a74aTinderbox User> statement, this default key will be
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User used to authenticate the server's commands and responses. The
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="OPTION"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>default-port</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> clause is followed by the port
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User to connect to on the remote name server. If no
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>port</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> option is provided on the rndc command
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User line, and no <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="OPTION"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>port</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> clause is found in a
f33abec8a62ab6f2b867d7189dfffa72592c027bTinderbox User matching <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>server</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> statement, this default port
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User will be used to connect.
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User </P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> After the <TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="OPTION"
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User>server</TT
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User> keyword, the server statement
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User includes a string which is the hostname or address for a name
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User server. The statement has two possible clauses:
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User <TT
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox UserCLASS="OPTION"
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User>key</TT
2acf9aa8ffa476bee7003fd788539ed714733464Tinderbox User> and <TT
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox UserCLASS="OPTION"
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User>port</TT
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User>. The key name must
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User match the name of a key statement in the file. The port number
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User specifies the port to connect to.
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User </P
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User><P
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User> The <TT
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox UserCLASS="OPTION"
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User>key</TT
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User> statement begins with an identifying
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User string, the name of the key. The statement has two clauses.
fb2e132c5c1246d709ade9a2b3dad5ad72d35c5cTinderbox User <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="OPTION"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>algorithm</TT
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> identifies the encryption algorithm
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User for <B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="COMMAND"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>rndc</B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> to use; currently only HMAC-MD5 is
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User supported. This is followed by a secret clause which contains
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User the base-64 encoding of the algorithm's encryption key. The
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User base-64 string is enclosed in double quotes.
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User </P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><P
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> There are two common ways to generate the base-64 string for the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User secret. The BIND 9 program <B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="COMMAND"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>rndc-confgen</B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> can
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User be used to generate a random key, or the
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User <B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="COMMAND"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>mmencode</B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> program, also known as
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="COMMAND"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>mimencode</B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>, can be used to generate a base-64
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User string from known input. <B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCLASS="COMMAND"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>mmencode</B
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> does not
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User ship with BIND 9 but is available on many systems. See the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User EXAMPLE section for sample command lines for each.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User></DIV
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><DIV
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="REFSECT1"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><A
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserNAME="AEN54"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User></A
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><H2
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User>EXAMPLE</H2
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User><PRE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="PROGRAMLISTING"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User> options {
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User default-server localhost;
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User default-key samplekey;
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User };
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User server localhost {
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User key samplekey;
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User };
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User key samplekey {
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User algorithm hmac-md5;
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User };
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User </PRE
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User><P
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User> In the above example, <B
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox UserCLASS="COMMAND"
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User>rndc</B
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User> will by default use
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User the server at localhost (127.0.0.1) and the key called samplekey.
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User Commands to the localhost server will use the samplekey key, which
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User must also be defined in the server's configuration file with the
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User same name and secret. The key statement indicates that samplekey
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt uses the HMAC-MD5 algorithm and its secret clause contains the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User base-64 encoding of the HMAC-MD5 secret enclosed in double quotes.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </P
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><P
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User> To generate a random secret with <B
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCLASS="COMMAND"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>rndc-confgen</B
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </P
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User> <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="USERINPUT"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt><B
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt>rndc-confgen</B
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt></TT
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </P
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User><P
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt> A complete <TT
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FILENAME"
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User>rndc.conf</TT
> file, including the
randomly generated key, will be written to the standard
output. Commented out <TT
CLASS="OPTION"
>key</TT
> and
<TT
CLASS="OPTION"
>controls</TT
> statements for
<TT
CLASS="FILENAME"
>named.conf</TT
> are also printed.
</P
><P
> To generate a base-64 secret with <B
CLASS="COMMAND"
>mmencode</B
>:
</P
><P
> <TT
CLASS="USERINPUT"
><B
>echo "known plaintext for a secret" | mmencode</B
></TT
>
</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN72"
></A
><H2
>NAME SERVER CONFIGURATION</H2
><P
> The name server must be configured to accept rndc connections and
to recognize the key specified in the <TT
CLASS="FILENAME"
>rndc.conf</TT
>
file, using the controls statement in <TT
CLASS="FILENAME"
>named.conf</TT
>.
See the sections on the <TT
CLASS="OPTION"
>controls</TT
> statement in the
BIND 9 Administrator Reference Manual for details.
</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN78"
></A
><H2
>SEE ALSO</H2
><P
> <SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>rndc</SPAN
>(8)</SPAN
>,
<SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>rndc-confgen</SPAN
>(8)</SPAN
>,
<SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>mmencode</SPAN
>(1)</SPAN
>,
<I
CLASS="CITETITLE"
>BIND 9 Administrator Reference Manual</I
>.
</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN91"
></A
><H2
>AUTHOR</H2
><P
> Internet Software Consortium
</P
></DIV
></BODY
></HTML
>