Support forward zones

This commit is contained in:
Nate Riffe 2012-10-06 15:10:46 -05:00
parent fe1ceca8fd
commit 26b43b3169
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,8 @@ define bind::zone (
$ns_notify = true, $ns_notify = true,
$also_notify = [], $also_notify = [],
$allow_notify = [], $allow_notify = [],
$forwarders = [],
$forward = '',
) { ) {
$cachedir = $bind::cachedir $cachedir = $bind::cachedir

View File

@ -47,4 +47,14 @@ zone "<%= _domain %>" {
<%- end -%> <%- end -%>
}; };
<%- end -%> <%- end -%>
<%- if forward != '' -%>
forward <%= forward %>;
<%- end -%>
<%- if not forwarders.empty? -%>
forwarders {
<%- forwarders.each do |forwarder| -%>
<%= forwarder %>;
<%- end -%>
};
<%- end -%>
}; };