LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-21-2001, 11:52 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
Bind 9 rndc connection refused.


Hello,

Running RH7.1 with Bind 9.
Bind is running fine but haveing trouble configuring rndc.
When I run the command:# rndc reload
It says: rndc: connect: connection refused

I have tried several different things from articales on the net but nothing works.
Thanks for your help.

Here are my files:

/etc/rndc.conf
options {
default-server localhost;
default-key "rndc-key";
};

Key "rndc-key" {
algorithm hmac-md5;
secret "Ytzd/Fjm2i2smxAwoTuiFq==";
};

********************
/etc/rndc.key
key "rndc" {
algorithm hmac-md5;
secret "Ytzd/Fjm2i2smxAwoTuiFq=="
};

********************
/etc/named.conf
options {
directory "/etc/named.d";
};

controls {
inet * allow { any; } keys { "rndc-key"; };

};

Key "rndc-key" {
algorithm hmac-md5
secret "Ytzd/Fjm2i2smxAwoTuiFq==";
};
 
Old 11-23-2001, 02:09 PM   #2
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I found the solution

Configuring rndc for bind 9
Solution for connection refused based on notes from: http://www.mail-archive.com/comp-pro.../msg03950.html

This simple little process ended up being a real pain because all the documentation from man to O'Reilly didn't seem to work for me.
However, I finally found some snippets that worked. The solution seems to be in the order in which the statements are made in each file.

Create a new file, /etc/rndc.conf and add the snip below.
Your secret code must be duplicated in each file. To create a secret code, you can use the command mmencod. Type your secret code, hit enter and your secret code is created.

You may need to restart your server for the changes to take affect. After restarting, to start named you can type the path of the server, /usr/sbin/named. Mine is located at /usr/local/sbin/named. Type wheris named, to find where named is on your server.


-------- rndc.conf snip ----------

options {
default-server localhost;
default-key "rndc-key";
};

server localhost {
key "rndc-key";
};

key "rndc_key" {
algorithm hmac-md5;
secret "put_code_here" ; # to make a secret code, use:
}; # % mmencode
# foobarsecret
# Zm9vYmFyc2VjcmV0


------- named.conf snip ----------

options {
directory "/var/named"; #my dir is /etc/named.d
};


controls { inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};

key "rndc_key" {
algorithm hmac-md5;
secret "put_code_here" ; # to make a secret code, use:
}; # % mmencode
# foobarsecret
# Zm9vYmFyc2VjcmV0



Good Luck!
 
Old 10-15-2010, 02:47 PM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
I battled this one as well, make sure you remove the (.) out of
rndc.key make it rndckey or it will fail to work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RNDC connection refused error cas1106 Linux - Newbie 1 04-23-2006 12:40 PM
rndc: connect failed: connection refused jkmartha Linux - Software 0 06-20-2005 01:35 AM
rndc: connection refused - fedora core 2 granny Linux - Networking 11 10-28-2004 11:38 AM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM
rndc: connect failed: connection refused Atroxic Linux - Networking 1 10-24-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration