Reorder dig params to fetch correct data
This commit is contained in:
parent
0cede66bfb
commit
7bbe9c36f7
@ -107,7 +107,7 @@ private
|
||||
|
||||
def query
|
||||
unless @query
|
||||
@query = dig("@#{server}", '-c', rrclass, '+noall', '+answer', name, type).lines.map do |line|
|
||||
@query = dig("@#{server}", '+noall', '+answer', name, type, '-c', rrclass).lines.map do |line|
|
||||
linearray = line.chomp.split /\s+/
|
||||
{
|
||||
:name => linearray[0],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user