From 9cc83fd1c7a09dd062f510ad4ac4a311b9208dc0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Apr 2013 08:43:24 +0200 Subject: [PATCH] Failsafe --- modules/unbound/templates/unbound.conf.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index fe710ea9..17683a86 100644 --- a/modules/unbound/templates/unbound.conf.erb +++ b/modules/unbound/templates/unbound.conf.erb @@ -44,7 +44,8 @@ server: auto-trust-anchor-file: "/var/lib/unbound/root.key" auto-trust-anchor-file: "/var/lib/unbound/debian.org.key" -<% if (not @is_recursor) and @ns -%> +# recursive: <%= @is_recursor ? "y" : "n" %> +<% if (not @is_recursor) and (not @ns.empty?) -%> forward-zone: name: "." <% @ns.to_a.flatten.each do |nms| -%> -- 2.39.2