Bug #70473 [NEW]: dns_get_record - Server error for any of DNS_A|DNS_AAAA bubbles up, no result
| From: | sjon at hortensius dot net | Date: | Fri, 11 Sep 2015 08:46:43 +0000 |
| Subject: | Bug #70473 [NEW]: dns_get_record - Server error for any of DNS_A|DNS_AAAA bubbles up, no result | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-195955@lists.php.net to get a copy of this message | ||
From: sjon at hortensius dot net
Operating system:
PHP version: Irrelevant
Package: Network related
Bug Type: Bug
Bug description:dns_get_record - Server error for any of DNS_A|DNS_AAAA bubbles up, no result
Description:
------------
When fetching multiple records using dns_get_record; if any of the
records return a SERVFAIL; that failure bubbles up; and no result gets
returned.
To reproduce this you need a specifically failing dns-server but it's
also obvious from the code.
I'd expect an array (with single result) instead of an error when the
domain has an A record, but returns a SERVFAIL for AAAA
Test script:
---------------
dns_get_record('domain', DNS_A | DNS_AAAA);
Expected result:
----------------
array(
...
)
Actual result:
--------------
dns_get_record(): A temporary server error occurred. in Command line
code on line 1
--
Edit bug report at https://bugs.php.net/bug.php?id=70473&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70473&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70473&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70473&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70473&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70473&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70473&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70473&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70473&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70473&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70473&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70473&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70473&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70473&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70473&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70473&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70473&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70473&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70473&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70473&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70473&r=mysqlcfg