Skip to content

Commit

Permalink
Revert to requesting nameserver record explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 6, 2012
1 parent 271aee6 commit 5a0dc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/postfix-policy-whois
Expand Up @@ -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
Expand Down

0 comments on commit 5a0dc30

Please sign in to comment.