From ce0dada818a5fea95d44b90fd5a27c54af9b0a33 Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Tue, 5 May 2015 12:40:22 -0500 Subject: [PATCH] Also supply +norecurse This should be universal, since we are explicitly querying the server where we'll apply a change via nsupdate, therefore it must be an authority. --- lib/puppet_bind/provider/nsupdate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet_bind/provider/nsupdate.rb b/lib/puppet_bind/provider/nsupdate.rb index cd7749b..c37a72d 100644 --- a/lib/puppet_bind/provider/nsupdate.rb +++ b/lib/puppet_bind/provider/nsupdate.rb @@ -113,9 +113,9 @@ module PuppetBind def query unless @query if keyed? - dig_text = dig("@#{server}", '+noall', '+nosearch', "+#{query_section}", name, type, '-c', rrclass, '-y', tsig_param) + dig_text = dig("@#{server}", '+noall', '+nosearch', '+norecurse', "+#{query_section}", name, type, '-c', rrclass, '-y', tsig_param) else - dig_text = dig("@#{server}", '+noall', '+nosearch', "+#{query_section}", name, type, '-c', rrclass) + dig_text = dig("@#{server}", '+noall', '+nosearch', '+norecurse', "+#{query_section}", name, type, '-c', rrclass) end @query = dig_text.lines.map do |line| linearray = line.chomp.split(/\s+/, 5)