enable prefetch in unbound
[mirror/dsa-puppet.git] / modules / unbound / templates / unbound.conf.erb
index 8e06b7d..2caa955 100644 (file)
@@ -45,6 +45,9 @@ server:
        auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
        auto-trust-anchor-file: "/var/lib/unbound/29.172.in-addr.arpa.key"
 
+       prefetch: yes
+       prefetch-key: yes
+
 local-zone: "29.172.in-addr.arpa" nodefault
 forward-zone:
        name: "29.172.in-addr.arpa"
@@ -59,9 +62,7 @@ forward-zone:
 <% @ns.to_a.flatten.each do |nms| -%>
        forward-addr: <%= nms %>
 <% end -%>
-<% if @lsbmajdistrelease >= '7' -%>
        # This will actually only work starting with unbound 1.4.18 (wheezy has 1.4.17)
        # previously, forward-first was not implemented for the root zone.
        forward-first: yes
 <% end -%>
-<% end -%>