#include <infodrom.style>
#include <debian.style>

<page title="Problem with Reloading BIND">

<h1 align=center>Problem with Reloading BIND</h1>

<h3 align=center>Connection refused</h3>

<p>After upgrading from bind8 to bind9 on a Debian system (stable is
fine and sufficient unfortunately) you may notice a strange error
message when trying to reload the nameserver with either of the
following methods:</p>

<p><pre>
   sh /etc/init.d/bind9 reload
   rndc reload
</pre></p>

<p>The result is</p>

<p><pre>
   rndc: connect failed: 127.0.0.1#953: connection refused
</pre></p>

<p>Executive Summary: I have no idea what has caused this, but playing
with the configuration helped.</p>

<p>On the internet, it has been suggested to purge the entire bind8
and bind9 system, i.e. its packages, and reinstall bind9 from
scratch.  Chances are good that it's working afterwards.</p>

<p>What has helped as well, is commenting out the following section in
named.conf.options:</p>

<p><pre>
   // Only permit being used as a nameserver by the local system
   //
   allow-recursion {
           127.0.0.1;
   };
</pre></p>

<p>Kill the nameserver (stopping doesn't work either), start it again
and everything is fine.  Now activate the above again, restart the
nameserver and everything is still fine.</p>

</page>

# Local variables:
# mode: indented-text
# end:
