2 // THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 // USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
9 scope.lookupvar('site::localinfo').keys.sort.each do |node|
10 if scope.lookupvar('site::localinfo')[node]['nagiosmaster']
11 scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |ip|
12 str += "\t" + ip + "/32;\n"
20 directory "/var/cache/bind";
22 auth-nxdomain no; # conform to RFC1035
23 <% if classes.include?("named::recursor") -%>
24 listen-on-v6 { any; };
26 listen-on { ! 127.0.0.1; any; };
27 listen-on-v6 { ! ::1; any; };
30 allow-transfer { none; };
31 allow-update { none; };
32 <% if classes.include?("named::geodns") -%>
33 blackhole { 192.168.0.0/16; 10.0.0.0/8; 172.16.0.0/12; };
38 if classes.include?('named::recursor')
39 allowed += 'localnets; '
42 str = "\tallow-recursion { " + allowed + " };\n"
43 str += "\tallow-query { " + allowed + " };\n"
48 <% if classes.include?('named::authoritative') or classes.include?('named::geodns') -%>
50 dnssec-validation yes;
57 <% if classes.include?('named::geodns') -%>
58 file "/var/log/bind9/geoip-query.log" versions 4 size 40m;
60 file "/var/log/bind9/named-query.log" versions 4 size 40m;
65 category queries { queries; };
66 category lame-servers { null; };