lib/truemail/audit/ptr.rb in truemail-2.2.3 vs lib/truemail/audit/ptr.rb in truemail-2.3.0

- old
+ new

@@ -13,16 +13,17 @@ end private def current_host_reverse_lookup - IPAddr.new(current_host_ip).reverse + ::IPAddr.new(current_host_ip).reverse end def ptr_records @ptr_records ||= Truemail::Wrapper.call(configuration: configuration) do - Resolv::DNS.new.getresources( - current_host_reverse_lookup, Resolv::DNS::Resource::IN::PTR + Truemail::Dns::Resolver.ptr_records( + current_host_reverse_lookup, + configuration: configuration ).map { |ptr_record| ptr_record.name.to_s } end || [] end def ptr_refer_to_verifier_domain?