LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rndc: no key definition for name rncd.key (https://www.linuxquestions.org/questions/linux-networking-3/rndc-no-key-definition-for-name-rncd-key-129695/)

forkvoid 12-29-2003 04:03 AM

rndc: no key definition for name rncd.key
 
Using BIND 9.2.2 on Slackware 9.


Code:

# Excerpts from named.conf

key "rndc.key" {
        algorithm hmac-md5;
        secret "1zg8/qcbv2ihptplTr2Av+Q==";
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndc.key; };
};

Code:

# rndc.conf

options {
  default-server  localhost;
  default-key    "rncd.key";
};
key "rndc.key" {
  algorithm hmac-md5;
  secret "zg8/qcbv2ihptplTr2Av+Q==";
};

Code:

# rndc.key
key "rndc-key" {
        algorithm hmac-md5;
        secret "zg8/qcbv2ihptplTr2Av+Q==";
};

I've been reading a doc at http://www.redhat.com/docs/manuals/l...ind-rndc.html, which was telling me how to get this working. As far as I can see, it's perfectly fine, but obviously that's not the case. Anyone have any ideas?

suchi 12-29-2003 07:54 AM

check out the rndc key entries in key "rndc.key" section and rndc.conf section, both differ with a single digit "1" in the beginning. You can use rndc-confgen command and append the lines to the end of named.conf and rndc.conf files also. Well, just see whether it works with you version of the os. I had the same problem.

forkvoid 12-29-2003 04:40 PM

Oh, sorry. I actually added that '1' myself, to see if it would give a different error than the one it was giving(it didn't). So the error I said in my first post is with and without that '1' in the beginning of the key.

I am trying what you said with the rndc-confgen now, but it's giving me Connection Refused. I'm going to play around with it a bit more and see if I can get it to give me something different...


All times are GMT -5. The time now is 09:06 PM.