Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this questionI wonder how to make a domain name checker (testing for availability) for top-level domains?
Eg. to check if the domain: stackoverflow.com or stackoverflow.dk is available or not.
Do I need to be subscribed to a service to do this, or is there some simple magic behind such test?
Thanks
You need to do a WHOIS lookup - see http://www.aspdev.org/articles/build-whois-lookup-asp.net/
It seems there is a protocol for this check "A Domain Availability Check". I am not sure if this is only for the german .de domains or for all domains. Maybe this will help you a little bit.
Your best bet would be to create a webRequest
object to fire off a whois request. You can then parse the results from the HTML using regex. I've done this on a number of occasions and it works well (providing the underlying website doesn't change)
an helpfullweb service client http://www.whoislookup.be/wswhois/wswhois.asmx
referance
http://www.whoislookup.be/using-an-webservice-to-access-whois-search.aspx
精彩评论