|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75909 dns_get_record does not support CAA record type on Windows
Submitted: 2018-02-02 22:07 UTC Modified: 2018-02-27 03:04 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: philip at kerzap dot com Assigned:
Status: Wont fix Package: Network related
PHP Version: 7.2.2 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-02-02 22:07 UTC] philip at kerzap dot com
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:
Original commit:

Test script:
var_dump(dns_get_record('', DNS_CAA));

Expected result:
array(1) {
  array(7) {
    string(10) ""
    string(2) "IN"
    string(3) "CAA"
    string(5) "issue"
    string(8) ""

Actual result:
PHP Warning: dns_get_record(): Type '8192' not supported in php shell code on line 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-12 12:02 UTC]
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 :(

 [2018-02-13 04:05 UTC]
Windows doesn't seem to support CAA at all, surprisingly.

For example, `nslookup`:
Default Server:

> set q=CAA
unknown query type: CAA
> set q=TXT

Also, see:

Therefore, PHP could only do it with a userland DNS library. Should be a Wont fix :(   Thanks for pointing this out though :)
 [2018-02-27 03:04 UTC]
-Status: Open +Status: Wont fix
 [2018-02-27 03:04 UTC]
Windows DNS impl doesn't support CAA record type. This is a behavior difference and is a won't fix
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 14:01:28 2024 UTC