diff --git a/manifests/view.pp b/manifests/view.pp index 2bf2c68..a05d863 100644 --- a/manifests/view.pp +++ b/manifests/view.pp @@ -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 diff --git a/templates/view.erb b/templates/view.erb index 7760f9f..d898962 100644 --- a/templates/view.erb +++ b/templates/view.erb @@ -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 {