Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Whois.available?("www.microsoft.com") #=> true #100

nasa42 opened this Issue Jun 2, 2011 · 1 comment


None yet
2 participants

nasa42 commented Jun 2, 2011

Whois.available?() returns true for "www.microsoft.com" (yes I know it should be "microsoft.com" and not "www.microsoft.com"). (It returns false for "www.google.com" though).

Also related

=> "ENOM, INC."


=> "Markmonitor.com"

I think it should have raised some kind of invalid query or server not found kind of error for "www.microsoft.com" and "www.google.com".
I'm using whois 2.0.4


weppos commented Jun 6, 2011

The library is not responsible for validating the input. It tries to guess the object type according to some standard patterns (email, domain, IP), but you should be responsible for validating the domain you pass as argument.

I can't run any kind of validation in advance because each server can have different rules. For instance, a whois request for Whois.whois("www.example.TLD1") might actually be a valid request, while it won't be for Whois.whois("www.example.TLD2").

@weppos weppos closed this Jun 6, 2011

@ghost ghost assigned weppos Aug 4, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment