我怎样才能发现域名是否已从客户端注册?

时间:2022-06-07 16:06:16

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.

我想向一个Web应用程序的用户展示他们输入预期域名的表单,然后使用JavaScript查看客户端是否可用。

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?

有没有办法在不涉及我自己的主机的情况下做到这一点?就像从用户的浏览器向一些查找域的Web服务发送AJAX请求一样?这样的服务存在吗?

3 个解决方案

#1


0  

There are a few domain lookup API services out there (e.g., http://www.dynadot.com/domain/api2.html), although I don't know any that support callbacks. I haven't read much of the documentation, either.

有一些域查找API服务(例如,http://www.dynadot.com/domain/api2.html),虽然我不知道任何支持回调。我也没有读过很多文档。

From the surface, it looks like you'd have to make the request server-side (using PHP or whatever you use) and return the results back to the user (AJAX most likely). It's not completely client-side (e.g., JSONP), but it should be good enough.

从表面上看,您似乎必须在服务器端(使用PHP或您使用的任何东西)进行请求,并将结果返回给用户(最有可能是AJAX)。它不是完全客户端(例如,JSONP),但它应该足够好。

#2


3  

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.

最好的方法是使用ajaxwhois服务。这是一个完整的基于ajax的调用。您可以使用jQuery的.ajax函数。

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

要自动启动域搜索,请使用以下URL:http://ajaxwhois.com/?domainname或http://ajaxwhois.com/?domainname.extension

Reference:- ajaxwhois

#3


1  

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

看看这个: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.

我在Javascript和Python中实现了reg-dom-libs(http://www.dkim-reputation.org/regdom-libs/)。

#1


0  

There are a few domain lookup API services out there (e.g., http://www.dynadot.com/domain/api2.html), although I don't know any that support callbacks. I haven't read much of the documentation, either.

有一些域查找API服务(例如,http://www.dynadot.com/domain/api2.html),虽然我不知道任何支持回调。我也没有读过很多文档。

From the surface, it looks like you'd have to make the request server-side (using PHP or whatever you use) and return the results back to the user (AJAX most likely). It's not completely client-side (e.g., JSONP), but it should be good enough.

从表面上看,您似乎必须在服务器端(使用PHP或您使用的任何东西)进行请求,并将结果返回给用户(最有可能是AJAX)。它不是完全客户端(例如,JSONP),但它应该足够好。

#2


3  

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.

最好的方法是使用ajaxwhois服务。这是一个完整的基于ajax的调用。您可以使用jQuery的.ajax函数。

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

要自动启动域搜索,请使用以下URL:http://ajaxwhois.com/?domainname或http://ajaxwhois.com/?domainname.extension

Reference:- ajaxwhois

#3


1  

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

看看这个: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.

我在Javascript和Python中实现了reg-dom-libs(http://www.dkim-reputation.org/regdom-libs/)。