added support for view directive "match-recursive-only"

allows for dedicated views separating resolver and authorative functions
within the same server
This commit is contained in:
Tilo Klausing 2015-01-12 12:08:14 +01:00
parent f9ed618b36
commit 0ebec14102
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ define bind::view (
$recursion = true,
$recursion_match_clients = 'any',
$recursion_match_destinations = '',
$recursion_match_only = false,
$order = '10',
) {
$confdir = $::bind::confdir

View File

@ -15,6 +15,9 @@ view "<%= @name %>" {
};
<%- end -%>
recursion <%= @recursion ? 'yes' : 'no' %>;
<%- if @recursion_match_only -%>
match-recursive-only yes;
<%- end -%>
<%- if @recursion -%>
<%- if @recursion_match_clients and @recursion_match_clients != '' -%>
allow-recursion {