挖个 31 天前的坟 XD 。
@
kofip @
Tink @
happyz90 @
Shura @
winterbells @
9hills ,抱歉这么晚回复。
之前的描述有错误。根据 RFC 1035 的 spec ,域名要要求:
> 2.3.1. Preferred name syntax
> ...
> <domain> ::= <subdomain> | " "
> <subdomain> ::= <label> | <subdomain> "." <label>
> <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]
> <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
> <let-dig-hyp> ::= <let-dig> | "-"
> <let-dig> ::= <letter> | <digit>
> <letter> ::= any one of the 52 alphabetic characters A through Z in
upper case and a through z in lower case
> <digit> ::= any one of the ten digits 0 through 9
以上为名称的定义。
> 2.3.4. Size limits
>
> Various objects and parameters in the DNS have size limits. They are
listed below. Some could be easily changed, others are more
fundamental.
>
> labels 63 octets or less
> names 255 octets or less
其中 `octets` 可以理解为 `字符`。字符的定义,参见 2.3.1
---
source:
http://www.ietf.org/rfc/rfc1035.txt