issues with rndc....

Steve Foster fosters at uk.psi.com
Mon Nov 18 14:19:03 UTC 2002


Hi all,

i may be missing a point here, but i have ran rndc-confgen to create myself
a key and installed the following into named.conf at the very bottom..:

key "rndc-key" {
      algorithm hmac-md5;
      secret "KEY";
};

controls {
      inet 127.0.0.1 port 953
              allow { 127.0.0.1; } keys { "rndc-key"; };
};

I have restarted bind, and it is listening on port953, however when i try
to issue rndc commands, i get the following:

Nov 18 14:15:44 HOST named[8061]: invalid command from 127.0.0.1#39489: bad
auth
and

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.

e.g my command is: 
./rndc stats



is there anything i have missed or should be doing in the rndc command??

cheers, any help appreciated, as i need to check the cache etc...

Steve

P.S my named runs as nobody, so i have even tried generating the key as the
nobody user but it is still the same...
Steve Foster
Senior Systems Administrator
PSINet Europe
Work: +44 (1223) 577322
Mobile: +44 (7720) 425911


More information about the bind-users mailing list