Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I discover whether a domain is registered from the client?

I'd like to present the users of a Web app with a form where they type in a prospective domain name, and then using JavaScript the client looks up whether it's available.

Is there a way to do that without involving my own host machine? Like sending an AJAX request from the user's browser to some Web service that looks up domains? Does such a service exist?

like image 550
Ethan Avatar asked Nov 28 '25 00:11

Ethan


2 Answers

The best way is to use ajaxwhois service. This is a complete ajax based call. You can use .ajax function of jQuery for the same.

To automatically launch a domain search, use this url: http://ajaxwhois.com/?domainname or http://ajaxwhois.com/?domainname.extension

Reference:- ajaxwhois

like image 150
A_Var Avatar answered Nov 29 '25 14:11

A_Var


Check this out: http://lbolla.wordpress.com/2011/04/05/get-registered-domain-in-python-and-javascript/

I've implemented reg-dom-libs (http://www.dkim-reputation.org/regdom-libs/) in Javascript and Python.

like image 24
lbolla Avatar answered Nov 29 '25 12:11

lbolla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!