WhoisParser
WhoisParser copied to clipboard
Error: Invalid query
Hi, here's my code:
<?php
require_once 'DomainParser/vendor/autoload.php';
require_once 'WhoisParser/vendor/autoload.php';
$Parser = new Novutec\WhoisParser\Parser();
$result = $Parser->lookup("hello.org");
print_r($result);
?>
and every single domain just displayed:
Novutec\WhoisParser\Result\Result Object ( [name:protected] => [idnName:protected] => [status:protected] => [nameserver:protected] => [ips:protected] => [created:protected] => [changed:protected] => [expires:protected] => [registered:protected] => [dnssec:protected] => [whoisserver:protected] => whois.iana.org [contacts:protected] => stdClass Object ( ) [registrar:protected] => [rawdata] => Array ( [0] => % IANA WHOIS server % for more information on IANA, visit http://www.iana.org % % Error: Invalid query ) [network:protected] => [exception:protected] => [parsedContacts:protected] => [template] => Array ( [whois.iana.org] => iana ) )
So how can I solve this problem?
PS: lookup();
IP is working properly.
Did you get a solution for the above issue?
Mozilla's tld list seems down. http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1
Maybe it has something to do with your problem. You could try https://publicsuffix.org/list/public_suffix_list.dat as an alternative.
This also happens when trying to make a query from PHPUnit