rndc.conf

Rachael Stewart rstewart at tsl.state.tx.us
Mon May 21 20:03:08 UTC 2001


I am trying to implement rndc for bind 9.1.2 on a box running RH7.1.  When I
run the command "rndc reload", I get the following message:

[root at dns2 named]# /usr/local/sbin/rndc reload
/etc/rndc.conf:6: syntax error near '<string>'
rndc: /etc/rndc.conf: failure

When I check the file with "named-checkconf rndc.conf", I get:

[root at dns2 named]# /usr/local/sbin/named-checkconf /etc/rndc.conf
/etc/rndc.conf:2: parse error near 'default-server'

I generated the key with: "dnssec-keygen -a hmac-md5 -b 128 -n HOST
rndc_key".

This is my rndc.conf file:

options {
        default-server localhost;
        default-key "rndc_key";
};

key "rndc_key" {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxx";
};

And the beginning of my named.conf file:

options {
        directory "/var/named";

        // This means DNS can only answer local related queries.
        allow-recursion { 204.65.32.0/24; 204.65.194.0/24; localhost; };
      
        forward first;
        forwarders {
            141.198.136.12;
         };
};

controls { 
       inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};

Can anyone tell me what is going wrong?

Rachael Stewart
Network Support Specialist
Texas State Library and Archives
512 463 5454
rstewart at tsl.state.tx.us 



More information about the bind-users mailing list