Bug #75909 [Opn]: dns_get_record does not support CAA record type on Windows
Edit report at https://bugs.php.net/bug.php?id=75909&edit=1
ID: 75909
Updated by: ab@php.net
Reported by: philip at kerzap dot com
Summary: dns_get_record does not support CAA record type on
Windows
Status: Open
Type: Bug
Package: Network related
Operating System: Windows
PHP Version: 7.2.2
Block user comment: N
Private report: N
New Comment:
Thanks for reporting. The current Windows API doesn't seem to provide a way to query these
record types. One can query an authority of a host, but not the autority record itself. Until
I've overseen something, there's no way to map this functionality currently :(
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2018-02-02 22:07:20] philip at kerzap dot com
Description:
------------
Support for this record was added to dns_get_record in 7.0.16, but Windows uses a separate
implementation of dns_get_record (defined in dns_win32.c) that did not get updated.
The DNS_CAA constant is defined on Windows.
Original bug: https://bugs.php.net/bug.php?id=73850
Original commit: https://github.com/php/php-src/commit/280e9cb28d07a69e56ebcde4c368f3053298abe3
Test script:
---------------
var_dump(dns_get_record('google.com', DNS_CAA));
Expected result:
----------------
array(1) {
[0]=>
array(7) {
["host"]=>
string(10) "google.com"
["class"]=>
string(2) "IN"
["ttl"]=>
int(60)
["type"]=>
string(3) "CAA"
["flags"]=>
int(0)
["tag"]=>
string(5) "issue"
["value"]=>
string(8) "pki.goog"
}
}
Actual result:
--------------
PHP Warning: dns_get_record(): Type '8192' not supported in php shell code on line 1
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75909&edit=1
Thread (4 messages)