2011-08-18 53 views

回答

2

不,主機不必包含點。也就是說,只有一個域名標籤很好。看看domainsubdomainlabelhttp://tools.ietf.org/html/rfc1034#section-3.5):

<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 

這份文件是從http://tools.ietf.org/html/rfc1738#section-3.1引用來描述主機的命名規則。

+1

+1,但也許你可以編輯鏈接到RFC 1034第3.5節和RFC 1738引用主機名稱規則的解釋? – Kevin

+0

謝謝。我看到了。我只是不明白如何閱讀它(第一行的結尾是否意味着''只能是一個空格?)。但是,現在我發現''只能是一個'

相關問題