ID: 21487 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Network related Operating System: Windows PHP Version: 4.3.0 New Comment:
With the following script: <?php $db = gethostbyname("gmx.de5"); var_dump($db); $db = gethostbyname("gmx.de"); var_dump($db); ?> Edin can't reproduce the problem under windows. Can you please try that script? You're saying that host gmx.de5 on the server reports an error but you're under windows and windows doesn't have 'host'... Are you sure your DNS is working fine? I'm getting 213.165.65.100 from gmx.de and not 62.75.134.200... gethostbyname() is also supposed to return the hostname on failure. At least thats what we (Edin and me) are getting under Windows and Linux/Unix. Thank you for your report. Previous Comments: ------------------------------------------------------------------------ [2003-01-07 06:51:57] [EMAIL PROTECTED] Just a note, I can not reproduce the problem under Linux/Unix. ------------------------------------------------------------------------ [2003-01-07 06:32:02] [EMAIL PROTECTED] 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 [EMAIL PROTECTED] would surely not arrive... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21487&edit=1