wip
This commit is contained in:
parent
4871986ea7
commit
fa576f4b5c
2 changed files with 19 additions and 4 deletions
|
@ -1,7 +1,19 @@
|
||||||
|
% for view in views:
|
||||||
|
acl "${view['name']}" {
|
||||||
|
${' '.join(f'{e};' for e in view['acl'])}
|
||||||
|
};
|
||||||
|
% endfor
|
||||||
|
|
||||||
% for view in views:
|
% for view in views:
|
||||||
view "${view['name']}" {
|
view "${view['name']}" {
|
||||||
match-clients {${' '.join(f'{e}; ' for e in view['acl'])}};
|
match-clients { ${view['name']}; };
|
||||||
recursion yes;
|
recursion yes;
|
||||||
|
forward only;
|
||||||
|
forwarders {
|
||||||
|
1.1.1.1;
|
||||||
|
9.9.9.9;
|
||||||
|
8.8.8.8;
|
||||||
|
};
|
||||||
% for zone in zones:
|
% for zone in zones:
|
||||||
zone "${zone}" {
|
zone "${zone}" {
|
||||||
type master;
|
type master;
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
options {
|
options {
|
||||||
directory "/var/cache/bind";
|
directory "/var/cache/bind";
|
||||||
dnssec-validation auto;
|
dnssec-validation auto;
|
||||||
listen-on-v6 { any; };
|
|
||||||
|
listen-on-v6 { any; };
|
||||||
|
allow-query { any; };
|
||||||
|
|
||||||
max-cache-size 30%;
|
max-cache-size 30%;
|
||||||
querylog yes;
|
querylog yes;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue