域名中不应出现下划线

• 本文约491字,阅读大致需要1分钟Networking

目前我知道国内有至少两家主要的互联网公司用了这样的域名,不知道他们用的是什么域名服务器,至少BIND 9是不支持这样做的。

RFC 952(美国国防部互联网主机表规范)中的相关条文如下:

  1. A “name” (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9),minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit components of “domain style names”. (See RFC-921, “Domain Name System Implementation Schedule”,for background). No blank or space characters are permitted as part of a name. No distinction is made between upper and lower case. The first character must be an alpha character. The last character must not be a minus sign or period. A host which serves as a GATEWAY should have “-GATEWAY” or “-GW” as part of its name. Hosts which do not serve as Internet gateways should not use “-GATEWAY” and “-GW” as part of their names. A host which is a TAC should have “-TAC” as the last part of its host name, if it is a DoD host. Single character names or nicknames are not allowed.

而成为正式Internet规范STD 13的RFC 1034则如此建议(Section 3.5 Preferred name syntax):

因此,在域名的主机名称中出现_是不规范的,这个字符不应出现在A RR中。BIND 9会明确拒绝这种配置,并且其resolver也会拒绝接受这类域名。在使用中,应尽量避免这种情况。

搜索文章…(按ESC退出)