From 15c12f47247dca5784c4a446889f73a46ebca680 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 15 Jun 2013 12:38:46 +0200 Subject: [PATCH] set forward-first on resolvers --- modules/unbound/templates/unbound.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index b3c634bb..e72514a0 100644 --- a/modules/unbound/templates/unbound.conf.erb +++ b/modules/unbound/templates/unbound.conf.erb @@ -52,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 -%> -- 2.39.2