Sha256: fc989e6e4b78a07b62d5b3cfd1aa25a75facc89346cb474d617b38821ffbdb19
Contents?: true
Size: 828 Bytes
Versions: 3
Compression:
Stored size: 828 Bytes
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ module Whois class Server module Adapters class Verisign < Base def request(qstring) response = ask_the_socket("=#{qstring}", host, DEFAULT_WHOIS_PORT) endpoint = extract_referral(response) if endpoint response + "\n" + ask_the_socket(qstring, endpoint, DEFAULT_WHOIS_PORT) else response end end private def extract_referral(response) if response =~ /Domain Name:/ && response =~ /Whois Server: (\S+)/ $1 end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-0.5.3 | lib/whois/server/adapters/verisign.rb |
whois-0.5.2 | lib/whois/server/adapters/verisign.rb |
whois-0.5.1 | lib/whois/server/adapters/verisign.rb |