Signed-off-by: Stephen Gran <steve@lobefin.net>
$is_recursor = getfromhash($site::nodeinfo, 'misc', 'resolver-recursive')
$client_ranges = getfromhash($site::nodeinfo, 'hoster', 'allow_dns_query')
+ $dodgy_ns = getfromhash($site::nodeinfo, 'hoster', 'nameservers_break_dnssec')
$ns = hiera('nameservers')
package { 'unbound':
auto-trust-anchor-file: "/var/lib/unbound/root.key"
auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
-<% if not @is_recursor and not @client_ranges -%>
+<% if not @is_recursor and not @dodgy_ns -%>
forward-zone:
name: "."
<% @ns.to_a.flatten.each do |nms| -%>