server:
verbosity: 1
-<% if @is_recursor && @client_ranges -%>
+<% if @is_recursor && not @client_ranges.empty? -%>
interface: 0.0.0.0
interface: ::0
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| -%>