wip
This commit is contained in:
parent
e799cf8c6c
commit
0166377f78
1 changed files with 13 additions and 0 deletions
|
@ -7,20 +7,33 @@ acl "${view['name']}" {
|
||||||
% for view in views:
|
% for view in views:
|
||||||
view "${view['name']}" {
|
view "${view['name']}" {
|
||||||
match-clients { ${view['name']}; };
|
match-clients { ${view['name']}; };
|
||||||
|
|
||||||
|
% if view['is_internal']:
|
||||||
recursion yes;
|
recursion yes;
|
||||||
|
% else:
|
||||||
|
recursion no;
|
||||||
|
rate-limit {
|
||||||
|
responses-per-second 2;
|
||||||
|
window 25;
|
||||||
|
};
|
||||||
|
% endif
|
||||||
|
|
||||||
forward only;
|
forward only;
|
||||||
forwarders {
|
forwarders {
|
||||||
1.1.1.1;
|
1.1.1.1;
|
||||||
9.9.9.9;
|
9.9.9.9;
|
||||||
8.8.8.8;
|
8.8.8.8;
|
||||||
};
|
};
|
||||||
|
|
||||||
% for zone in zones:
|
% for zone in zones:
|
||||||
zone "${zone}" {
|
zone "${zone}" {
|
||||||
type master;
|
type master;
|
||||||
file "/var/lib/bind/${view['name']}/db.${zone}";
|
file "/var/lib/bind/${view['name']}/db.${zone}";
|
||||||
};
|
};
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
include "/etc/bind/named.conf.default-zones";
|
include "/etc/bind/named.conf.default-zones";
|
||||||
include "/etc/bind/zones.rfc1918";
|
include "/etc/bind/zones.rfc1918";
|
||||||
};
|
};
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
|
|
Loading…
Reference in a new issue