rndc.conf error
Eivind Olsen
eivind.olsen at ttyl.com
Mon Sep 24 08:20:55 UTC 2001
--On 24. september 2001 16:02 +0800 Bind Users <bind at time.net.my> wrote:
> Hi all
> I try to configure the /etc/rndc.conf but found errors.
> - syntax error :
> /etc/rndc.conf:11: syntax error near '<string>'
> rndc: /etc/rndc.conf: failure
>
>
> 1 key rndc_key {
> 2 algorithm "hmac-md5";
> 3 secret "xxxxxxxx";
> 4 };
> 5
> 6 options {
> 7 default-server localhost;
> 8 default-key rndc_key;
> 9 };
> 10
> 11 controls {
> 12 inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
> 13 };
I don't think the controls-clause is allowed in the rndc.conf. It it
supposed to be in the named.conf file.
You do need to give a server-clause instead, like:
server "127.0.0.1" {
key "rndc_key";
};
So, leave in the key and options clauses, add the server-clause and put the
controls-clause into named.conf instead.
--
Talk To You Later
Eivind Olsen
More information about the bind-users
mailing list