How to get whois information of a domain name in my program?
问题 I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this? 回答1: I think, the easiest way is a socket connection to a whois server on port 43. Send the domainname followed by a newline and read the response. 回答2: I found a perfect C# example on dotnet-snippets.com ( which doesn't exist anymore ). It's 11 lines of code to copy and paste straight into your own application. /// <summary> /// Gets the whois information. /// </summary> /// <param