]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/unbound/templates/unbound.conf.erb
set forward-first on resolvers
[dsa-puppet.git] / modules / unbound / templates / unbound.conf.erb
index e8e8b581bb4560f408855ccb6fe1e24d3d029fad..e72514a07d0669930c640cc6247599b7e8bb2791 100644 (file)
@@ -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,6 +52,10 @@ forward-zone:
 <% @ns.to_a.flatten.each do |nms| -%>
        forward-addr: <%= nms %>
 <% end -%>
+<% if @lsbmajdistrelease >= '7' -%>
+       forward-first: yes
+<% end -%>
+
 # XXX : we probably ought to forward 172.29 reverse queries to our nameserver
 # if our forwarders are not ours.
 <% else -%>
@@ -62,6 +67,3 @@ forward-zone:
        forward-host: ns3.debian.org
        forward-host: ns4.debian.com
 <% end -%>
-<% if hostname == "zappa" -%>
-edns-buffer-size: 512
-<% end -%>