Maximum length of a domain name without the http://www. & .com parts

后端 未结 4 1153
别跟我提以往
别跟我提以往 2021-02-03 17:27

What is the maximum length of the \'name\' part in a domain? I\'m referring to the google in http://www.google.com. How long can the google

4条回答
  •  无人共我
    2021-02-03 17:43

    "URI producers should use names that conform to the DNS syntax, even when use of DNS is not immediately apparent, and should limit these names to no more than 255 characters in length."

    http://tools.ietf.org/html/rfc3986

    "The DNS itself places only one restriction on the particular labels that can be used to identify resource records. That one restriction relates to the length of the label and the full name. The length of any one label is limited to between 1 and 63 octets. A full domain name is limited to 255 octets (including the separators)."

    http://tools.ietf.org/html/rfc2181

提交回复
热议问题