]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/unbound/templates/unbound.conf.erb
zappa can now do larger dns
[dsa-puppet.git] / modules / unbound / templates / unbound.conf.erb
index 4da955ffd25a4e68659167f7e1e570be6a119410..b3c634bb46b851e61d8f98822e47429b3548da9f 100644 (file)
@@ -6,7 +6,7 @@
 server:
        verbosity: 1
 
-<% if @is_recursor && not @client_ranges.empty? -%>
+<% if (@is_recursor and (not @client_ranges.empty?)) -%>
        interface: 0.0.0.0
        interface: ::0
 
@@ -43,6 +43,7 @@ server:
        # auto-trust-anchor-file: ""
        auto-trust-anchor-file: "/var/lib/unbound/root.key"
        auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
+       auto-trust-anchor-file: "/var/lib/unbound/29.172.in-addr.arpa.key"
 
 # recursive: <%= @is_recursor ? "y" : "n" %>
 <% if not @is_recursor -%>
@@ -51,7 +52,14 @@ forward-zone:
 <% @ns.to_a.flatten.each do |nms| -%>
        forward-addr: <%= nms %>
 <% end -%>
-<% end -%>
-<% if hostname == "zappa" -%>
-edns-buffer-size: 512
+# XXX : we probably ought to forward 172.29 reverse queries to our nameserver
+# if our forwarders are not ours.
+<% else -%>
+local-zone: "29.172.in-addr.arpa" nodefault
+forward-zone:
+       name: "29.172.in-addr.arpa"
+       forward-host: ns1.debian.org
+       forward-host: ns2.debian.org
+       forward-host: ns3.debian.org
+       forward-host: ns4.debian.com
 <% end -%>