Remove wheezy-supporting cruft
[mirror/dsa-puppet.git] / modules / unbound / templates / unbound.conf.erb
1 ##
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
4 ##
5
6 server:
7         verbosity: 1
8
9 <% if (@is_recursor and (not @client_ranges.empty?)) -%>
10         interface: 0.0.0.0
11         interface: ::0
12
13         interface-automatic: yes
14
15         access-control: 0.0.0.0/0 refuse
16         access-control: ::0/0 refuse
17         access-control: 127.0.0.0/8 allow
18         access-control: ::0/0 refuse
19         access-control: ::1 allow
20         access-control: ::ffff:127.0.0.1 allow
21 <% @client_ranges.to_a.flatten.each do |net| -%>
22         access-control: <%= net -%> allow
23 <% end -%>
24 <% end -%>
25
26         #chroot: ""
27
28         hide-identity: yes
29         hide-version: yes
30
31         # Do not query the following addresses. No DNS queries are sent there.
32         # List one address per entry. List classless netblocks with /size,
33         # do-not-query-address: 127.0.0.1/8
34         # do-not-query-address: ::1
35
36         # if yes, the above default do-not-query-address entries are present.
37         # if no, localhost can be queried (for testing and debugging).
38         # do-not-query-localhost: yes
39
40         # File with trusted keys, kept uptodate using RFC5011 probes,
41         # initial file like trust-anchor-file, then it stores metadata.
42         # Use several entries, one per domain name, to track multiple zones.
43         # auto-trust-anchor-file: ""
44         auto-trust-anchor-file: "/var/lib/unbound/root.key"
45         auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
46         auto-trust-anchor-file: "/var/lib/unbound/29.172.in-addr.arpa.key"
47
48         prefetch: yes
49         prefetch-key: yes
50
51 local-zone: "29.172.in-addr.arpa" nodefault
52 forward-zone:
53         name: "29.172.in-addr.arpa"
54         forward-host: geo1.debian.org
55         forward-host: geo2.debian.org
56         forward-host: geo3.debian.org
57
58 # recursive: <%= @is_recursor ? "y" : "n" %>
59 <% if not @is_recursor -%>
60 forward-zone:
61         name: "."
62 <% @ns.to_a.flatten.each do |nms| -%>
63         forward-addr: <%= nms %>
64 <% end -%>
65         forward-first: yes
66 <% end -%>