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.
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.
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 ...
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With