Doc #73149 [Com]: dns_get_record(): A temporary server error occurred
[email protected] ("dewald at appturelab dot com") Thu, 20 Apr 2023 08:33:11 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=73149&edit=1 ID: 73149 Comment by: dewald at appturelab dot com Reported by: walter at oradio dot be Summary: dns_get_record(): A temporary server error occurred Status: Open Type: Documentation Problem Package: Network related Operating System: Linux Mint 17 Qiana and Centos 7 PHP Version: 5.6.26 Block user comment: N Private report: N New Comment: Still experiencing same as what "max at nextcloud dot com" stated but with DNS_NS and with PHP 8. This cannot be a doc bug. It must be when the records cannot be found, ie the given domain does not exist etc. Previous Comments: ------------------------------------------------------------------------ [2021-11-08 11:06:11] max at nextcloud dot com We ran into this when querying for 'DNS_A', 'DNS_AAAA' or 'DNS_CNAME' records. Code in question is here: https://github.com/nextcloud/server/blob/master/lib/private/Http/Client/DnsPinMiddleware.php#L83 It looks like this is independent of the type - just that 'DNS_ANY' requests are mor likely to cause a server failure. However even with a server failure there should be a way to handle the situation - either by returning false or by throwing a well defined error that can be caught. ------------------------------------------------------------------------ [2021-07-15 10:42:30] [email protected] Okay, changing to doc bug then. Thanks! ------------------------------------------------------------------------ [2021-07-15 10:30:53] e6990620 at gmail dot com This error is due to the fact that the default value for the $type argument is DNS_ANY, which is ignored by most DNS servers. dns_get_record('radioantwerpen.be') doesn't work, but dns_get_record('radioantwerpen.be', DNS_A) does. Source: https://dustri.org/b/a-short-tale-on-phps-dns_get_record.html ------------------------------------------------------------------------ [2021-06-06 04:22:08] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2021-05-28 11:24:54] [email protected] Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=73149 -- Edit this bug report at https://bugs.php.net/bug.php?id=73149&edit=1