Bug #13423 Updated: gethostbyname() returns hostname when ip address is part of hostname

From: Date: Mon, 24 Sep 2001 22:34:44 +0000
Subject: Bug #13423 Updated: gethostbyname() returns hostname when ip address is part of hostname
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66500@lists.php.net to get a copy of this message
ID: 13423 Updated by: jimw Reported By: gardner@armory.com Old Status: Open Status: Analyzed Bug Type: Unknown/Other Function Operating System: PHP Version: 4.0.4pl1 New Comment: actually, what is going on is that php's gethostbyname() simply returns the name when it can't be resolved. (that seems like rather silly behavior to me, and is probably worth changing.) Previous Comments: ------------------------------------------------------------------------ [2001-09-24 18:12:03] gardner@armory.com When you pass a host name such as ip-255-255-255-255.reverse.mobilenetics.com to gethostbyname() it returns the hostname, not the ip address. Regular hostnames like google.com work. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13423&edit=1

« previous php.dev (#66500) next »