Recursion setting for bind9

Sonal Pahuja sonal.s.pahuja at oracle.com
Wed Sep 29 07:21:07 UTC 2021


Hi All,

Is there any option to set recursion =1 in named.conf file for the zone. I just want bind9 to do recursion only once.
If bind9 receives answer from one of the forwarders then it should not do recursion (forward query) to any other forwarder IP.

Below is my snapshot of my named.conf file

options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { any; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named.stats";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; !blocked; allowed; };
//      allow-query     { localhost; };
        recursion yes;
        zone-statistics            yes;
        dnssec-enable no;
        dnssec-validation no;
auth-nxdomain no;
        // additional-from-auth no;
         // additional-from-cache no;
        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";


};
zone "e164.arpa" IN {
type forward ;
forwarders { 127.0.0.1 port 49153;   199.165.24.21 port 49153; };
forward only;
};

Regards,
Sonal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210929/fe0ea579/attachment-0001.htm>


More information about the bind-users mailing list