Class Whois::Server::Adapters::Pir
In: lib/whois/server/adapters/pir.rb
lib/whois/server/adapters/pir.rb
Parent: Base

Methods

request   request  

Public Instance methods

[Source]

# File lib/whois/server/adapters/pir.rb, line 23
        def request(qstring)
          response = ask_the_socket("FULL #{qstring}", "whois.publicinterestregistry.net", DEFAULT_WHOIS_PORT)
          append_to_buffer response, "whois.publicinterestregistry.net"

          if endpoint = extract_referral(response)
            response = ask_the_socket(qstring, endpoint, DEFAULT_WHOIS_PORT)
            append_to_buffer response, endpoint
          end
        end

[Source]

# File lib/whois/server/adapters/pir.rb, line 23
        def request(qstring)
          response = ask_the_socket("FULL #{qstring}", "whois.publicinterestregistry.net", DEFAULT_WHOIS_PORT)
          append_to_buffer response, "whois.publicinterestregistry.net"

          if endpoint = extract_referral(response)
            response = ask_the_socket(qstring, endpoint, DEFAULT_WHOIS_PORT)
            append_to_buffer response, endpoint
          end
        end

[Validate]