Bug #17496 [Csd->Opn]: $_nicServers should be FQDN
| From: | hm2k@php.net | Date: | Thu, 17 Jun 2010 13:02:32 +0000 |
| Subject: | Bug #17496 [Csd->Opn]: $_nicServers should be FQDN | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3951@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17496&edit=1
ID: 17496
Updated by: hm2k@php.net
Reported By: hm2k at php dot net
Summary: $_nicServers should be FQDN
-Status: Closed
+Status: Open
Type: Bug
Package: Net_Whois
Package Version: SVN
PHP Version: 5.3.2
Assigned To: kguest
Roadmap Versions:
New Comment:
-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 .
Previous Comments:
------------------------------------------------------------------------
[2010-06-16 15:56:56] kguest
-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-15 16:59:27] kguest
-Assigned To:
+Assigned To: kguest
------------------------------------------------------------------------
[2010-06-15 16:48:22] hm2k
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.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17496&edit=1