Skip to content

Commit

Permalink
Don't include A records from "Additional" and "Authority" sections of…
Browse files Browse the repository at this point in the history
… the DNS response
  • Loading branch information
cassiemeharry committed Nov 19, 2013
1 parent ce60ebc commit 1931e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def expand_ips(node, target, options, name)
require 'dnsruby'
resolver = Dnsruby::Resolver.new
response = resolver.query(target)
response.each_resource do |r|
response.each_answer do |r|
if r.type.eql?('A')
ips.push(r.address)
end
Expand Down

0 comments on commit 1931e41

Please sign in to comment.