From:             dae at datasec dot no
Operating system: Trustix 3.0.5 RC1
PHP version:      4.4.4
PHP Bug Type:     *Network Functions
Bug description:  DNS resolution fails with PHP

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('@', '[EMAIL PROTECTED]');
if(!checkdnsrr($host[1].'.', 'MX') ) {
        echo "No MX record found for [EMAIL PROTECTED]";
}

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 [EMAIL PROTECTED]

-- 
Edit bug report at http://bugs.php.net/?id=40351&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40351&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40351&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40351&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40351&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40351&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40351&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40351&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40351&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40351&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40351&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40351&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40351&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40351&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40351&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40351&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40351&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40351&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40351&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40351&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40351&r=mysqlcfg

Reply via email to