Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rndc: connect failed: connection refused

Status
Not open for further replies.

santanudas

Technical User
Mar 18, 2002
121
GB
Hi guys,

I got a problem: rndc not connecting ‘named’
I’m using FC-2 and I got a slave zone. ‘named’ service is running but getting error when to stop the named:

[root@www root]# service named restart
Stopping named: rndc: connect failed: connection refused [FAILED]
Starting named: [ OK ]

Same message is coming up if I try to ‘rndc reload’:

[root@www root]# rndc reload
rndc: connect failed: connection refused

But the DNS server is running okay so far. Has anybody got any idea what might be the problem? What am I missing?

Thanks in advance for your help.
 
Is you /etc/rndc.key (or however it is specified in your named.conf) set up correctly?
 
You may also need a stanza like this in your named.conf:
Code:
controls {
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
 
here is my named.conf for you guys to check:


options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
statistics-file "/var/run/named.stats";

query-source address * port 53;
forward only; //forward first;
forwarders {
10.0.11.1;
};
};

controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

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

zone "0.0.127.in-addr.arpa" IN {
type master;
file "lh/127.0.0";
allow-update { none; };
};

zone "littlehome.co.uk" IN {
type slave;
file "lh/littlehome";
//allow-update { none; };
allow-query { any; };
masters { 209.16.129.187; 65.155.207.50; };
};

include "/etc/rndc.key;"


Is that okay? Ohhh, yes, I'm runing DNS within chroot jail.
Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top