X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Funbound%2Ftemplates%2Funbound.conf.erb;h=4da955ffd25a4e68659167f7e1e570be6a119410;hb=e05673fceab5b68e33fb5ed4661ede6217fb919e;hp=fe710ea916e09e8774cab7e85c3601d63257ac87;hpb=0e7f3f8bafd5509c7aaee25acdfb9e9753ba16ea;p=dsa-puppet.git diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index fe710ea9..4da955ff 100644 --- a/modules/unbound/templates/unbound.conf.erb +++ b/modules/unbound/templates/unbound.conf.erb @@ -6,7 +6,7 @@ server: verbosity: 1 -<% if @is_recursor && @client_ranges -%> +<% if @is_recursor && not @client_ranges.empty? -%> interface: 0.0.0.0 interface: ::0 @@ -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 -%> forward-zone: name: "." <% @ns.to_a.flatten.each do |nms| -%>