From 1931e4189794289860203cef73fc4c58aee8d9e8 Mon Sep 17 00:00:00 2001 From: Nick Meharry Date: Tue, 19 Nov 2013 14:27:10 -0800 Subject: [PATCH] Don't include A records from "Additional" and "Authority" sections of the DNS response --- libraries/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/core.rb b/libraries/core.rb index d52d0e0..8f68aa9 100644 --- a/libraries/core.rb +++ b/libraries/core.rb @@ -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