Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you check if a domain name exists?

Not only easy ones like .com or .net, but also, .co.uk, .fr, .gov.rw ... ?

Should I really make a huge mapping "tld to relevant whois server", or is there an easier way ?

like image 848
BraveSirFoobar Avatar asked Jan 20 '09 10:01

BraveSirFoobar


People also ask

How do I locate a domain name?

Use ICANN Lookup The Internet Corporation for Assigned Names and Numbers (ICANN) is a non-profit organization that collects domain information. Use the ICANN Lookup tool to find your domain host. Go to lookup.icann.org. In the search field, enter your domain name and click Lookup.

How do I prove a domain is mine?

Any name registered in the DNS is a domain. To get proof of domain ownership, you can use a WHOIS lookup service. WHOIS is a public service that stores and displays information about domain names, such as contact information for the domain's owner.

Do domains exist?

For context, there are about 350 million domains in existence today.


2 Answers

http://php.net/manual/en/function.checkdnsrr.php

if (checkdnsrr('test.nl', 'A')) // or use ANY or for other see above link
{
    echo 'Domain exists';
}
else
{
    echo 'Domain does not exist';
}
like image 164
Mike Avatar answered Sep 22 '22 11:09

Mike


http://whois.net/ any good?

like image 40
DanSingerman Avatar answered Sep 22 '22 11:09

DanSingerman