Project

General

Profile

Bug #10507

Unable to use forwarders

Added by Jocelyn Viau 2 months ago. Updated 39 minutes ago.

Status:
Pull Request Review
Priority:
Normal
Assignee:
-
Category:
BIND
Target version:
-
Start date:
04/28/2020
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.4.5
Affected Architecture:

Description

When setting the forwarders in the settings tabs, the forwarders are added under the general "options" section.
However, when we create a View, a root zone with root hints is always added. The result is that any non-local zone query will use recursion instead of sending the query to the forwarders.

If we set Recursion=No in the View, any non-local query gets denied, which is normal. If we set Recursion=Yes, then the recursion is done by BIND and not forwarded to the forwarders. At this point there are NO zones defined in the Zones tab.

Shouldn't the 'zone "." { }' statement be added only if recursion is yes AND there are no forwarders configured under the Settings tab?

This is the named.conf file:

#Bind pfsense configuration
#Do not edit this file!!!

 key "rndc-key" {
        algorithm hmac-sha256;
        secret "...";
 };

 controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
 };

options {
        directory "/etc/namedb";
        pid-file "/var/run/named/pid";
        statistics-file "/var/log/named.stats";
        max-cache-size 256M;
        listen-on port 53 { any; };
        forwarders { 1.1.1.1;1.0.0.1; };

};

logging {
        channel custom {
                syslog daemon;
                print-time no;
                print-severity yes;
                print-category yes;
                severity debug 1;
                };
        category default { custom; };
};

view "default" {
        recursion yes;
        match-clients { any; };
        allow-recursion { any; };

        zone "." {
                type hint;
                file "/etc/namedb/named.root";
        };

};

History

#2 Updated by Jim Pingle 39 minutes ago

  • Status changed from New to Pull Request Review

Also available in: Atom PDF