X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fnamed%2Ftemplates%2Fnamed.conf.options.erb;h=8bc2f87d1065dcbf2df9439080e1f680a858a785;hb=b783bf06da0040034c506ec529a625ed074b1c01;hp=4224254d36a6b61b6073952415bc32642166f4ed;hpb=3eb533e5499e66423bafdedaf6c7d08ead1772de;p=mirror%2Fdsa-puppet.git diff --git a/modules/named/templates/named.conf.options.erb b/modules/named/templates/named.conf.options.erb index 4224254d3..8bc2f87d1 100644 --- a/modules/named/templates/named.conf.options.erb +++ b/modules/named/templates/named.conf.options.erb @@ -20,12 +20,8 @@ options { directory "/var/cache/bind"; auth-nxdomain no; # conform to RFC1035 -<% if classes.include?("named::recursor") -%> - listen-on-v6 { any; }; -<% else -%> listen-on { ! 127.0.0.1; any; }; listen-on-v6 { ! ::1; any; }; -<% end -%> allow-transfer { none; }; allow-update { none; }; @@ -35,9 +31,6 @@ options { <%= allowed='Nagios; ' - if classes.include?('named::recursor') - allowed += 'localnets; ' - end str = "\tallow-recursion { " + allowed + " };\n" str += "\tallow-query { " + allowed + " };\n" @@ -49,6 +42,16 @@ options { dnssec-enable yes; dnssec-validation yes; <% end -%> + +<% if %w{senfl ravel orff diamond rietz}.include?(hostname) -%> + rate-limit { + responses-per-second 25; + window 5; + slip 5; + qps-scale 250; + }; +<% end -%> + }; logging {