URL 各部分的名称和最大长度 [英] Names and maximum lengths of the parts of a URL
问题描述
在此网址中:
http://www.subdomain.domainname.abc.xyz.com.us/directory/filename.extension
- 每个部分的名称是什么?
- 每个部分的最大长度是多少?例如子域、域名、顶级域……
- 每个部分的名称是什么?
<块引用>
子域是属于更大域的域;唯一不是子域的域是 根域.例如,west.example.com
和 east.example.com
是 example.com
域的子域,而后者又是一个子域com 顶级域 (TLD).子域"表示相对依赖,而不是绝对依赖:例如,wikipedia.org
包含 org
域的子域,en.wikipedia.org
包含域 wikipedia.org
的子域.
- 每个部分的最大长度是多少?例如子域,域名,顶级域名……
<块引用>
理论上这个细分可以下降到 127 层深,每个 DNS 标签可以包含最多 63 个字符,只要整个域名的总长度不超过 255 个字符.但实际上,大多数域名注册管理机构都限制为 253 个字符.
In this URL:
http://www.subdomain.domainname.abc.xyz.com.us/directory/filename.extension
- What is the name of each part?
- What is maximum length of each part? e.g. subdomain, domain name, top-level domain…
The Wikipedia entry for Subdomain answers both questions:
- What is the name of each part?
A subdomain is a domain that is part of a larger domain; the only domain that is not also a subdomain is the root domain. For example,
west.example.com
andeast.example.com
are subdomains of theexample.com
domain, which in turn is a subdomain of the com top-level domain (TLD). A "subdomain" expresses relative dependence, not absolute dependence: for example,wikipedia.org
comprises a subdomain of theorg
domain, anden.wikipedia.org
comprises a subdomain of the domainwikipedia.org
.
- What is maximum length of each part? e.g. subdomain, domain name, top-level domain…
In theory this subdivision can go down to 127 levels deep, and each DNS label can contain up to 63 characters, as long as the whole domain name does not exceed a total length of 255 characters. But in practice most domain registries limit at 253 characters.
这篇关于URL 各部分的名称和最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!