Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed everything EXACTLY in this tutorial for setting up DNS. I set up everything on a blank server.

However, starting BIND9 failed:

rndc: connect failed: connection refused

I have Googled this, and it seems like there is not a good, solid answer.

share|improve this question
Alex: Please follow the suggestions Florin, Yves, and Unknown gave, and come back here with the results. (Assuming you don't figure it out in the meantime.) – Schof Nov 10 '09 at 0:32
Can you post your named.conf in here? and try to find a clue from syslog after start / restarting named service. – david Jan 22 '13 at 9:37
up vote 7 down vote accepted

Check the logs, especially /var/log/daemon.log

There's got to be a clue in there somewhere.

share|improve this answer

Review your named.conf file and your procedures. Check the named daemon logs. Most likely you didn't create an rndc key, or it has the wrong permissions.

Usually this command would help:

rndc-confgen -r /dev/urandom -a

share|improve this answer

Check whether you have SELinux or AppArmor, sometimes they mess with way file permissions are handled. /var/log/* should reflect that.

share|improve this answer

The answer is that I had "forwarders" in my named.conf.options file...and this was unrecognized.

share|improve this answer
I found the answer, and I did go through Florin's method. – Alex Nov 10 '09 at 0:33

Find rndc.key and ensure that it has rw file permissions for root and read for user bind. The location below is on Ubuntu 10.04 LTS, yours may vary.

-rw-r----- 1 root bind 77 Sep 17 17:31 /etc/bind/rndc.key
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.