如何获得在我的计划域名的whois信息? [英] How to get whois information of a domain name in my program?
本文介绍了如何获得在我的计划域名的whois信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的C#/ Java程序获得一个域名的whois信息。有一个简单的方法来做到这一点?
I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this?
推荐答案
我认为,最简单的方法是一个套接字连接到whois服务器上的端口43发送域名跟着一个换行符和读取响应。
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.
这篇关于如何获得在我的计划域名的whois信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文