io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
442 stars 118 forks source link

null response for .to domains #88

Open Jestergnet opened 5 years ago

Jestergnet commented 5 years ago

the library is returning null response for .to domains, Call to a member function getExpirationDate() on null

whois nnmclub.to -h whois.tonic.to Tonic whoisd V1.1 nnmclub ns1.nnm-club.cc nnmclub ns2.nnm-club.cc

bessone commented 5 years ago

Hello, it is not the PHP client's fault, it is the whois server that returns only the nameservers without other information. In the PHP code you have to handle the exception if the properties are returned or not.

Then I noticed a strange thing making calls from the linux client, sometimes the whois.tonic.to server gives an empty answer: image

zaherg commented 4 years ago

as @bessone said it is the registrar based on https://www.tonic.to/faq.htm#16

Does Tonic offer a whois service? Tonic does not maintain a whois database that provides registrant information, as many of our customers consider the public display of this information invasive of their privacy. In fact, we will never sell a mailing list of our customers. We also do have a web-based facility similar to whois, that lists DNS and other domain name info, without revealing the customer name. Try for instance: http://www.tonic.to/whois?best.to. There is also a whois server on port 43 of whois.tonic.to.