Check if domain is available for purchase - C# [cl

2020-05-29 02:52发布

Is there any way that I check if a certain domain is available for purchase? If there is any library out there that will do this?

THanks

标签: c# asp.net
5条回答
别忘想泡老子
2楼-- · 2020-05-29 03:34

Take a look at this question: Who provides a WHOIS API?

..Yet another Google search that leads back to SO...

查看更多
家丑人穷心不美
3楼-- · 2020-05-29 03:38

you can write an c# application using Watin Libarary and set the application go to a site like (www.register.com or ... ) and get the result you can set the application to read from a list of your domain names and get the results .

查看更多
一夜七次
4楼-- · 2020-05-29 03:46

Get a windows build of the common linux whois client or something similar. Do a system call to run that and parse its output.

Kind of kludgy but it is easy and quick.

查看更多
看我几分像从前
5楼-- · 2020-05-29 03:49

Why do you need C# to do this? can't you do a WHOIS or a grep?

查看更多
何必那么认真
6楼-- · 2020-05-29 03:50

You can take a look at: http://www.internetbs.net/ResellerRegistrarDomainNameAPI/api/01_domain_related/01_domain_check Its pretty straight forward to use:

https://testapi.internet.bs/Domain/Check?ApiKey=testapi&Password=testpass&Domain=example.com 

and the result would be:

transactid=e504cdbf00e7821e954f0f5a65249ff0
status=UNAVAILABLE
domain=example.com
minregperiod=1Y
maxregperiod=10Y
registrarlockallowed=YES
privatewhoisallowed=YES
realtimeregistration=YES
查看更多
登录 后发表回答