diff --git a/bundles/bind/files/named.conf.local b/bundles/bind/files/named.conf.local index c3163da..a5c156c 100644 --- a/bundles/bind/files/named.conf.local +++ b/bundles/bind/files/named.conf.local @@ -1,7 +1,19 @@ +% for view in views: +acl "${view['name']}" { + ${' '.join(f'{e};' for e in view['acl'])} +}; +% endfor + % for view in views: view "${view['name']}" { - match-clients {${' '.join(f'{e}; ' for e in view['acl'])}}; + match-clients { ${view['name']}; }; recursion yes; + forward only; + forwarders { + 1.1.1.1; + 9.9.9.9; + 8.8.8.8; + }; % for zone in zones: zone "${zone}" { type master; diff --git a/bundles/bind/files/named.conf.options b/bundles/bind/files/named.conf.options index 71c098e..8a64abc 100644 --- a/bundles/bind/files/named.conf.options +++ b/bundles/bind/files/named.conf.options @@ -1,7 +1,10 @@ options { - directory "/var/cache/bind"; - dnssec-validation auto; - listen-on-v6 { any; }; + directory "/var/cache/bind"; + dnssec-validation auto; + + listen-on-v6 { any; }; + allow-query { any; }; + max-cache-size 30%; querylog yes; };