From:             php-bugs at mcooper dot demon dot co dot uk
Operating system: Linux
PHP version:      4.3.4
PHP Bug Type:     Network related
Bug description:  checkdnsrr and getmxrr don't like zero preferenfence MX RR's

Description:
------------
The checkdnsrr and getmxrr functions don't work with domain's that only
have a single zero preference MX record.

Reproduce code:
---------------
    $Domain = "gostoni.net";

    echo $Domain;

    // That MX(mail exchanger) record exists in domain check .

    // checkdnsrr function reference :
http://www.php.net/manual/en/function.checkdnsrr.php

    if ( checkdnsrr ( $Domain, "MX" ) )  {

        echo "Confirmation : MX record about {$Domain} exists.<br>";

        // If MX record exists, save MX record address.

        // getmxrr function reference :
http://www.php.net/manual/en/function.getmxrr.php

        if ( getmxrr ($Domain, $MXHost))  {

                echo "Confirmation : Is confirming address by MX
LOOKUP.<br>";




-- 
Edit bug report at http://bugs.php.net/?id=27665&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27665&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27665&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27665&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27665&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27665&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27665&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27665&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27665&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27665&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27665&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27665&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27665&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27665&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27665&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27665&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27665&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27665&r=float

Reply via email to