Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th April 2006, 06:59
Finchwizard Finchwizard is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stopping domain name service: namedrndc: connect failed: connection refused

I've just installed the Master DNS.

I did do what the comments said when I started the install with making the directory /var/lib/named/var/run/bind/run

The permissions on that directory are right, as well as the "-u bind -t /var/lib/named" in /etc/init.d/bind9

It was working, I've restarted, double and triple checked everything.

Can someone help before I throw the thing out the window.
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2006, 07:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Are you logged in as root, not sudo?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th April 2006, 00:05
Finchwizard Finchwizard is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Are you logged in as root, not sudo?
Yes, I'm using Debian 3.1, not Ubuntu or anything.

It seems to work, then when I try adding things to the config, it starts doing it again, after removing the lines I just added, and then restarting it again, it gives the same errors.

It gives the error if I stop or restart, yet it's fine if it just starts.
Reply With Quote
  #4  
Old 11th April 2006, 00:45
Finchwizard Finchwizard is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After Regenerating the rndc key and changing named.conf to reflect it.

Also, looking in the /etc/init.d/bind9 script, shouldn't the other values be changed to the right paths?

Quote:
case "$1" in
start)
echo -n "Starting domain name service: named"

modprobe capability >/dev/null 2>&1 || true

# dirs under /var/run can go away on reboots.
mkdir -p /var/lib/named/var/run/bind/run
chmod 775 /var/lib/named/var/run/bind/run
chown bind:bind /var/lib/named/var/run/bind/run >/var/lib/named/dev/null 2>&1 || true

if [ ! -x /usr/sbin/named ]; then
echo "named binary missing - not starting"
exit 1
fi
if start-stop-daemon --start --quiet --exec /usr/sbin/named \
--pidfile /var/lib/named/var/run/bind/run/named.pid -- $OPTIONS; then
if [ -x /sbin/resolvconf ] ; then
echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo
fi
fi
echo "."
;;
Something like that? To say where the PID file is and to recreate the /var/run/bind/run directory again?

I changed mine and it's seemed to have fixed it too.
Just wondering if that could be the problem
Reply With Quote
  #5  
Old 11th April 2006, 14:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by Finchwizard
It seems to work, then when I try adding things to the config, it starts doing it again, after removing the lines I just added, and then restarting it again, it gives the same errors.

It gives the error if I stop or restart, yet it's fine if it just starts.
When you edit named.conf, make sure you have a line break at the end, otherwise BIND won't start.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 12th April 2006, 00:04
Finchwizard Finchwizard is offline
Junior Member
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I did have name breaks, just something was going weird and when I changed the other things in the init script they worked and I'm not having the problem as much.

Could also mention in the How To to make use of 'named-checkconf' it's handy for identifying those errors someone might have.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bind9 don't restart : rndc: connect failed: connection refused burtathis Installation/Configuration 4 10th October 2006 15:04
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30
UebiMiau login puntjuh Installation/Configuration 13 14th March 2006 18:24
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 17:28


All times are GMT +2. The time now is 01:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.