koroban / WhoisParser

Lookup domain names, IP addresses and AS numbers by WHOIS
http://www.novutec.com
136 stars 124 forks source link

Error: Invalid query #52

Open hesyifei opened 9 years ago

hesyifei commented 9 years ago

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.

AmanAgarwal041 commented 8 years ago

Did you get a solution for the above issue?

Bruce-LXXVI commented 8 years ago

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.

linkthrow commented 8 years ago

This also happens when trying to make a query from PHPUnit