diff --git a/manifests/init.pp b/manifests/init.pp index bb2a91c..e13b1d0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,6 +2,7 @@ class bind ( $forwarders = '', + $forward = undef, $dnssec = true, $filter_ipv6 = false, $version = '', diff --git a/templates/named.conf.erb b/templates/named.conf.erb index dfa595b..67a043b 100644 --- a/templates/named.conf.erb +++ b/templates/named.conf.erb @@ -20,6 +20,9 @@ options { <%= forwarder %>; <%- end -%> }; +<%- end -%> +<%- if @forward != '' -%> + forward <%= @forward %>; <%- end -%> auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>; listen-on-v6 { any; };