View Full Version : rndc error
bkusnir
2003-08-18, 23:43 PM
Now that I have finally gotten my own nameservers to work, I am geting a "rndc: connect failed: connection refused" error everytime I start or re-start named (manually or by adding a DNS entry) ... doesn't seem to effect anything, mostly I would just like to stop seeing the error message. Anyone else experiencing this problem? Can't seem to find to much information on the net concerning this.
--Thanks
charlie
2003-08-19, 10:18 AM
it's a known problem off and on problem with cpanel... go to the ssh to your server and su to root then run... /scripts/fixndc
Beowulf
2003-09-27, 10:18 AM
scripts/fixndc is not working on some of the servers.
knightfoo
2003-09-27, 10:43 AM
I have seen some servers where the name of the rndc authentication key is not the same in all files. I think the named.conf is looking for "rndckey" but the rndc.key and rndc.conf have "rndc-key" in them. You need to make sure all of the key names match up then restart named.
-knightfoo
Beowulf
2003-09-27, 10:53 AM
Actually I took the entire key section out of the rndc.conf that says to use in the named.conf and cut and pasted it over the old removed the #'s and it fired right up no hitches :)
(Denise) Beowulfs Wife.
Zeechi
2003-10-07, 15:58 PM
my rndc.key is empty.. what does that mean?
The named.conf and rndc.conf do have the same key though.
Originally posted by Zeechi
my rndc.key is empty.. what does that mean?
The named.conf and rndc.conf do have the same key though. ]
Sometimes the name in rndc.conf is rndc-key and the named.conf has rndckey (how confusing). So, the rndc.conf has an entry for the key and the key name is "rndc-key"
but sometimes named.conf refers to the key "rndckey" which doesnt exist.
You can fix this by changing "rndckey" to "rndc-key" in named.conf, then restart named:
/sbin/service named restart
:)
Zeechi
2003-10-07, 16:16 PM
Should this be in my named.conf file?
zone "localhost" IN {
type master;
file "/var/named/localhost.zone";
allow-update { none; };
};
It currently is not, but looking in other forums someone posted their named.conf file and this is in their file.
Update!!! I was wrong the above code is at the bottom of named.conf
Originally posted by Zeechi
Should this be in my named.conf file?
It better be in there. :)
Zeechi
2003-10-07, 16:26 PM
Ok I did what you suggested QT_ and when I restarded named this is what I got.
root@server1 [/etc]# /sbin/service named restart
Stopping named: 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.
[ OK ]
Try "rndc status" to see if it can connect. If that command succeeds then you're done. :)
Zeechi
2003-10-07, 16:30 PM
This is what I did...
I did as QT_ said and changed the rndckey to = rndc-key
Then I restarted named and got the error.
I thought for a sec(should have thought more before I posted last time) then I ran the these scripts
/scripts/fixnamed
/scripts/fixndc
/sbin/service named restart
I didnt get an error this time...
Looks like it worked then.. :)
Zeechi
2003-10-07, 16:35 PM
Originally posted by QT_
Try "rndc status" to see if it can connect. If that command succeeds then you're done. :)
I get this:
root@server1 [/etc]# rndc status
bash: rndc: command not found
I also switched to "/" and got the same thing
and I tried "/scripts/rndc" status too no go
Zeechi
2003-10-07, 17:23 PM
Ok I found it and it is working...
/usr/sbin/rndc status
Thanks for your help yet again QT_ :D
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.