From 0ebec14102b52c93ad80d47efe73b293a946b55a Mon Sep 17 00:00:00 2001 From: Tilo Klausing Date: Mon, 12 Jan 2015 12:08:14 +0100 Subject: [PATCH] added support for view directive "match-recursive-only" allows for dedicated views separating resolver and authorative functions within the same server --- manifests/view.pp | 1 + templates/view.erb | 3 +++ 2 files changed, 4 insertions(+) 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 {