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:
parent
019aefac22
commit
ce0dada818
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user