What is the maximum length of an IDNA converted domain name?

后端 未结 3 2177
执念已碎
执念已碎 2021-02-15 04:19

First things first:

I\'m storing multiple domains to a database, after I\'ve converted each and every domain name to it\'s IDNA version. What I need to

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-15 04:54

    My understanding is that the 255-character limit is to be considered after the IDNA conversion.

    This is because DNS records have this character limit, and in general DNS records can only contain letters, digits and hyphens (from Wikipedia). The DNS server therefore uses the Punycode version of the IDN for its record, not the Unicode version.

提交回复
热议问题