970N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") 970N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 970N/A - Permission to use, copy, modify, and distribute this software for any 970N/A - purpose with or without fee is hereby granted, provided that the above 970N/A - copyright notice and this permission notice appear in all copies. 970N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 970N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 970N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 970N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 970N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 970N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 970N/A - PERFORMANCE OF THIS SOFTWARE. 970N/ACONTENT="Modular DocBook HTML Stylesheet Version 1.79"></
HEAD 970N/A> -- rndc configuration file</
DIV 970N/A> is the configuration file
970N/A>, the BIND 9 name server control
970N/A utility. This file has a similar structure and syntax to
970N/A>. Statements are enclosed
970N/A in braces and terminated with a semi-colon. Clauses in
970N/A the statements are also semi-colon terminated. The usual
970N/A comment styles are supported:
> C++ style: // to end of line
> Unix style: # to end of line
statements: an options statement, a server statement
> statement contains five clauses.
> clause is followed by the
name or address of a name server. This host will be used when
no name server is given as an argument to
clause is followed by the name of a key which is identified by
> is provided on the rndc command line,
> clause is found in a matching
> statement, this default key will be
used to authenticate the server's commands and responses. The
> clause is followed by the port
to connect to on the remote name server. If no
> option is provided on the rndc command
> statement, this default port
>default-source-address</
CODE>default-source-address-v6</
CODE can be used to set the IPv4 and IPv6 source addresses
statement includes a string which is the hostname or address
for a name server. The statement has three possible clauses:
>. The key name must match the
name of a key statement in the file. The port number
specifies the port to connect to. If an <
CODE clause is supplied these addresses will be used instead of
the server name. Each address can take a optional port.
of supplied then these will be used to specify the IPv4 and IPv6
source addresses respectively.
> statement begins with an identifying
string, the name of the key. The statement has two clauses.
> identifies the encryption algorithm
> to use; currently only HMAC-MD5 is
supported. This is followed by a secret clause which contains
the base-64 encoding of the algorithm's encryption key. The
base-64 string is enclosed in double quotes.
> There are two common ways to generate the base-64 string for the
secret. The BIND 9 program <
B be used to generate a random key, or the
>, can be used to generate a base-64
string from known input. <
B ship with BIND 9 but is available on many systems. See the
EXAMPLE section for sample command lines for each.
default-server localhost;
addresses { localhost port 5353; };
secret "6FMfj43Osz4lyb24OIe2iGEz9lf1llJO+lz";
secret "R3HI8P6BKw9ZwXwN3VZKuQ==";
> 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.
connect to server on localhost port 5353 using the key testkey.
> To generate a random secret with <
B randomly generated key, will be written to the standard
output. Commented out <
CODE> To generate a base-64 secret with <
B>echo "known plaintext for a secret" | mmencode</
KBD>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 <
CODE BIND 9 Administrator Reference Manual for details.
>BIND 9 Administrator Reference Manual</
I> Internet Systems Consortium