moalbert

Member
Nov 20, 2002
5
0
151
When I attemp to restart bind server in WHM, The following message will be display:
rndc: connect failed: connection refused

How to solve this problems!!!!
Thanks,
regard,
Moalbert
 

moalbert

Member
Nov 20, 2002
5
0
151
I remove the Master DNS Server in WHM, but the problem is still occur, help me!!!Thanks!!!
Moalbert
 

rahnuma

Registered
Nov 25, 2002
3
0
151
rndc connect problem

Hi...
I faced the same problem and after reading all of Cpanel forums I found no answer then I went to BIND documentations and read about the rndc. Problem lies with the latest BIND release 9 and its restart menthod that uses keys and controls. See wat I did..

#cat /etc/rndc.conf

-- then I copied the lines starting with ---

key &rndckey& {
algorithm &hmac-md5&;
secret &xxxxxxxxxxxxxxxxxxxxxxxxxxx&; &-- a secret key
};


I pasted the above line in /etc/named.conf just below the &controls& line.

I restarted my server and every thing started running fine without any error :)

I hope it will help....

regards...
 

FusionBiz

Member
Sep 17, 2002
24
0
151
try this /scripts/fixndc

as I'm having the same problem and I search the forum and find this and it resolved my problem ... hope also can resolve your :)

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
Usually the rndc problem lies when you are using bind version 9, but your server thinks it is using bind version 8. Change the version number in WHM, under EDIT SETUP, and then restart bind. Afterwards, run /scripts/fixndc and run that script TWICE. That should work.

cPanel.net Support Ticket Number:
 

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,725
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
What else could cause this error besides the key? I have tried to add it and re-add it but the error still remains.

I don't have a master slave set up and never have.

I just moved several accounts to the server and it started from that.

Thanks,.

cPanel.net Support Ticket Number:
 

efeito

Well-Known Member
PartnerNOC
Jul 24, 2003
141
0
166
.pt
I have the same error, and i found that was a mistake in one file.

1) Edit /etc/named.conf
2) search "rndckey" (without quotes) and change it to "rndc-key" (without quotes again).
3) restart BIND - /etc/init.d/named restart

It works for me! Let me know if it helps you

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
I had a similar problem, and I just deleted my named.conf and rebuilt it with the /scripts/rebuildnamedconf. You can also try doing the fixrndckey script also.

cPanel.net Support Ticket Number:
 

pingo

Well-Known Member
Nov 16, 2002
428
0
166
I have the same error, and i found that was a mistake in one file.

1) Edit /etc/named.conf
2) search "rndckey" (without quotes) and change it to "rndc-key" (without quotes again).
3) restart BIND - /etc/init.d/named restart


Removing - was the solution for me a my master server (still) uses redhat 7.1

John

cPanel.net Support Ticket Number:
 

testudo

Active Member
Mar 26, 2002
26
0
301
Read your log file!

/var/log/messages will contain the error messages from bind when it fails to restart. It will even report the line numbers in /etc/named.conf it's having problems with so all you have to do is fix the line(s) in question. In my case, it was a matter of improperly placed comment tags (#) in named.conf. Simply correcting those did the trick.

(I have a master/slave setup, so my error may have been caused by a dns transfer.)

cPanel.net Support Ticket Number:
 

drackox

Active Member
May 6, 2004
32
0
156
Dallas
If you are using redhat or fedora... do this...

pico /etc/named.conf
Near the top of that file are 2 entries that say rndc-key or rndckey
remove the "-" from the rndc-key

then:

then run /scripts/fixndc
do that twice... the first time will error out the second time will be fine.


Then:

pico /etc/sysconfig/named
comment out the 'rootdir='
just put a # in front of it..


This will fix all the BIND issues and RNDC issues in WHM and Cpanel so you dont get that rndc error and if you had that annoying popup missing a entry thing, then it will fix it to... :)