X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Ftemplates%2Funbound.conf.erb;h=4f0160303bf8dcc044786b9083b1f843f7e0be42;hb=0db7124214eae2030c3aa960211eb269b3b9acd9;hp=080bf9516e7f15b8469d97fce9673b3b1157d589;hpb=ba4f3445de0a6052344f998cb29f38d525a52bdc;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index 080bf9516..4f0160303 100644 --- a/modules/unbound/templates/unbound.conf.erb +++ b/modules/unbound/templates/unbound.conf.erb @@ -52,6 +52,12 @@ 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 -%> + # XXX : we probably ought to forward 172.29 reverse queries to our nameserver # if our forwarders are not ours. <% else -%> @@ -63,6 +69,3 @@ forward-zone: forward-host: ns3.debian.org forward-host: ns4.debian.com <% end -%> -<% if hostname == "zappa" -%> -edns-buffer-size: 512 -<% end -%>