Bug #73149 [Opn->Fbk]: dns_get_record(): A temporary server error occurred

From: Date: Fri, 28 May 2021 11:24:54 +0000
Subject: Bug #73149 [Opn->Fbk]: dns_get_record(): A temporary server error occurred
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234065@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73149&edit=1

 ID:                 73149
 Updated by:         cmb@php.net
 Reported by:        walter at oradio dot be
 Summary:            dns_get_record(): A temporary server error occurred
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Network related
 Operating System:   Linux Mint 17 Qiana and Centos 7
 PHP Version:        5.6.26
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2021-02-24 15:30:27] idem84 at me dot com

Got PHP 7.2.34-13+ubuntu18.04.1+deb.sury.org+1 (cli) and same problem here, even @ doesn't
help..

------------------------------------------------------------------------
[2016-09-23 14:36:28] 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)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73149&edit=1


Thread (5 messages)

« previous php.bugs (#234065) next »