php-whois
php-whois copied to clipboard
Greek domains checks seems to be broken
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.
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'));