What`s the best method to check if a domain exists? .. using PHP of course! I need something that will work with all the domain extensions out there. Would checkdnsrr be the solution?
checkdnsrr will return the DNS records, but not every domain has DNS records (i.e. some dropped/newly registered domains have 'No Nameserver' in the Whois). Speaking of whois, I think that's the way forward. Only downside is you need to know the reponse, and servers, for every TLD. I hope that helped, Jay
It is way to complicated to check the whois record for all those tlds.... I am thinking about finding a domains IP, if that can be found we will consider it as active, if not, even if it is registered, it is not active. What you think?
If all the available nameservers are down, the script will return "not active" for domains that are actually active. www.php.net/gethostbyname That's the function you want, though. Jay