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.
This commit is contained in:
Nate Riffe 2015-05-05 12:40:22 -05:00
parent 019aefac22
commit ce0dada818

View File

@ -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)