Header RSS Feed
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Solving Bind9 reload errors after Debian upgrade to Squeeze
Thursday - May 17th 2012 - by - (0 comments)

By upgrading a Debian server from Lenny to Squeeze, the version of the DNS name server Bind changes from 8.4.7 to 9.7.3.
If the same configuration files are re-used, bind will have problems to reload the configuration. While it worked fine under Debian Lenny, errors now appear on Squeeze.

The errors look like these:

# /etc/init.d/bind9 reload
Reloading domain name service...: bind9rndc: connect failed: connection refused

# rndc reload
rndc: connect failed: connection refused

The port 953 is used for the rndc (control-) command, usually used for reloading the bind server.

In /etc/bind there is a file called rndc.key. This file (or the content) need to be included in named.conf or named.conf.options. Furthermore the control definition needs to be added, so that rndc listens on port 953.
I defined both in named.conf.options:

# cat named.conf.options
options {

key "rndc-key" {
        algorithm hmac-md5;
        secret "xxxYOURSECRETKEYxxx==";

controls {
        inet port 953 allow {; } keys { rndc-key; };

After a bind9 restart, the config could be successfully reloaded again:

# /etc/init.d/bind9 reload
Reloading domain name service...: bind9.

# rndc reload
server reload successful


Add a comment

Show form to leave a comment

Comments (newest first):

No comments yet.

Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6939 Days
until Death of Computers