acl "ally" {
127.0.0.1/32;
10.0.0.0/8;
172.16.0.0/12;
192.168.0.0/16;
};
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See
www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forward first;
forwarders {
192.168.101.150; #ВМ с pihole
127.0.2.1; #dnscrypt на самой ВМ на всякий случай
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See
https://www.isc.org/bind-keys
//========================================================================
dnssec-validation yes;
version "unknown";
max-cache-size 50%;
recursion yes;
allow-recursion { ally; };
listen-on {
127.0.0.1;
ally;
};
listen-on-v6 { none; };
allow-query { any; };
allow-query-cache { any; };
auth-nxdomain no;
statistics-file "/var/lib/bind/named.stats";
};