|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 20:00:01 2025 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. i.e. if (checkdnsrr("netvoice.com.", "ANY")) echo "domain name has been taken"; else echo "domain name is available";