Support for "forward" statement

Add "forward" statement in options { } block in named.conf.
This commit is contained in:
Hossy 2016-10-18 21:02:17 -05:00
parent 6eb6193290
commit 89751eea38
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
class bind ( class bind (
$forwarders = '', $forwarders = '',
$forward = undef,
$dnssec = true, $dnssec = true,
$filter_ipv6 = false, $filter_ipv6 = false,
$version = '', $version = '',

View File

@ -20,6 +20,9 @@ options {
<%= forwarder %>; <%= forwarder %>;
<%- end -%> <%- end -%>
}; };
<%- end -%>
<%- if @forward != '' -%>
forward <%= @forward %>;
<%- end -%> <%- end -%>
auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>; auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>;
listen-on-v6 { any; }; listen-on-v6 { any; };