[PHP-DEV] Bug #12678 Updated: gethostbyname returns hostname instead of adresss From: alindeman <email protected>
Date: 08/09/01

ID: 12678
Updated by: alindeman
Reported By: bobsledbob <email protected>
Old Status: Open
Status: Feedback
Bug Type: Network related
Operating System: Linux 2.2.16-22
PHP Version: 4.0.6
New Comment:

Can you access the internet from a browser?

gethostbyname() returns the hostname when it can't find the
IP (invalid address.)

Make sure your nameserver's are setup correctly.

Previous Comments:
------------------------------------------------------------------------

[2001-08-09 15:57:51] bobsledbob <email protected>

I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc.

This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems.

Thanks.

Adam

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=12678&edit=1

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>