Bug #17478 [Opn->Dup]: Error for "hrsfc.ac.uk" and other sTLDs

From: Date: Wed, 09 Jun 2010 17:21:10 +0000
Subject: Bug #17478 [Opn->Dup]: Error for "hrsfc.ac.uk" and other sTLDs
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-3910@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17478&edit=1 ID: 17478 Updated by: hm2k@php.net Reported By: hm2k at php dot net Summary: Error for "hrsfc.ac.uk" and other sTLDs -Status: Open +Status: Duplicate Type: Bug Package: Net_Whois Package Version: SVN PHP Version: 5.3.2 Roadmap Versions: New Comment: -Status: Open +Status: Duplicate Fixed with patch in bug #17480 Previous Comments: ------------------------------------------------------------------------ [2010-06-09 16:45:59] hm2k Description: ------------ At present the script assumes that all sub top level domains use the same whois server. They don't. For example: .co.uk uses whois.nic.uk while .ac.uk uses whois.ja.net .gov.uk uses whois.ja.net .uk isn't the only sTLD affected by this either, .za domains also share this issue. The solution is to use .whois-servers.net in a different way. At present it is grabbing the last domain part (the tld) and using that to prefix to the tail host, however, it should check to see if a record for the last 2 domain parts (stld) exists first. Test script: --------------- Try with any .ac.uk domain: http://www.google.com/search?q=site:.ac.uk Eg: hrsfc.ac.uk Expected result: ---------------- [whois results for hrsfc.ac.uk domain] Actual result: -------------- Error for "hrsfc.ac.uk". Nominet is not the registry for this domain name. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17478&edit=1

« previous php.pear.bugs (#3910) next »