|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51844 checkdnsrr does not support types other than MX
Submitted: 2010-05-17 18:20 UTC Modified: 2010-05-17 20:58 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: a_jelly_doughnut at phpbb dot com Assigned: pajoye (profile)
Status: Closed Package: Network related
PHP Version: 5.3.2 OS: Windows (All)
Private report: No CVE-ID: None
 [2010-05-17 18:20 UTC] a_jelly_doughnut at phpbb dot com

status = DnsQuery_A(hostname, DNS_TYPE_MX, DNS_QUERY_STANDARD, NULL, &pResult, NULL);

The calculated "type" variable is never used (it should be the second argument to DNSQuery_A).  

The bug only affects Windows platforms.

Test script:
$domain = '';
echo "MX"; var_dump(checkdnsrr($domain, 'MX'));
echo "ANY"; var_dump(checkdnsrr($domain, 'ANY'));

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-17 19:50 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-05-17 20:55 UTC]
Automatic comment from SVN on behalf of pajoye
Log: - #51844, checkdnsrr does not support types other than MX
 [2010-05-17 20:58 UTC]
-Status: Assigned +Status: Closed
 [2010-05-17 20:58 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 09:01:27 2023 UTC