[1] [DFN[LDH [RUBYB[ラベル]@en[label]]]]は、 [[DNS]] において、 [[letter]]、 [[数字]]、[[ハイフン]]で構成される[[ラベル]]のことを言います [WEAK[(より厳密には >>8)]]。 元々は単に「[[ラベル]]」とも呼ばれていましたが、 [[IDN]] における[[ラベル]]は[[非ASCII文字]]に拡張されているため、 [[IDNA2008]] では 「[[LDHラベル]]」という語を導入しています。 [3] これは元をたどれば [[RFC 952]] で「[DFN[[RUBYB[[[ホスト名]]]@en[hostname]]]]」 と言っていたものに近いです [SRC[>>2]] が、若干の違いがあります (>>14)。 あるいは [[RFC 1034]] の3.5節で「[DFN[[RUBYB[好ましい名前の構文]@en[preferred name syntax]]]]」 と言われていたものを [[RFC 1123]] で変更したものと構文的に同じです [SRC[>>2]]。 * 仕様書 - [14] [CITE@en[RFC 952 - DoD Internet host table specification]] - [13] [[RFC 1034]] - [15] [CITE@en[RFC 1123 - Requirements for Internet Hosts - Application and Support]] @@ [[STD 13]], [[STD 3]] - [2] [[IDNA 2008]] [CITE@en[RFC 5890 - Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework]] * 構文 [8] [[LDHラベル]]とは、 - [5] [[ASCII]] の [[letter]]、[[数字]]、[[ハイフン]]で構成される[[文字列]]であること - [6] 最初と最後が[[ハイフン]]ではないこと - [7] 63[[オクテット]]を超えないこと ... という条件を満たすもの ([[DNSラベル]]) です。 [SRC[>>2]] * 分類 - [17] [[R-LDHラベル]] - [18] [[NR-LDHラベル]] [19] [[IDNA]] で正しいとされるのは [[NR-LDHラベル]]と、 [[R-LDHラベル]]のうち [[Aラベル]]だけです。 [WEAK[(他に [[Uラベル]]もありますが、 [[Uラベル]]は [[LDHラベル]]ではありません。)]] [[XNラベル]]ではない[[R-LDHラベル]]や[[偽Aラベル]]は正しくない[[ラベル]]ということになります。 * 歴史 [12] 以前は先頭1文字が [CODE(ABNF)@en[[[DIGIT]]]] であることも認められていませんでしたが、 [[RFC 1123]] で緩和されています。 ** RFC 952 より [10] [SRC[>>14]] > 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. > [PRE(ABNF code)[ ::= *["."] ::= [*[]] ]PRE] ** RFC 1034 より [16] [SRC[>>13]] > [PRE(BNF)[ ::= | " " ::=