What are the allowed characters in a subdomain?

前端 未结 4 1627
花落未央
花落未央 2020-11-28 11:02

What characters are you allowed to use in a subdomain?

Example: for someSub.example.com the someSub portion.

I know you can use le

4条回答
  •  再見小時候
    2020-11-28 11:17

    Letters (except stressed à), Numbers 0-9 and Hyphen.

    http://en.wikipedia.org/wiki/Domain_name excerpt: Valid characters that can be used in a domain name are:

    a-z
    0-9
    - but not as a starting or ending character
    . as a separator for the textual portions of a domain name
    

    From http://tools.ietf.org/html/rfc1035

    Various objects and parameters in the DNS have size limits. They are listed below. Some could be easily changed, others are more fundamental.

    labels          63 octets or less
    names           255 octets or less
    TTL             positive values of a signed 32 bit number.
    UDP messages    512 octets or less
    

提交回复
热议问题