php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73149 dns_get_record(): A temporary server error occurred
Submitted: 2016-09-23 14:36 UTC Modified: -
Votes:70
Avg. Score:4.0 ± 0.9
Reproduced:69 of 69 (100.0%)
Same Version:13 (18.8%)
Same OS:11 (15.9%)
From: walter at oradio dot be Assigned:
Status: Open Package: Network related
PHP Version: 5.6.26 OS: Linux Mint 17 Qiana and Centos 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-09-23 14:36 UTC] walter at oradio dot be
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 17:01:27 2019 UTC