The dns resolution with 8.8.8.8 works fine with "forward first" if
8.8.8.8 is working but for testing i blocked with an
intermediate firewall the dns requests to the forwarder and two things
happened (the second one is bad).
1) If the firewall reset the connection to 8.8.8.8 bind fallbacks on its
root servers and this is good
2) If the firewall drop the connection to 8.8.8.8 bind does NOT
fallback on its root servers and this is a bad thing cause in this
way i was testing a network outage for my forwarder.
below my config
Hi attach also che config
/etc/resolv.conf
search domain.dom
nameserver 127.0.0.1
named.conf
acl "trusted" {
127.0.0.0/8;
192.168.1.0/24;
};
options {
directory "/var/bind";
pid-file "/run/named/named.pid";
/*
https://www.isc.org/solutions/dlv >=bind-9.7.x only */
//bindkeys-file "/etc/bind/bind.keys";
session-keyfile "/var/bind/session.key";
//listen-on-v6 { ::1; };
//listen-on { 127.0.0.1; };
masterfile-format text;
allow-query {
/*
* Accept queries from our "trusted" ACL. We will
* allow anyone to query our master zones below.
* This prevents us from becoming a free DNS server
* to the masses.
*/
trusted;
};
allow-query-cache {
/* Use the cache for the "trusted" ACL. */
trusted;
};
allow-recursion {
/* Only trusted addresses are allowed to use recursion.
*/ trusted;
};
allow-transfer {
/* Zone tranfers are denied by default. */
none;
};
allow-update {
/* Don't allow updates, e.g. via nsupdate. */
none;
};
forward first;
forwarders {
8.8.8.8;
};
};
zone "." in {
type hint;
file "/var/bind/named.cache";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
notify no;
};
End of named.conf