Recursion setting for bind9

Crist Clark cjc+bind-users at pumpky.net
Wed Sep 29 16:29:16 UTC 2021


Maybe a little confused here, but BIND won’t try another server if it gets
an answer. It will only try another forwarder if the query fails.

On Wed, Sep 29, 2021 at 12:21 AM Sonal Pahuja <sonal.s.pahuja at oracle.com>
wrote:

> 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
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> unsubscribe from this list
>
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210929/b86f42cc/attachment.htm>


More information about the bind-users mailing list