Permalink
Browse files

Revert to requesting nameserver record explicitly

  • Loading branch information...
1 parent 271aee6 commit 5a0dc300ed374ae926c1fbcb6be928dbc4ab6ea5 @purcell committed Nov 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/postfix-policy-whois
@@ -34,7 +34,7 @@ require 'resolv'
def nameserver_for(domain)
Timeout::timeout(5) do
begin
- record = Resolv::DNS.new.getresource(domain, Resolv::DNS::Resource::IN::ANY)
+ record = Resolv::DNS.new.getresource(domain, Resolv::DNS::Resource::IN::NS)
record.name.to_s if record.respond_to?(:name)
rescue Resolv::ResolvError
nil

0 comments on commit 5a0dc30

Please sign in to comment.