WhoisParser icon indicating copy to clipboard operation
WhoisParser copied to clipboard

Error: Invalid query

Open hesyifei opened this issue 9 years ago • 3 comments

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.

hesyifei avatar Jul 16 '15 05:07 hesyifei

Did you get a solution for the above issue?

AmanAgarwal041 avatar Jun 17 '16 06:06 AmanAgarwal041

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.

Bruce-LXXVI avatar Jun 17 '16 08:06 Bruce-LXXVI

This also happens when trying to make a query from PHPUnit

linkthrow avatar Nov 02 '16 15:11 linkthrow