-1
$/etc/init.d/bind9 restart
Stopping domain name service...: bind9rndc: connect failed: 127.0.0.1#953: connection refused
.
Starting domain name service...: bind9.

(By the way, this is a continuation of the question here: Can someone see why my DNS won't work? I followed everything in the tutorial, but won't work)

1
  • 1
    There is insufficient information here to be able to take a reasonable stab at an answer, and you've been given guidance on what information to provide in your previous question, which should have been extended rather than asking another question.
    – womble
    Nov 6, 2009 at 23:53

2 Answers 2

4

You need to configure Bind and rndc if you want that rndc talk to Bind.

You should have something like that in your named.conf:

controls {
  inet 127.0.0.1 allow { localhost; } keys { <key-name>; };
};

...

key "<key-name>" {
  algorithm hmac-md5;
  secret "<key-value>";
};

and something like that in your rndc.conf:

options {
  default-server  localhost;
  default-key     "<key-name>";
};

...

key "<key-name>" {
  algorithm hmac-md5;
  secret "<key-value>";
};

But you should read named.conf and rndc.conf manuals first ! :)

man named.conf
man rndc.conf
1
  • +1 for "But you should read named.conf and rndc.conf manuals first". :) Nov 7, 2009 at 23:29
1

#953 is the rndc socket for controlling bind. the restart is giving you an error because it tried to connect to the socket and couldn't, probably because bind wasn't actually running.

After the startup script is finished running, does ps auxww show a 'named' process running? if so, and restart doesn't work, check your rndc key setup. If named isn't starting at all, look in the logs for why.

based on your other question you should do some reading before attempting to run dns. I recommend the cricket liu "DNS & Bind" O'Reilley book.

1
  • Yes, it is running. bind 16922 0.0 6.8 215020 22452 ? Ssl 09:49 0:00 /usr/sbin/named -u bind
    – Alex
    Nov 6, 2009 at 22:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .