Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.6

Bug #17496 $_nicServers should be FQDN
Submitted: 2010-06-15 20:48 UTC
From: hm2k Assigned: kguest
Status: Closed Package: Net_Whois (version SVN)
PHP Version: 5.3.2 OS:
Roadmaps: 1.0.4    
Subscription  


 [2010-06-15 20:48 UTC] hm2k (James Wade)
Description: ------------ For example, whois.nic.gov should become whois.nic.gov. The problem arises when your server is part of a domain. Most of the time this isn't a problem unless the domain is unresolvable, for example: * Dns unable to resolve whois.nic.mil * Dns unable to resolve mil.whois-servers.net The problem arises if your domain is "example.com" and it uses wildcard dns (where *.example.com resolves to an IP). If mil.whois-servers.net doesn't exist (which it doesn't) then the server assumes you mean mil.whois-servers.net.example.com which may resolve. This will then attempt to connect to the whois server on that IP rather than the intended whois. A resolution is to use fully qualified domain names (FQDN) by adding a trailing dot on hostnames.

Comments

 [2010-06-15 20:59 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2010-06-16 19:56 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2010-06-17 17:02 UTC] hm2k (James Wade)
-Status: Closed +Status: Open
Reopened to fix a related issue... $q = gethostbyname($q . $tail . '.'); Can now become: $q = gethostbyname($q . $tail); As the "$tail" will already have a trailing .
 [2010-06-18 23:59 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. nicely spotted.
 [2010-07-23 02:01 UTC] kguest (Ken Guest)
-Roadmap Versions: +Roadmap Versions: 1.0.4