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
437 stars 117 forks source link

Greek domains checks seems to be broken #219

Open paulomanrique opened 6 months ago

paulomanrique commented 6 months ago

PHP-Whois version: 4.1.10

PHP version: 8.2

Description
Greek domains seems to be broken

How to reproduce

 $whois = Iodev\Whois\Factory::get()->createWhois();
$whois->loadDomainInfo('euro2day.gr');

Error message

 Iodev\Whois\Exceptions\ServerMismatchException  No servers matched for domain 'euro2day.gr'.

It seems that whois.ripe.net and whois.radb.net stopped working with .gr domains.

dehlirious commented 6 months ago

The .gr TLD isn't listed anywhere in module.tld.servers.json

That would explain why No servers matched

If you check iana.org, there is no whois server specified!

https://www.iana.org/domains/root/db/gr.html

And it is true, even using those custom whois servers, no results for .gr domains

$whois = Factory::get()->createWhois();

$customServer = TldServer::fromData([
    "zone" => ".gr",
    "host" => "whois.radb.net",
]);

$whois->getTldModule()->addServers([$customServer]);

var_dump($whois->loadDomainInfo('www.gr'));