Sha256: ac71b83e94719e3233ded26723bb63528bdf2e903f844abeb8e7147582bdf64e
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 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 Pir < Base def request(qstring) response = ask_the_socket("FULL #{qstring}", "whois.publicinterestregistry.net", DEFAULT_WHOIS_PORT) if response =~ /Registrant Name:SEE SPONSORING REGISTRAR/ && response =~ /Registrant Street1:Whois Server:(\S+)/ ask_the_socket(qstring, $1, DEFAULT_WHOIS_PORT) else response end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-0.5.0 | lib/whois/server/adapters/pir.rb |