Note that exim contains tracker-specific configuration
[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 <% if not @firewall_blocks_dns %>
47         auto-trust-anchor-file: "/var/lib/unbound/29.172.in-addr.arpa.key"
48 <% end -%>
49
50         prefetch: yes
51         prefetch-key: yes
52
53
54 <% if not @firewall_blocks_dns %>
55 local-zone: "29.172.in-addr.arpa" nodefault
56 forward-zone:
57         name: "29.172.in-addr.arpa"
58         forward-host: geo1.debian.org
59         forward-host: geo2.debian.org
60         forward-host: geo3.debian.org
61 <% end -%>
62
63 # recursive: <%= @is_recursor ? "y" : "n" %>
64 <% if not @is_recursor -%>
65 forward-zone:
66         name: "."
67 <% @ns.to_a.flatten.each do |nms| -%>
68         forward-addr: <%= nms %>
69 <% end -%>
70         forward-first: yes
71 <% end -%>