PHP 4.0 Bug #8754: gethostbyname() fails
| From: | jonny at 1409 dot org | Date: | Wed, 17 Jan 2001 08:53:54 +0000 |
| Subject: | PHP 4.0 Bug #8754: gethostbyname() fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44323@lists.php.net to get a copy of this message | ||
From: jonny@1409.org
Operating system: Linux 2.2.16 (RH7)
PHP version: 4.0.4pl1
PHP Bug Type: *Network Functions
Bug description: gethostbyname() fails
When trying to resolv the ip address of a hostname given in /etc/hosts, gethostbyname() works fine.
It does NOT work when trying to resolv an ip address which must be looked up via the DNS server
though. In the latter case, gethostbyname($hostname) always returns $hostname, i.e. it
behaves like the hostname does not exist. However, doing a command line nslookup, the hostname is
found, so it DOES exist.
The problem occurs with version 4.0.4pl1 (compiled on the target system) as well as with version
4.0.1pl2 that comes with RedHat 7.0. I'm using kernel version 2.2.16 and a vanilla (i.e.
non-updated) RedHat 7.0.
Thanks in advance...
--
Edit Bug report at: http://bugs.php.net/?id=8754&edit=1