Support forward zones
This commit is contained in:
parent
fe1ceca8fd
commit
26b43b3169
@ -8,6 +8,8 @@ define bind::zone (
|
||||
$ns_notify = true,
|
||||
$also_notify = [],
|
||||
$allow_notify = [],
|
||||
$forwarders = [],
|
||||
$forward = '',
|
||||
) {
|
||||
$cachedir = $bind::cachedir
|
||||
|
||||
|
||||
@ -47,4 +47,14 @@ zone "<%= _domain %>" {
|
||||
<%- end -%>
|
||||
};
|
||||
<%- end -%>
|
||||
<%- if forward != '' -%>
|
||||
forward <%= forward %>;
|
||||
<%- end -%>
|
||||
<%- if not forwarders.empty? -%>
|
||||
forwarders {
|
||||
<%- forwarders.each do |forwarder| -%>
|
||||
<%= forwarder %>;
|
||||
<%- end -%>
|
||||
};
|
||||
<%- end -%>
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user