Class | Whois::Server::Adapters::Standard |
In: |
lib/whois/server/adapters/standard.rb
lib/whois/server/adapters/standard.rb |
Parent: | Base |
Provides ability to query standard WHOIS interfaces. A standard WHOIS interface accepts socket requests containing the name of the domain and returns a single response containing the answer for given query.
By default the interface should listen on port 43. This adapter also supports an optional port number.
# File lib/whois/server/adapters/standard.rb, line 33 def request(qstring) response = query_the_socket(qstring, host) append_to_buffer response, host end