Is checkdnsrr() function good enough to establish domain (in)availability?

Posted by Stipe on Stack Overflow See other posts from Stack Overflow or by Stipe
Published on 2011-01-08T14:44:26Z Indexed on 2011/01/08 14:53 UTC
Read the original article Hit count: 99

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about domain