X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Ftemplates%2Funbound.conf.erb;h=4f0160303bf8dcc044786b9083b1f843f7e0be42;hb=757a3f72fd630ed38e2f5da4c16825ba6d41cce3;hp=b3c634bb46b851e61d8f98822e47429b3548da9f;hpb=34751cc016e5537200e8ff27914914e35209e77f;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index b3c634bb4..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 -%>