.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.\"
-.\" $Id: rndc.conf.5,v 1.26 2004/06/03 04:12:38 marka Exp $
+.\" $Id: rndc.conf.5,v 1.27 2004/06/18 06:00:41 marka Exp $
.\"
.TH "RNDC.CONF" "5" "June 30, 2000" "BIND9" ""
.SH NAME
matching \fBserver\fR statement, this default port
will be used to connect.
.PP
-After the \fBserver\fR keyword, the server statement
-includes a string which is the hostname or address for a name
-server. The statement has two possible clauses:
-\fBkey\fR and \fBport\fR. The key name must
-match the name of a key statement in the file. The port number
-specifies the port to connect to.
+After the \fBserver\fR keyword, the server
+statement includes a string which is the hostname or address
+for a name server. The statement has three possible clauses:
+\fBkey\fR, \fBport\fR and
+\fBaddresses\fR. 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 \fBaddresses\fR
+clause is supplied these addresses will be used instead of
+the server name. Each address can take a optional port.
.PP
The \fBkey\fR statement begins with an identifying
string, the name of the key. The statement has two clauses.
.SH "EXAMPLE"
.sp
.nf
- options {
+ options {
default-server localhost;
default-key samplekey;
};
key samplekey;
};
+ server testserver {
+ key testkey;
+ addresses { localhost port 5353; };
+ };
+
key samplekey {
algorithm hmac-md5;
- secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
+ secret "6FMfj43Osz4lyb24OIe2iGEz9lf1llJO+lz";
};
+
+ key testkey {
+ algorithm hmac-md5;
+ secret "R3HI8P6BKw9ZwXwN3VZKuQ==";
+ }
.sp
.fi
uses the HMAC-MD5 algorithm and its secret clause contains the
base-64 encoding of the HMAC-MD5 secret enclosed in double quotes.
.PP
+If \fBrndc -s testserver\fR is used then \fBrndc\fR will
+connect to server on localhost port 5353 using the key testkey.
+.PP
To generate a random secret with \fBrndc-confgen\fR:
.PP
\fBrndc-confgen\fR
- PERFORMANCE OF THIS SOFTWARE.
-->
-<!-- $Id: rndc.conf.html,v 1.9 2004/06/03 04:12:38 marka Exp $ -->
+<!-- $Id: rndc.conf.html,v 1.10 2004/06/18 06:00:41 marka Exp $ -->
<HTML
><HEAD
will be used to connect.
</P
><P
-> After the <TT
+> After the <TT
CLASS="OPTION"
>server</TT
-> keyword, the server statement
- includes a string which is the hostname or address for a name
- server. The statement has two possible clauses:
+> keyword, the server
+ statement includes a string which is the hostname or address
+ for a name server. The statement has three possible clauses:
<TT
CLASS="OPTION"
>key</TT
-> and <TT
+>, <TT
CLASS="OPTION"
>port</TT
->. The key name must
- match the name of a key statement in the file. The port number
- specifies the port to connect to.
+> and
+ <TT
+CLASS="OPTION"
+>addresses</TT
+>. 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 <TT
+CLASS="OPTION"
+>addresses</TT
+>
+ clause is supplied these addresses will be used instead of
+ the server name. Each address can take a optional port.
</P
><P
> The <TT
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN54"
+NAME="AEN56"
></A
><H2
>EXAMPLE</H2
><PRE
CLASS="PROGRAMLISTING"
-> options {
+> options {
default-server localhost;
default-key samplekey;
};
key samplekey;
};
+ server testserver {
+ key testkey;
+ addresses { localhost port 5353; };
+ };
+
key samplekey {
algorithm hmac-md5;
- secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
+ secret "6FMfj43Osz4lyb24OIe2iGEz9lf1llJO+lz";
};
+
+ key testkey {
+ algorithm hmac-md5;
+ secret "R3HI8P6BKw9ZwXwN3VZKuQ==";
+ }
</PRE
><P
> In the above example, <B
base-64 encoding of the HMAC-MD5 secret enclosed in double quotes.
</P
><P
+> If <B
+CLASS="COMMAND"
+>rndc -s testserver</B
+> is used then <B
+CLASS="COMMAND"
+>rndc</B
+> will
+ connect to server on localhost port 5353 using the key testkey.
+ </P
+><P
> To generate a random secret with <B
CLASS="COMMAND"
>rndc-confgen</B
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN72"
+NAME="AEN77"
></A
><H2
>NAME SERVER CONFIGURATION</H2
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN78"
+NAME="AEN83"
></A
><H2
>SEE ALSO</H2
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN91"
+NAME="AEN96"
></A
><H2
>AUTHOR</H2