Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Node.js, how can I check whether a domain name is registered?

I'm building a simple webapp to teach myself node.js, and in it I need to check whether a certain domain name specified by the user is registered. I'm not really sure how to go about this and I'd appreciate it if anybody could enlighten me.

like image 728
Joe D Avatar asked Feb 17 '11 20:02

Joe D


People also ask

Where to check if a domain is registered?

Navigate to https://domains.google.com/registrar. Enter your preferred domain name in the search box. Review the search results to determine if the domain is available. If it is and you're ready to purchase, buy the domain.

How do I find my domain name node JS?

To do a domain availability/registered check (not a DNS check), either use the whois protocol, or specific registry service for checking domain availability (depends on the TLD) or use one registrar API that has the TLDs you need, since the registrars, through EPP typically, can do realtime availability checks at the ...

How do I check a domain?

Search the whois database, look up domain and IP owner information, and check out dozens of other statistics. Get all the data you need about a domain and everything associated with that domain anytime with a single search. Find a domain with the best domain registrar on the web. Start your domain search at Name.com.


2 Answers

Take a look at this article by Matt Brubeck:

http://limpet.net/mbrubeck/2010/01/13/si-unit-domains-node-js.html

There is a Node.js script that does exactly that.

like image 78
rsp Avatar answered Sep 27 '22 21:09

rsp


I think the best way to do this is to use the dns module to do a resolve, and if nothing is returned or an error is thrown it's not registered yet.

https://nodejs.org/api/dns.html

like image 37
Kevin Gorski Avatar answered Sep 27 '22 21:09

Kevin Gorski