X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Ftemplates%2Funbound.conf.erb;h=a8001903e6f558f99a54b2ac5f84886a453029fb;hb=146cc9cdb25153a49c3923710ca598bd939328b4;hp=fe710ea916e09e8774cab7e85c3601d63257ac87;hpb=0e7f3f8bafd5509c7aaee25acdfb9e9753ba16ea;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index fe710ea91..a8001903e 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 and (not @client_ranges.empty?)) -%> interface: 0.0.0.0 interface: ::0 @@ -44,12 +44,22 @@ 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| -%> forward-addr: <%= nms %> <% end -%> +# XXX : we probably ought to forward 172.29 reverse queries to our nameserver +# if our forwarders are not ours. +<% else -%> +forward-zone: + name: "29.172.in-addr.arpa" + forward-host: ns1.debian.org + forward-host: ns2.debian.org + forward-host: ns3.debian.org + forward-host: ns4.debian.com <% end -%> <% if hostname == "zappa" -%> edns-buffer-size: 512