如何在我的网站上添加域可用性检查 [英] How to add domain availability check on my website

查看:95
本文介绍了如何在我的网站上添加域可用性检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

c#中的代码用于检查域名是否可用于注册。

此链接示例



http://www.1and1.com/domain-names#stage [ ^ ]



< br $>


i试图在网上找到帮助但是失败了。

有人可以帮我这么做吗?

解决方案

域可用性是通过名为whois的协议确定的。如果域名不可用,您将获得其注册数据。如果域名可用,您将无法获得所有者数据。您可以阅读有关如何发送\ceceive whois消息的信息,或者您可以使用已经知道如何执行此操作的预先编写的组件,例如



https://whoisclient.codeplex.com/ [ ^ ]



https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/ [ ^ ]


请参阅此内容,

http://stackoverflow.com/questions/1868631/check-if-domain-is-available-for-purchase-c-sharp [ ^ ]





http://www.vbasic.net/check-domain-name-availability-real-time-enom-api-visual-basic-asp-net-4-5/ [ ^ ]

what will be the code in c# to check whether domain name is available for registration or not.
example is given at this link

http://www.1and1.com/domain-names#stage[^]



i have tried to find help on net but failed.
can someone help me to do this?

解决方案

Domain availability is determined via a protocol called "whois". If a domain is not available you'll get data back on its registration. If the domain is available you won't get owner data back. You can read up on how to send\receive whois messages or you can just use a pre-written component that already knows how to do this like

https://whoisclient.codeplex.com/[^]

https://coderbuddy.wordpress.com/2010/10/12/a-simple-c-class-to-get-whois-information/[^]


Refer this,
http://stackoverflow.com/questions/1868631/check-if-domain-is-available-for-purchase-c-sharp[^]


http://www.vbasic.net/check-domain-name-availability-real-time-enom-api-visual-basic-asp-net-4-5/[^]


这篇关于如何在我的网站上添加域可用性检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆