|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2010-10-18 05:37 UTC] gunni at wave dot is
[2010-10-18 06:30 UTC] gunni at wave dot is
[2010-10-19 22:18 UTC] felipe@php.net
-Package: Unknown/Other Function
+Package: Network related
[2011-03-05 09:50 UTC] error at ioerror dot us
[2014-07-15 12:42 UTC] datibbaw@php.net
[2014-12-01 06:41 UTC] stas@php.net
[2014-12-01 06:41 UTC] stas@php.net
-Status: Open
+Status: Closed
[2014-12-01 06:44 UTC] stas@php.net
[2014-12-01 06:44 UTC] stas@php.net
[2014-12-01 07:33 UTC] ab@php.net
[2014-12-05 07:00 UTC] ab@php.net
[2014-12-05 07:00 UTC] ab@php.net
[2014-12-05 07:00 UTC] ab@php.net
[2016-07-20 11:40 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
Description: ------------ dns_get_record does not return false on dns server failure If you make an example dns failure by changing resolv.conf to some silly ip (i used 1.3.3.7) Requests for existing domain names: OK (array with stuff) Requests for unexisting domain names: OK (empty array) Requests for any domain when dns server does not respond: FAIL (empty array) Which makes it impossible to see if the dns server failed or if the domain doesn't exist. Documentation states: "This function returns an array of associative arrays, or FALSE on failure." When the DNS server fails, that's considered a failure, correct? Test script: --------------- <?php // try various domains with dns working/not working print_r(dns_get_record('google.com', DNS_A)); ?> Expected result: ---------------- if dns does not respond within timeout, return false.