diff --git a/bundles/bind/files/named.conf.local b/bundles/bind/files/named.conf.local index a5c156c..749ce14 100644 --- a/bundles/bind/files/named.conf.local +++ b/bundles/bind/files/named.conf.local @@ -7,20 +7,33 @@ acl "${view['name']}" { % for view in views: view "${view['name']}" { match-clients { ${view['name']}; }; + + % if view['is_internal']: recursion yes; + % else: + recursion no; + rate-limit { + responses-per-second 2; + window 25; + }; + % endif + forward only; forwarders { 1.1.1.1; 9.9.9.9; 8.8.8.8; }; + % for zone in zones: zone "${zone}" { type master; file "/var/lib/bind/${view['name']}/db.${zone}"; }; % endfor + include "/etc/bind/named.conf.default-zones"; include "/etc/bind/zones.rfc1918"; }; + % endfor