5

RFC 1738によると:Uniform Resource Locator(URL):3.1。一般的なインターネットスキームの構文、ホストコンポーネントにはドットが含まれている必要があります(例:「example.com」)。つまり、1つのドメインラベルのみで構成されている可能性がありますか?

4

1 に答える 1

2

いいえ、ホストにドットを含める必要はありません。つまり、はい、1つのドメインラベルだけで問題ありません。を見て、domain(https://www.rfc-editor.org/rfc/rfc1034#section-3.5 subdomainlabel

<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

このドキュメントは、https://www.rfc-editor.org/rfc/rfc1738#section-3.1から参照され、ホストの命名規則について説明しています。

于 2011-08-18T15:31:30.197 に答える