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

后端 未结 4 1151
别跟我提以往
别跟我提以往 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:42

    The full domain name may not exceed a total length of 253 characters in its external dotted-label specification.

    http://en.wikipedia.org/wiki/Domain_Name_System

    If you are getting anywhere close to 253 characters, I think you should look for a shorter domain name...

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-03 17:45

    As a demonstration, this website has a 63 characters domain name, the maximum allowed: http://63-characters-is-the-longest-possible-domain-name-for-a-website.com

    0 讨论(0)
  • 2021-02-03 17:54

    Each label may contain up to 63 characters.

    0 讨论(0)
提交回复
热议问题