Is checkdnsrr() function good enough to establish domain (in)availability?
- by Stipe
I want to create simple script to check domain availability. Can anybody tell me is this function enough to check domain availability before user can register:
<?php
$recordexists = checkdnsrr("www.google.com", "ANY");
if ($recordexists)
echo "The domain name has been taken. Sorry!";
else
echo "The domain name is available!";
?>
or should I go with some other whois script like http://www.mrscripts.co.uk/index.php?op=lite