所有顶级域的列表 [英] List of all top level domains

查看:119
本文介绍了所有顶级域的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了很多线程来说明如何以两字母或三字母格式获取国家/地区代码,但是没有什么适合我的任务的. 我正在寻找一种方法来获取数组中或所有其他顶级域.我知道C#中有CultureInfo类,但可以列出国家/地区代码.它不包含通用TLD,例如:"com". 这是我找到的国家/地区代码的完整列表.

I found a lot of threads explaining how to get the country-codes in two- or three-letter format, but nothing that fits to my task. I'm heading for a way to get all the top level domains in an array or something. I know there's the CultureInfo class in C# but which could list the country codes. It doesn't include generic TLD, e.g.: "com". Here's the complete list of country codes I found.

推荐答案

所有TLD的权威列表: http://www.iana.org/domains/root/db

The authoritative list of all TLDs: http://www.iana.org/domains/root/db

根域数据库表示顶级域的委派详细信息,包括诸如.com之类的gTLD和诸如.uk之类的国家代码TLD.

The Root Zone Database represents the delegation details of top-level domains, including gTLDs such as .com, and country-code TLDs such as .uk.

您也可以将其作为TXT(更易于解析): http://data .iana.org/TLD/tlds-alpha-by-domain.txt

You can get this as TXT, too (easier to parse): http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Wikipedia还列出了所有TLD,但并非权威性: Internet顶级域列表

Wikipedia also lists all TLDs, but it's not authoritative, of course: List of Internet top-level domains

Mozilla基金会维护一个公共后缀列表,用于有效顶级域名,即,您可以在其下直接注册名称(例如.co.uk而不是.uk): http://publicsuffix.org/

The Mozilla Foundation maintains a Public Suffix List for effective top-level domains, i.e., those under which you can directly register names (for example .co.uk instead of .uk): http://publicsuffix.org/

这篇关于所有顶级域的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆