|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30987 checkdnsrr giving incorrect result
Submitted: 2004-12-05 20:51 UTC Modified: 2005-01-31 22:37 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: jmambo7 at yahoo dot com Assigned:
Status: No Feedback Package: Network related
PHP Version: 4.3.8 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-05 20:51 UTC] jmambo7 at yahoo dot com
There are domains that checkdnsrr is reporting that they do not exist, while when I search the domain names in several respectable domain registration websites they indicate that the domain names exist. An example is and

Reproduce code:
  if (checkdnsrr("", "ANY")) echo "domain name has been taken";
   else echo "domain name is available";

Expected result:
I expect the code to tell me the domain name has been taken

Actual result:
The result is the domain name is available


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-06 15:44 UTC]
The most likely cause for this is that your resolv settings are configured to include a search domain for which a wilcard exists.  Try appending a . to the end of hostnames which you wish to check to prevent the search name from being appended.


if (checkdnsrr("", "ANY")) echo "domain name has been taken";
   else echo "domain name is available";

 [2004-12-11 05:23 UTC] jmambo7 at yahoo dot com
I have appended a dot at the end of the domain name but still getting the same result.
 [2005-01-12 02:00 UTC]
What does `host` or `nslookup` return for you ?
 [2005-01-31 22:37 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 00:01:27 2019 UTC