美文网首页
DNS 规则

DNS 规则

作者: cz000 | 来源:发表于2017-12-14 08:46 被阅读0次

The definitive descriptions of the rules for forming domain names appear in RFC 1035, RFC 1123, and RFC 2181. A domain name consists of one or more parts, technically called labels, that are conventionally concatenated, and delimited by dots, such as example.com.

The right-most label conveys the top-level domain; for example, the domain name www.example.com belongs to the top-level domain com.

The hierarchy of domains descends from right to left; each label to the left specifies a subdivision, or subdomain of the domain to the right. For example: the label example specifies a subdomain of the com domain, and www is a subdomain of example.com. This tree of subdivisions may have up to 127 levels.[citation needed]

A label may contain zero to 63 characters. The null label, of length zero, is reserved for the root zone. The full domain name may not exceed the length of 253 characters in its textual representation.[1] In the internal binary representation of the DNS the maximum length requires 255 octets of storage, as it also stores the length of the name.[3]

Although domain names may theoretically consist of any character representable in an octet, host names use a preferred format and character set. The characters allowed in their labels are a subset of the ASCII character set, consisting of characters a through z, A through Z, digits 0 through 9, and hyphen. This rule is known as the LDH rule (letters, digits, hyphen). Domain names are interpreted in case-independent manner.[19] Labels may not start or end with a hyphen.[20] An additional rule requires that top-level domain names should not be all-numeric.[20]The definitive descriptions of the rules for forming domain names appear in RFC 1035, RFC 1123, and RFC 2181. A domain name consists of one or more parts, technically called labels, that are conventionally concatenated, and delimited by dots, such as example.com.

The right-most label conveys the top-level domain; for example, the domain name www.example.com belongs to the top-level domain com.

The hierarchy of domains descends from right to left; each label to the left specifies a subdivision, or subdomain of the domain to the right. For example: the label example specifies a subdomain of the com domain, and www is a subdomain of example.com. This tree of subdivisions may have up to 127 levels.[ citation needed ]

A label may contain zero to 63 characters. The null label, of length zero, is reserved for the root zone. The full domain name may not exceed the length of 253 characters in its textual representation.[1] In the internal binary representation of the DNS the maximum length requires 255 octets of storage, as it also stores the length of the name.[3]

Although domain names may theoretically consist of any character representable in an octet, host names use a preferred format and character set. The characters allowed in their labels are a subset of the ASCII character set, consisting of characters a through z, A through Z, digits 0 through 9, and hyphen. This rule is known as the LDH rule (letters, digits, hyphen). Domain names are interpreted in case-independent manner.[19] Labels may not start or end with a hyphen.[20] An additional rule requires that top-level domain names should not be all-numeric.[20]

Internationalized domain names
The limited set of ASCII characters permitted in the DNS prevented the representation of names and words of many languages in their native alphabets or scripts. To make this possible, ICANN approved the Internationalizing Domain Names in Applications (IDNA) system, by which user applications, such as web browsers, map Unicode strings into the valid DNS character set using Punycode. In 2009 ICANN approved the installation of internationalized domain name country code top-level domains (ccTLDs). In addition, many registries of the existing top level domain names (TLDs) have adopted the IDNA system.###

Internationalized domain names

The limited set of ASCII characters permitted in the DNS prevented the representation of names and words of many languages in their native alphabets or scripts. To make this possible, ICANN approved the Internationalizing Domain Names in Applications (IDNA) system, by which user applications, such as web browsers, map Unicode strings into the valid DNS character set using Punycode. In 2009 ICANN approved the installation of internationalized domain name country code top-level domains (ccTLDs). In addition, many registries of the existing top level domain names (TLDs) have adopted the IDNA system.

根据wiki,域名限制如下(点号之间的都称之为Lable)

  • Lable 包括字母(A-Z)数字(0-9)和‘-’,且不能以‘-’开头和结尾,不区分大小写。
  • 每个Lable的长度不超过63个字符。
  • 小于127个 Lable。
  • 域名总长度不超过253个字符。
  • 顶级域名不能全是数字
  • IDNA系统中使用Punnycode对Unicode字符进行转化以支持多语言

相关文章

  • DNS 规则

    The definitive descriptions of the rules for forming doma...

  • url到返回数据

    url 解析,根据 dns 系统进行 ip 查找 url为啥要解析,dns查询规则是什么? DNS在数据库上存在域...

  • 规则9 — 减少 DNS 查找

    DNS查询有时间开销,通常一个浏览器查找一个给定主机名的IP地址需要20-120ms。 缓存DNS:缓存DNS查询...

  • DNS介绍以及模拟dns解析过程实验

    DNS简介DNS域名的解析过程DNS服务器的资源记录实验模拟DNS解析过程 DNS简介   DNS(Domain ...

  • 20170919 DNS服务(一)

    DNS简介DNS解析关键概念BIND 一、DNS简介: (一)DNS服务 DNS:Domain Name Serv...

  • DNS

    DNS服务 DNS域名 DNS域名结构 DNS解析 DNS服务器类型 区域传输 DNS解析 区域数据库 添加CNA...

  • 服务器宝塔面板改DNS

    把服务器DNS改为 阿里DNS 主要DNS:223.5.5.5 备用DNS:223.6.6.6

  • DNS优选

    DNS优选 翻墙DNS PandaDNS: http://dns.pandadns.xyz/ 可以翻墙的DNS。支...

  • 8-4 DNS

    DNS解析了解吗 DNS解析 查询方式 DNS劫持 DNS解析转发问题

  • DNS explained

    DNS explained What is DNS DNS stands for Domain Name Syst...

网友评论

      本文标题:DNS 规则

      本文链接:https://www.haomeiwen.com/subject/xclnyxtx.html