Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Error: Invalid query #52

Open
hesyifei opened this issue Jul 16, 2015 · 3 comments
Open

Error: Invalid query #52

hesyifei opened this issue Jul 16, 2015 · 3 comments

Comments

@hesyifei
Copy link

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
Copy link

Did you get a solution for the above issue?

@Bruce-LXXVI
Copy link

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
Copy link

This also happens when trying to make a query from PHPUnit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants