DNS Problem - rndc: connect failed: connection refused

Reply

Join Date: Mar 2005
Posts: 2
Reputation: krishvij is an unknown quantity at this point 
Solved Threads: 0
krishvij krishvij is offline Offline
Newbie Poster

DNS Problem - rndc: connect failed: connection refused

 
0
  #1
Mar 10th, 2005
Hi,

I was trying to configure multiple zones on my DNS on RHEL3 Box. The first zone went fine. The named service was stopped at that time. I started that service and then everything went fine. then i created another zone. But i did not stop the service while editing the /etc/named.conf file and then the zone and reverse files. Now it is giving me the error

rndc: connect failed: connection refused

everytime i try to stop the named service. I also tried various rndc commands but i get the same error message.

I tried removing DNS and then re installing it. I still get the same error. Can somebody help?
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 2
Reputation: krishvij is an unknown quantity at this point 
Solved Threads: 0
krishvij krishvij is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #2
Mar 11th, 2005
hi,

i managed to fix the problem. No worries. In case someone has the same problem feel free to PM me. would be happy to help
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1
Reputation: chetshot is an unknown quantity at this point 
Solved Threads: 0
chetshot chetshot is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #3
Apr 3rd, 2005
hi people......finally the rndc bug is out of the stadium......i have found the solution ......
it depends on only the permissions of files and directories...
rndc .conf ........root.named....755
named.conf.......named.named.....755
also if there is errror like ....permission denied on named.pid after running ....named -g -p 53.....then u have to change permissions....of /var/run/named derectory......where the pid resides.....
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 1
Reputation: naren_ipx is an unknown quantity at this point 
Solved Threads: 0
naren_ipx naren_ipx is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #4
May 25th, 2005
Originally Posted by krishvij
hi,

i managed to fix the problem. No worries. In case someone has the same problem feel free to PM me. would be happy to help

Hi sir,

This rndc is giving me hard time.
It would be so nice of you if you please help me to sort out from this issue.
I am getting the rndc:connection refused error.
I m using fedora core 1 as my OS.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1
Reputation: CharlestonSW is an unknown quantity at this point 
Solved Threads: 0
CharlestonSW CharlestonSW is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #5
Jul 7th, 2005
Still having problems after making sure your rndc and named keys match? Here is what I did to solve the problem on my server.

1) Create /etc/rndc.key (use a key generator listed in the other posts to get your secret key)

key "rndckey" {
algorithm hmac-md5 ;
secret "MySecretKey";
};

2) Create /etc/rndc.conf (note the include of rndc.key, this ensures the named and rndc apps both have identical keys)

# Start of rndc.conf
options {
default-server localhost;
default-key "rndckey";
};

server localhost {
key "rndckey";
};

include "/etc/rndc.key";

3) Edit /etc/named.conf and change or add these sections:

options {
directory "/etc/named";
pid-file "/var/run/named.pid";
};

zone "localhost" {
allow-update { none; }; type master; file "localhost.zone"; };

.... blah,blah,blah.... more zones here....

include "/etc/rndc.key";

controls {
inet * allow { any; } keys { rndckey; };
};


4) Create /etc/named/localhost.zone

$TTL 86400
@ IN SOA @ root (
43 ; serial
10800 ; refresh
900 ; retry
604800 ; expire
86400 ; ttl
)



IN NS @
IN A 127.0.0.1
IN AAAA ::1


The winning combo was to use the include in both named.conf and rndc.conf so they key matches - AND - make sure a localhost zone file exists on the system. For some reason Bind9 was having issue with a hard-coded 127.0.0.1 in these files.


HTH,
Lance
Sr. Computer Geek
CharlestonSW.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 2
Reputation: DanielTan is an unknown quantity at this point 
Solved Threads: 0
DanielTan DanielTan is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #6
Sep 26th, 2005
Hi, i also having problem in rndc. is this applied to FC 3 ? Have to use resolv.conf ?

Rgds
Daniel

Originally Posted by CharlestonSW
Still having problems after making sure your rndc and named keys match? Here is what I did to solve the problem on my server.

1) Create /etc/rndc.key (use a key generator listed in the other posts to get your secret key)

key "rndckey" {
algorithm hmac-md5 ;
secret "MySecretKey";
};

2) Create /etc/rndc.conf (note the include of rndc.key, this ensures the named and rndc apps both have identical keys)

# Start of rndc.conf
options {
default-server localhost;
default-key "rndckey";
};

server localhost {
key "rndckey";
};

include "/etc/rndc.key";

3) Edit /etc/named.conf and change or add these sections:

options {
directory "/etc/named";
pid-file "/var/run/named.pid";
};

zone "localhost" {
allow-update { none; }; type master; file "localhost.zone"; };

.... blah,blah,blah.... more zones here....

include "/etc/rndc.key";

controls {
inet * allow { any; } keys { rndckey; };
};


4) Create /etc/named/localhost.zone

$TTL 86400
@ IN SOA @ root (
43 ; serial
10800 ; refresh
900 ; retry
604800 ; expire
86400 ; ttl
)



IN NS @
IN A 127.0.0.1
IN AAAA ::1


The winning combo was to use the include in both named.conf and rndc.conf so they key matches - AND - make sure a localhost zone file exists on the system. For some reason Bind9 was having issue with a hard-coded 127.0.0.1 in these files.


HTH,
Lance
Sr. Computer Geek
CharlestonSW.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 2
Reputation: DanielTan is an unknown quantity at this point 
Solved Threads: 0
DanielTan DanielTan is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #7
Sep 27th, 2005
Hi, how do you fix your rndc connection problem ? i have FC 3. Step by step on how you do ? Thanks

Rgds
Daniel

Originally Posted by krishvij
Hi,

I was trying to configure multiple zones on my DNS on RHEL3 Box. The first zone went fine. The named service was stopped at that time. I started that service and then everything went fine. then i created another zone. But i did not stop the service while editing the /etc/named.conf file and then the zone and reverse files. Now it is giving me the error

rndc: connect failed: connection refused

everytime i try to stop the named service. I also tried various rndc commands but i get the same error message.

I tried removing DNS and then re installing it. I still get the same error. Can somebody help?
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 1
Reputation: csp is an unknown quantity at this point 
Solved Threads: 0
csp csp is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #8
Mar 3rd, 2006
rndc: connect failed: connection refused
please help me how to sort out this problem
my email-id is chandanswarup@yahoo.co.in
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5
Reputation: shinobi59 is an unknown quantity at this point 
Solved Threads: 0
shinobi59 shinobi59 is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #9
Apr 8th, 2006
Ok. So how does one generate a key -- what key generator. How would I find this in another post?

Shinobi

Originally Posted by CharlestonSW
Still having problems after making sure your rndc and named keys match? Here is what I did to solve the problem on my server.

1) Create /etc/rndc.key (use a key generator listed in the other posts to get your secret key)

key "rndckey" {
algorithm hmac-md5 ;
secret "MySecretKey";
};

2) Create /etc/rndc.conf (note the include of rndc.key, this ensures the named and rndc apps both have identical keys)

# Start of rndc.conf
options {
default-server localhost;
default-key "rndckey";
};

server localhost {
key "rndckey";
};

include "/etc/rndc.key";

3) Edit /etc/named.conf and change or add these sections:

options {
directory "/etc/named";
pid-file "/var/run/named.pid";
};

zone "localhost" {
allow-update { none; }; type master; file "localhost.zone"; };

.... blah,blah,blah.... more zones here....

include "/etc/rndc.key";

controls {
inet * allow { any; } keys { rndckey; };
};


4) Create /etc/named/localhost.zone

$TTL 86400
@ IN SOA @ root (
43 ; serial
10800 ; refresh
900 ; retry
604800 ; expire
86400 ; ttl
)



IN NS @
IN A 127.0.0.1
IN AAAA ::1


The winning combo was to use the include in both named.conf and rndc.conf so they key matches - AND - make sure a localhost zone file exists on the system. For some reason Bind9 was having issue with a hard-coded 127.0.0.1 in these files.


HTH,
Lance
Sr. Computer Geek
CharlestonSW.com
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5
Reputation: shinobi59 is an unknown quantity at this point 
Solved Threads: 0
shinobi59 shinobi59 is offline Offline
Newbie Poster

Re: DNS Problem - rndc: connect failed: connection refused

 
0
  #10
Apr 8th, 2006
Originally Posted by chetshot
hi people......finally the rndc bug is out of the stadium......i have found the solution ......
it depends on only the permissions of files and directories...
rndc .conf ........root.named....755
named.conf.......named.named.....755
also if there is errror like ....permission denied on named.pid after running ....named -g -p 53.....then u have to change permissions....of /var/run/named derectory......where the pid resides.....
? These are text files. Why would one need to make them executable?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the *nix Software Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC