Disable recursive queries

How to disable recursive queries on Debian? This is very simple but confusing while searching on Internet as most of the articles are out of date.

I assume that you are running latest Debian, Lenny. Just edit /etc/bind9/named.conf.options file and modify it like the one below:

options {
        directory "/var/cache/bind";
        auth-nxdomain no;    # conform to RFC1035
        listen-on {
               your ns1 IP;
                your ns2 IP;
        allow-recursion { "localhost"; };

Restart bind and you've done!

Posted on: 20/01/2011

If you want to leave a comment please Login or Register