checking if domain name is available

Posted on 2007-08-10
Medium Priority
Last Modified: 2010-04-16
When you try register a new domain name with any hosting provider, they check if the domain name is available first.  

My question is how do they do this?  What database do they check too see if the domain name is already registered or not?

Question by:ellandrd
LVL 48

Accepted Solution

hernst42 earned 1600 total points
ID: 19669032
You can use the function http://www.php.net/manual/en/function.dns-get-record.php to check for a domain, if the query fails, the domain does not exists.

Assisted Solution

mc1arke earned 400 total points
ID: 19669086
As per hernst42's comment - the way to check a domains existence (or not) is to check if it has a DNS record (the record that points to where the domain is 'parked'). If that does exists then the domain (probably) isn't available. The other way is to do a whois lookup on the domain and see if it has registrants details against it (some domains may have DNS records even while pending deletion, a whois lookup will show up-to-date information on the domain status)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question