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 {
                127.0.0.1;
               your ns1 IP;
                your ns2 IP;
        };
        allow-recursion { "localhost"; };
};

Restart bind and you've done!

Posted on: 20/01/2011








0 Comments
If you want to leave a comment please Login or Register