Bug #79561 [NEW]: dns_get_record() fails with DNS_ALL

From: Date: Sun, 03 May 2020 17:48:22 +0000
Subject: Bug #79561 [NEW]: dns_get_record() fails with DNS_ALL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226892@lists.php.net to get a copy of this message
From: anrdaemon at yandex dot ru Operating system: Windows PHP version: 7.4.5 Package: *Network Functions Bug Type: Bug Bug description:dns_get_record() fails with DNS_ALL Description: ------------ It seems, the DNS_CAA resource record is not supported by Windows builds. Excluding DNS_CAA from DNS_ALL results in successful query. I think, if library does not support specific RR directly, the relevant bit should be removed from DNS_ALL. Additionally: Attempting a raw query with RR=257 results in empty response even if relevant record exists. F.e. google.com: > nslookup -type=CAA google.com. Server: 192.168.1.12 Address: 192.168.1.12#53 Non-authoritative answer: google.com rdata_257 = 0 issue "pki.goog" Authoritative answers can be found from: google.com nameserver = ns4.google.com. google.com nameserver = ns3.google.com. google.com nameserver = ns1.google.com. google.com nameserver = ns2.google.com. ns1.google.com internet address = 216.239.32.10 ns2.google.com internet address = 216.239.34.10 ns3.google.com internet address = 216.239.36.10 ns4.google.com internet address = 216.239.38.10 > php -r 'print_r(dns_get_record("google.com", 257, $x, $y, true));' Array ( ) Possible related: https://bugs.php.net/bug.php?id=52260 Test script: --------------- <?php $rr = dns_get_record("www.php.net", DNS_ALL);// & ~DNS_CAA); print_r($rr); Expected result: ---------------- A resulting array or false is returned. Silently! Actual result: -------------- PHP Warning: dns_get_record(): Type '251721779' not supported in … Excluding DNS_CAA from DNS_ALL results in successful query. -- Edit bug report at https://bugs.php.net/bug.php?id=79561&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79561&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79561&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79561&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79561&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79561&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79561&r=support Expected behavior: https://bugs.php.net/fix.php?id=79561&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79561&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79561&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79561&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79561&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79561&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79561&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79561&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79561&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79561&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79561&r=mysqlcfg

« previous php.bugs (#226892) next »