2ld.1ld(二级域名。一级(顶级)域名)名称列表?
我正在寻找一个列表(如果不是全部也没关系,只需要与生成虚拟数据一样大)
我正在寻找一个列表,就像
.net.nz
.co.nz
.edu.nz
.govt.nz
.com.au
.govt.au
.com
.net
我可以在其中找到列表的任何想法一样?
I am looking for a list of (doesnt matter if its not all, just needs to be big as its for generating dummy data)
Im looking for a list like
.net.nz
.co.nz
.edu.nz
.govt.nz
.com.au
.govt.au
.com
.net
any ideas where I can locate a list?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此处有答案。其中大部分与 http://publicsuffix.org/ 的使用有关,甚至还有一些使用它的实现是用某些语言给出的,比如 Ruby。
There are answers here. Most of them are relating to the use of http://publicsuffix.org/, and even some implementations to use it were given in some languages, like Ruby.
要获取所有 ICANN 域,此 Python 代码应该适合您:
删除
break
语句以获取私有域。请小心,因为您将获得如下所示的一些域名:
*.kh
(例如http://www.mptc.gov.kh/dns_registration.htm
)。*
是通配符。To get all the ICANN domains, this python code should work for you:
Remove the
break
statement to get private domains as well.Be careful as you will get some domains like this:
*.kh
(e.g.http://www.mptc.gov.kh/dns_registration.htm
). The*
is a wildcard.