|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-05 09:26 UTC] tony2001@php.net
[2007-02-05 10:05 UTC] dae at datasec dot no
[2007-02-05 10:19 UTC] tony2001@php.net
[2007-02-05 12:32 UTC] dae at datasec dot no
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
Description: ------------ PHP can not do DNS-resolution, all other software or parts of the OS can. Reproduce code: --------------- $foo = gethostbyaddr('69.147.83.197'); echo 'gethostbyaddr [should show a hostname] : '.$foo."\n"; $foo = gethostbyname("php.net"); echo 'gethostbyname [should show an ip] : '.$foo."\n"; $host = explode('@', 'webmaster@php.net'); if(!checkdnsrr($host[1].'.', 'MX') ) { echo "No MX record found for webmaster@php.net\n"; } Expected result: ---------------- gethostbyaddr [should show a hostname] : y2.php.net gethostbyname [should show an ip] : 69.147.83.197 Actual result: -------------- gethostbyaddr [should show a hostname] : 69.147.83.197 gethostbyname [should show an ip] : php.net No MX record found for webmaster@php.net