New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restricted domains resulting as 'available' #132
Comments
I've found a similar problem to the above. When firing multiple request in a short matter of time for certain whois-servers (in this case i've used a .nl domain), the whois server is responding with:
It cannot handle this response correctly which always results in a isDomainAvailable => TRUE. |
I've found similar problems few months ago, for example several TLDs return a "reserved" message Also the whois.nic.sg server sometimes returns "Service is not available." and whois.dot.ga returns "WHOIS lookup for DOMAIN.GA can temporarily not be answered. Please try again." You have to manage various messages for different TLDs, but in recent months I have never had time to get my hands on them |
PHP-Whois version: 4.0.0
PHP version: 7.2
Description
Some whois servers can return a response containing info about the queried domain name that it is restricted. Example:
$ whois -h whois.donuts.co google.kitchen
When using the whois service within this library, using the
isDomainAvailable
call, the response will beTRUE
while the domain is in fact not available.How to reproduce
Factory::get()->createWhois()->isDomainAvailable('google.kitchen');
will returnTRUE
Possible Solution
The whois response is very clear:
The registration of this domain is restricted
. So it might be the best to parse this correctly.The text was updated successfully, but these errors were encountered: