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
8 roles = scope.lookupvar('site::roles')
10 roles['nagiosmaster'].each do |node|
11 scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |ip|
12 str += "\t" + ip + "/32;\n"
19 directory "/var/cache/bind";
21 auth-nxdomain no; # conform to RFC1035
22 listen-on { ! 127.0.0.1; any; };
23 listen-on-v6 { ! ::1; any; };
25 allow-transfer { none; };
26 allow-update { none; };
27 <% if classes.include?("named::geodns") -%>
28 blackhole { 192.168.0.0/16; 10.0.0.0/8; 172.16.0.0/12; };
34 str = "\tallow-recursion { " + allowed + " };\n"
35 str += "\tallow-query { " + allowed + " };\n"
41 dnssec-validation yes;
43 // Defaults are 100 and 10, causing lots and lots of tiny updates.
44 // This way, I hope, we'll get fewer (and thus bigger) updates. -- weasel
45 sig-signing-nodes 5000;
46 sig-signing-signatures 1000;
48 max-journal-size 100K;
54 file "/var/log/bind9/named-query.log" versions 4 size 40m;
58 category queries { queries; };
59 category lame-servers { null; };
62 file "/var/log/bind9/named-transfers.log" versions 4 size 40m;
66 category xfer-out { transfers; };
67 category notify { transfers; };
71 <% if scope.function_has_role(['dns_primary']) -%>
72 masters "easydns-masters" {
73 // https://cp.easydns.com/manage/domains/secondary/edit.php
78 // https://cp.easydns.com/manage/domains/secondary/edit.php
81 key 82.195.75.91-key ;
84 masters "rcode0-masters" {
85 83.136.34.7; // rcode0.net ipv4 ntfy
86 2A02:850:8::6; // rcode0.net ipv6 ntfy
89 83.136.34.0/27; // rcode0.net ipv4 axfr
90 2A02:850:8::/47; // rcode0.net ipv6 axfr
93 masters "dnsnode-masters" {
94 192.36.144.222; // zork-b.sth.dnsnode.net
95 192.36.144.218; // zork-c.sth.dnsnode.net
98 192.36.144.222; // zork-b.sth.dnsnode.net
99 192.36.144.218; // zork-c.sth.dnsnode.net
102 masters "dnsnodeapi-masters" {
103 194.146.105.24; // zorknds-b.sth.dnsnode.net
105 194.146.105.25; // zorknds-c.sth.dnsnode.net
108 acl "dnsnodeapi-ACL" {
109 // 194.146.105.24; // zorknds-b.sth.dnsnode.net
110 // 2a01:3f0:0:27::24;
111 // 194.146.105.25; // zorknds-c.sth.dnsnode.net
112 // 2a01:3f0:0:28::25;
113 key netnod-debian-20171122 ;
117 include "/etc/bind/named.conf.puppet-shared-keys";
118 include "/etc/bind/named.conf.puppet-misc";