4793N/A - Copyright (C) 2001 Internet Software Consortium. 4400N/A - Permission to use, copy, modify, and distribute this software for any 4400N/A - purpose with or without fee is hereby granted, provided that the above 4400N/A - copyright notice and this permission notice appear in all copies. 4400N/A - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM 4400N/A - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL 4400N/A - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL 4400N/A - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, 4400N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 4400N/A - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 4400N/A - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 4400N/A - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 4400N/ACONTENT="Modular DocBook HTML Stylesheet Version 1.63 4400N/A> -- rndc configuration file</
DIV 4793N/A>, the BIND 9 name server control
4793N/A utility. This file has a similar structure and syntax to
4400N/A in braces and terminated with a semi-colon. Clauses in
4400N/A the statements are also semi-colon terminated. The usual
4400N/A comment styles are supported:
4400N/A> C++ style: // to end of line
4400N/A> Unix style: # to end of line
4400N/A statements: an options statement, a server statement
4400N/A> statement contains three clauses.
4400N/A name or address of a name server. This host will be used when
4400N/A no name server is given as an argument to
4400N/A clause is followed by the name of a key which is identified by
4400N/A> is provided on the rndc command line,
4400N/A> clause is found in a matching
4400N/A> statement, this default key will be
4400N/A used to authenticate the server's commands and responses. The
4400N/A> clause is followed by the port
4400N/A to connect to on the remote name server. If no
4400N/A> option is provided on the rndc command
4400N/A> statement, this default port
4400N/A> keyword, the server statement
4400N/A includes a string which is the hostname or address for a name
4400N/A server. The statement has two possible clauses:
4400N/A match the name of a key statement in the file. The port number
4400N/A specifies the port to connect to.
4400N/A> statement begins with an identifying
4400N/A string, the name of the key. The statement has two clauses.
4400N/A> identifies the encryption algorithm
4400N/A> to use; currently only HMAC-MD5 is
4400N/A supported. This is followed by a secret clause which contains
4400N/A the base-64 encoding of the algorithm's encryption key. The
4400N/A base-64 string is enclosed in double quotes.
4400N/A> There are two common ways to generate the base-64 string for the
4400N/A secret. The BIND 9 program <
B 4400N/A be used to generate a random key, or the
4400N/A>, can be used to generate a base-64
4400N/A string from known input. <
B 4400N/A ship with BIND 9 but is available on many systems. See the
4400N/A EXAMPLE section for sample command lines for each.
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
> In the above example, <
B the server at localhost (127.0.0.1) and the key called samplekey.
Commands to the localhost server will use the samplekey key, which
must also be defined in the server's configuration file with the
same name and secret. The key statement indicates that samplekey
uses the HMAC-MD5 algorithm and its secret clause contains the
base-64 encoding of the HMAC-MD5 secret enclosed in double quotes.
> To generate a random secret with <
B>$ dnssec-keygen -a hmac-md5 -b 128 -n user rndc</
B> The base-64 string will appear in two files,
>Krndc.+157.+{random}.key</
TT>Krndc.+157.+{random}.private</
TT extracting the key to be placed in the
.key and .private files can be removed.
> To generate a random secret with <
B>$ echo "known plaintext for a secret" | mmencode</
B>NAME SERVER CONFIGURATION</
H2> The name server must be configured to accept rndc connections and
to recognize the key specified in the <
TT file, using the controls statement in <
TT See the sections on the <
TT BIND 9 Administrator Reference Manual for details.
>BIND 9 Administrator Reference Manual</
I> Internet Software Consortium