$dname = \"accurst.com\"; $recordexists = checkdnsrr($dname, \"ANY\"); if ($recordexists) echo $dname.\" is taken. Sorry!\"; else echo $dname.\" is
Unfortunately the function:
returns FALSE if no records were found or if an error occurred.
So "no result" does not really mean anything decisive.
I would also look for A and CNAME records, for example:
$dname = "accurst.com"; echo checkdnsrr($dname, "A");
prints 1