This commit is contained in:
mwiegand 2021-06-26 15:30:16 +02:00
parent 4871986ea7
commit fa576f4b5c
2 changed files with 19 additions and 4 deletions

View file

@ -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;

View file

@ -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;
};