我使用 tldextract (版本 2.2.2)从 URL 中提取子域/域/后缀。
我最近注意到一个令我惊讶的结果:
>>> from tldextract import extract
>>> extract('http://althawrah.ye/archives/597366')
ExtractResult(subdomain='', domain='', suffix='althawrah.ye')
althawrah 没有被选为域,而是被选为后缀的一部分。 这是为什么?
四处窥探,我注意到 Public Suffice List本身 .ye 是少数使用前导星号的后缀之一,例如
// fj : https://en.wikipedia.org/wiki/.fj
*.fj
// ye : http://www.y.net.ye/services/domain_name.htm
*.ye
这里的言外之意就是这些后缀不允许在后缀下直接注册域名,而是必须注册为三级域名。但是,http://althawrah.ye/ 的情况不是 ;即 althawrah is not listed as a second-level domain of .ye .那么,这是怎么回事?
请您参考如下方法:
根据列表的历史记录和更新过程的描述,似乎也门条目完全错误或已过时。条目was added before 2007 (当列表从 CVS 迁移到 git 时),而 list guidelines声明:
Changes [for ICANN Domains] need to either come from a representative of the registry (authenticated in a similar manner to below) or be from public sources such as a registry website.
website linked in the list (自 2002 年以来未更改)提供的细节很少,但确实提到了 www.yourcompany.com.ye 格式的 URL,这可能是 *.ye 规则的来源。 IANA's root zone database指定 TeleYemen作为当前的 TLD 经理,但在他们的网站上没有提及域注册。假定的“二级域”的维基百科列表是 added in 2008 by a Canadian user链接到一家名为 phpcomet(存档 here)的公司的自删除网站,该公司声称在列出的二级域名中出售域名。然而,谷歌搜索“site:ye”会显示这些域之外的大量站点(例如 press24.ye、ndc.ye)并且无法为其中许多站点(me.ye、co.ye、ltd.ye)提供任何结果, plc.ye).
我不确定如何更新官方列表,但如果正确的条目是这样的,我不会感到惊讶:
ye
com.ye
edu.ye
gov.ye
org.ye
