#21487 [Opn]: gethostbyname can resolve not existing hosts under Windows

From: Date: Tue, 07 Jan 2003 12:52:08 +0000
Subject: #21487 [Opn]: gethostbyname can resolve not existing hosts under Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29309@lists.php.net to get a copy of this message
 ID:               21487
 Updated by:       nicos@php.net
-Summary:          gethostbyname can resolve not existing hosts ;)
 Reported By:      corinl@gmx.de
 Status:           Open
 Bug Type:         Network related
-Operating System: windows
+Operating System: Windows
 PHP Version:      4.3.0
 New Comment:

Just a note, I can not reproduce the problem under Linux/Unix.


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

[2003-01-07 06:32:02] corinl@gmx.de

Hi,

try this:
echo(gethostbyname("gmx.de5"))
output is: 62.75.134.200

in fact, this domain doesn't exist, only gmx.de exists. 
('host gmx.de5' on the server reports an error)
this behavior is bad when for example using getbyhostname to validate
an email address, because an email send to someone@gmx.de5 would surely
not arrive...

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


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



Thread (8 messages)

« previous php.bugs (#29309) next »