检查域可用性Java [英] Check domain availability Java
本文介绍了检查域可用性Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个可靠的方法,所以只检查连接是否可以
解决方案
这里有一个好的Whois Java客户端:
https://github.com/ethauvin/Whois
您可以直接从命令行或界面运行它:
//不要包括www
Whois.main(new String [] {skytouch.com});
Is there a relatively simple way in Java to check if a domain is available or not?
I need a reliable method, so only checking if the connection can be made is not enough.
解决方案
There's a good Whois Java client here:
https://github.com/ethauvin/Whois
You can run it from the command line or interface with it directly:
// don't include the www
Whois.main(new String[] {"skytouch.com"});
这篇关于检查域可用性Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文