您可以在子域中使用哪些字符?
示例:对于 someSub.example.com
的 someSub
部分。
我知道您可以使用字母、数字和连字符,但是其他字符呢?可以使用_
(下划线)吗?
最佳答案
字母(重音 à 除外)、数字 0-9 和连字符。
http://en.wikipedia.org/wiki/Domain_name 摘抄: 域名中可以使用的有效字符有:
a-z
0-9
- but not as a starting or ending character
. as a separator for the textual portions of a domain name
来自https://www.rfc-editor.org/rfc/rfc1035
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
TTL positive values of a signed 32 bit number.
UDP messages 512 octets or less
关于subdomain - 子域中允许使用哪些字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7111881/