Sha256: 39e25a82f448c8aae40e78b4b853b1027db8e7f83f312e9beff4a37754775f49
Contents?: true
Size: 832 Bytes
Versions: 3
Compression:
Stored size: 832 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 Afilias < Base def request(qstring) response = ask_the_socket(qstring, "whois.afilias-grs.info", 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/afilias.rb |
whois-0.5.2 | lib/whois/server/adapters/afilias.rb |
whois-0.5.1 | lib/whois/server/adapters/afilias.rb |