VERSION | = | Version::STRING |
NAME | = | "Whois" |
GEM | = | "whois" |
AUTHORS | = | ["Simone Carletti <weppos@weppos.net>"] |
Checks whether the object represented by qstring is available.
Warning: this method is only available if a Whois parser exists for the top level domain of qstring. If no parser exists for qstring, you‘ll receive a warning message and the method will return nil. This is a technical limitation. Browse the lib/whois/answer/parsers folder to view all available parsers.
qstring: | The String to be sent as query parameter. It is intended to be a domain name, otherwise this method may return unexpected responses. |
Boolean
Whois.available?("google.com") # => false Whois.available?("google-is-not-available-try-again-later.com") # => true
Queries the right WHOIS server for qstring and returns the response from the server.
qstring: | The String to be sent as query parameter. |
Whois::Answer: | The answer containing the response from the WHOIS server. |
Whois.query("google.com") # => #<Whois::Answer>
This is equivalent to
Whois::Client.new.query("google.com") # => #<Whois::Answer>
Checks whether the object represented by qstring is registered.
Warning: this method is only available if a Whois parser exists for the top level domain of qstring. If no parser exists for qstring, you‘ll receive a warning message and the method will return nil. This is a technical limitation. Browse the lib/whois/answer/parsers folder to view all available parsers.
qstring: | The String to be sent as query parameter. It is intended to be a domain name, otherwise this method may return unexpected responses. |
Boolean
Whois.registered?("google.com") # => true Whois.registered?("google-is-not-available-try-again-later.com") # => false