RNDC problems

2 posts / 0 new
Last post
#1 Sat, 08/19/2006 - 13:45
ChrisBlackwell

RNDC problems

Hi,

I've just re-setup our secondary mx/dns and i'm having problems getting RNDC to work.

When i try to force an update on a zone i get NDC command failed : rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid.

If i click "Setup RNDC" i get Failed to setup RNDC : Could not find key in rndc.conf

My named.conf looks like this

options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; };

include "/etc/rndc.key";

...zones follow

And this is my rndc.key file

key rndckey { algorithm hmac-md5; secret "4bNunXdbX2I88HMrUhEBkNSZEPYFYHlXpm315Tm1d78BUUpsSSeq1LomhQit"; };

I get the following message in /var/log/messages when i try to force an update invalid command from 127.0.0.1#33970: bad auth

but zone do seem to transfer ok

Aug 19 19:11:32 hostname named[[23877]]: zone domain.co.uk/IN: transferred serial 1131107961 Aug 19 19:11:32 hostname named[[23877]]: transfer of 'domain.co.uk/IN' from xxx.xxx.xxx.xxx#53: end of transfer

So it seems there is a problem with the key setup, but i don't fully understand what i'm looking at to be able to tinker with it :)

Both boxes are RHEL4, bind/rndc 9.2.4 and fully updated.

Sat, 08/19/2006 - 14:55
Joe
Joe's picture

Hey Chris,

Wild guess off the top of my head:

Maybe the key needs to be in the named chroot? Once it's running, I believe named lives in the chroot...so everything needs to exist there.

--

Check out the forum guidelines!

Topic locked