php.net |  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
Votes:1
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jmambo7 at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-12-05 20:51 UTC] jmambo7 at yahoo dot com
Description:
------------
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 netvoice.com and ataz.com

Reproduce code:
---------------
  if (checkdnsrr("netvoice.com", "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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-06 15:44 UTC] pollita@php.net
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.

i.e.

if (checkdnsrr("netvoice.com.", "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] tony2001@php.net
What does `host netvoice.com` or `nslookup netvoice.com` return for you ?
 [2005-01-31 22:37 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC