php-whois icon indicating copy to clipboard operation
php-whois copied to clipboard

Greek domains checks seems to be broken

Open paulomanrique opened this issue 1 year ago • 1 comments

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.

paulomanrique avatar Mar 07 '24 21:03 paulomanrique

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'));

ghost avatar Mar 08 '24 01:03 ghost