Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-27-2007, 03:21 AM
|
#16
|
LQ Newbie
Registered: May 2007
Location: Santiago, Chile
Distribution: RH
Posts: 2
Rep:
|
I had exactly the same problem, and I've been battling it for days, until I eventually hit on the solution... (I also posted this dame info in another thread here, regarding the same issue)
I tried everything: I checked all over the Internet, and found many people with the same problem, but few seem to have solved it, and when they do, they don't bother posting the solution!
I found several references to checking the named.conf and rndc.conf files, to make sure they refer to the same key, port and localhost.
I found several other references to checking that named really is listening on port 953.
But I found no references to what is ACTUALLY the problem in many cases: Even though the rndc.key matches in named.conf and rndc.conf, and named really is listening on port 953, none of that helps if iptables is blocking the communications!
In my case, the solution was simple (after beating my head against the wall for three days...)
Just tell iptables to allow your system to talk to itself on port 953!
Like this:
# iptables -I RH-Lokkit-0-50-INPUT -p tcp -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT --dport 953
(In my case, I'm using a firewall configuration that sets up the table "RH-Lokkit-0-50-INPUT": it might be different in your case!!! )
The IP address “127.0.0.1” is, of course, the loopback address for the system itself, and usually has the name “localhost”.
Yeah, it seems rather stupid that you have to specifically allow localhost LOOPBACK address to talk to itself on port 953, but that's exactly what the problem was!
If you want to make this permanent, then find out from where iptables loads its default set of rules at boot time, and insert the following line in your iptables file:
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp -s 127.0.0.1 -d 127.0.0.1 --dport 953 -j ACCEPT
This should probably go in probably from /etc/sysconfig/iptables, but if you are not sure then you can look in the init script that launches iptables, like this:
# more /etc/init.d/iptables
Look for a line that says something like "IPTABLES_CONFIG=/etc/sysconfig/iptables". That will tell you where it loads the default configuration from. That's the file you need to edit, and insert the line above at the appropriate point (before the first “REJECT” rule.
I sure hope this helps someone! I know I would have LOVED to have this info three days ago...
|
|
|
07-25-2008, 06:03 PM
|
#17
|
LQ Newbie
Registered: Jul 2008
Posts: 1
Rep:
|
rndc: connect failed: ::1#953: connection refused
I recently migrated our primary named and mail server at work, from CentOS 4.6 to 5.2 and received the following error.
rndc: connect failed: ::1#953: connection refused
After reading this among other forums, I had no luck what I then decided to do was look at the old server and noticed the only line in the old servers /etc/hosts was something like
127.0.0.1 host.mydomain.com localhost.localdomain localhost
The new server only had
::1 localhost.localdomain localhost
Once I added the line from the old server and restarted named the problem was fixed. I figure rndc and named ask the localhost who it is and with only an IPv6 line in the hosts, it didn't know it was localhost 127.0.0.1, so had no pointer to bind to.
Thought this may help some of you guys.
Cheers,
|
|
|
11-26-2008, 08:29 AM
|
#18
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Rep:
|
Hey Guys,
Thanks for all the suggestions... I think they may have helped.
However, that alond didn't do it. The kicker for me was a good ol' fashioned computer reboot haha!
|
|
|
01-11-2010, 06:54 AM
|
#19
|
LQ Newbie
Registered: Jan 2010
Posts: 2
Rep:
|
make sure this also
in the named.conf file this part should be there to overcome the problem with 953
controls {
inet 127.0.0.1 port 953
allow {127.0.0.1;} keys { "rndckey";};
};
you can also copy this from the rndc.conf
|
|
|
01-02-2014, 08:19 AM
|
#20
|
LQ Newbie
Registered: Jan 2014
Posts: 1
Rep:
|
Did you try telnetting to localhost on port 953 to see if it will connect? Or checking your firewall ruleset?
I stuffed around with this for about 2 hours before I realized I needed to open the port with iptables
|
|
|
All times are GMT -5. The time now is 12:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|