Bug #73149 [NEW]: dns_get_record(): A temporary server error occurred
From: walter at oradio dot be
Operating system: Linux Mint 17 Qiana and Centos 7
PHP version: 5.6.26
Package: Network related
Bug Type: Bug
Bug description:dns_get_record(): A temporary server error occurred
Description:
------------
[regression] dns_get_record does not return false on dns server failure
When doing a nslookup for this domain: radioantwerpen.be the response
is:
;; Got SERVFAIL reply from 83.149.80.123, trying next server
Server: 83.149.80.123
Address: 83.149.80.123#53
** server can't find radioantwerpen.be: NXDOMAIN
Note:
-----
This worked on PHP version 5.5x, but when I upgraded to 5.6.26 this
error occurred. The same error occurs on the production server, which is
a different machine with a different OS, but same PHP version.
This is a regression from bug: #53092 (
https://bugs.php.net/bug.php?id=53092 ) . It was
closed in 2014.
Test script:
---------------
$url = "radioantwerpen.be";
$result = dns_get_record($url);
print_r($result);
Expected result:
----------------
return empty array
Actual result:
--------------
throws "Warning: dns_get_record(): A temporary server error occurred. in
..."
and returns nothing (no array)
--
Edit bug report at https://bugs.php.net/bug.php?id=73149&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73149&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73149&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73149&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73149&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73149&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73149&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73149&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73149&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73149&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73149&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73149&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73149&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73149&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73149&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73149&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73149&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73149&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73149&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73149&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73149&r=mysqlcfg
Thread (5 messages)
- walter at oradio dot be