rndc -- connection refused

Stephen Jacob Stephen.Jacob at nominum.com
Thu Apr 12 18:15:43 UTC 2001


On Thu, Apr 12, 2001 at 03:35:58PM +0100, david.tansley at acelondon.co.uk wrote:
> I am trying to configure the rnds utility. But I always get  'connection
> refused'.
> I have ran dnssec-keygen to generate the files. I have used the contents from
> the private file as the secret.
> In my /etc/rnds.conf, I have;

I assume that you mean rndc.conf? If you have named the file
rnds.conf, that would explain it.

> options {
>     default-server  localhost;
>     default-key     "rndc_key";
> };
> server localhost {
>     key     "rndc_key";
> };
> key "rndc_key" {
>     algorithm hmac-md5;
>     secret "BivytJga3nHJ2GR4GLH00A==";
> };

Looks fine. The "server" statement shouldn't be necessary.

> In my /etc/named.conf, I have;
> controls {
>  inet 127.0.0.1 allow { localhost; } keys (rndc_key; };
> }
> key "rndc_key" {
> alogorithm      hmac-md5;
> secret "BivytJga3nHJ2GR4GLH00A==";
> };
> Any pointers as to what I am doing wrong.

You have a left parenthesis ('(') instead of a left curly bracket
between 'keys' and 'rndc_key; }' in the config listed above. You
need a left curly bracket ('{') instead.

If you copied and pasted it (that is, if it wasn't just a
transcription error) then try fixing that error and see if it
works.

Regards,
sj


More information about the bind-users mailing list