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:
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue