Sha256: 4c80044730c954b3895876794a17f65a27e284d1f3977e5ad4ce9e7df0082187

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 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)
          if response =~ /Domain Name:/ && response =~ /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/verisign.rb