sparc / phpWhois.org

Original phpWhois soruces
http://www.phpwhois.org
GNU General Public License v2.0
95 stars 43 forks source link

[Bug] ICANN GTLD 'Deep WHOIS' is broken #3

Closed nahanil closed 5 years ago

nahanil commented 6 years ago

Heya,

I noticed 'deep whois' or recursive lookups aren't working out of the box.

Looking at $REG_FIELDS[] in src/whois.gtld.php which looks like it's used to map the raw WHOIS data to some useable data structure internally. From what I can tell the 'Whois Server:' key should probably be updated to 'Registrar WHOIS Server:', unless some method exists for it to match either of the two.

The WHOIS response format changes are mentioned at the following links: https://www.icann.org/resources/pages/approved-with-specs-2013-09-17-en#whois https://www.centralnic.com/company/news/2016/changes-to-whois Or by just querying a bunch of .com/.net domains

kotuk commented 5 years ago

$whois->deep_whois = true; is not working

nahanil commented 5 years ago

@kotuk What TLD is the domain you are querying (ie .com/.xyz/)?

kotuk commented 5 years ago

any, com, tv, net, eu

kotuk commented 5 years ago

bugfix helped, thank you

nahanil commented 5 years ago

Not sure it will work for EU, but appears to work for the other 3 :)