diff --git a/modules/auxiliary/gather/enum_dns.rb b/modules/auxiliary/gather/enum_dns.rb index 87c572379e..473ef4da87 100644 --- a/modules/auxiliary/gather/enum_dns.rb +++ b/modules/auxiliary/gather/enum_dns.rb @@ -410,7 +410,7 @@ class Metasploit3 < Msf::Auxiliary dns.nameservers -= dns.nameservers dns.nameservers = "#{r}" zone = dns.axfr(domain) - rescue ResolverArgumentError, Errno::ETIMEDOUT, ::NoResponseError, ::Timeout::Error => e + rescue ResolverArgumentError, Errno::ECONNREFUSED, Errno::ETIMEDOUT, ::NoResponseError, ::Timeout::Error => e print_error("Query #{domain} DNS AXFR - exception: #{e}") end next if zone.blank?