|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70473 dns_get_record - Server error for any of DNS_A|DNS_AAAA bubbles up, no result
Submitted: 2015-09-11 08:46 UTC Modified: -
Avg. Score:3.8 ± 1.3
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: sjon at hortensius dot net Assigned:
Status: Open Package: Network related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sjon at hortensius dot net
New email:
PHP Version: OS:


 [2015-09-11 08:46 UTC] sjon at hortensius dot net
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:

Actual result:
dns_get_record(): A temporary server error occurred. in Command line code on line 1


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 10 02:03:42 2023 UTC