#30987 [Opn->Fbk]: checkdnsrr giving incorrect result

From: Date: Mon, 06 Dec 2004 14:44:55 +0000
Subject: #30987 [Opn->Fbk]: checkdnsrr giving incorrect result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69842@lists.php.net to get a copy of this message
 ID:               30987
 Updated by:       pollita@php.net
 Reported By:      jmambo7 at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Network related
 Operating System: Linux
 PHP Version:      4.3.8
 New Comment:

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";





Previous Comments:
------------------------------------------------------------------------

[2004-12-05 20:51:22] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30987&edit=1


Thread (5 messages)

« previous php.bugs (#69842) next »