Punycode (internationalized domain names)
What is Punycode (internationalized domain names)?
Punycode, defined in RFC 3492, is the ASCII encoding that lets internationalized domain names with non-ASCII characters work inside the DNS, converting a label like café.example into xn--caf-dma.example under the hood. AdminKit's WHOIS tool resolves both the Unicode and xn-- forms of a domain when looking up registration data.
By AdminKit team, Netbase JSC · Updated
Punycode (RFC 3492, also tracked on its IETF Datatracker page) is the encoding that lets internationalized domain names (IDNs) containing non-ASCII characters — Cyrillic, Chinese, Arabic script, accented Latin letters — work inside the DNS, which only ever transmits ASCII labels on the wire. An IDN label is converted to an ASCII-Compatible Encoding (ACE) form prefixed with xn—, so a label like café.example becomes xn—caf-dma.example internally, as specified by the IDNA2008 protocol, RFC 5891, governing which characters are valid. ICANN’s own IDN explainer uses the same terms: the Unicode form a user sees is the “U-label,” and the xn— ACE form used on the wire is the “A-label.” Because IDNA2008 changed rules from the 2003 version, the Unicode Consortium’s UTS #46 defines compatibility processing that lets client software such as browsers reach domains valid under either IDNA2003 or IDNA2008. Browsers and other clients convert back and forth automatically, displaying the readable Unicode form while the DNS and WHOIS/RDAP records underneath use the xn— form. The same mechanism is also a known phishing vector: visually similar characters from different scripts (homoglyphs) can form lookalike domains that render identically to a legitimate one. This technique is called a homograph attack. AdminKit’s WHOIS tool resolves both the Unicode and xn— forms of a domain when looking up registration data. Each label of a domain’s FQDN is converted independently, so a mixed-script name can have some labels in Punycode and others in plain ASCII.
Punycode (internationalized domain names) is part of AdminKit’s DNS cluster; the full AdminKit glossary lists other related terms.
Frequently asked questions
Why does an internationalized domain name need Punycode?
Because the DNS only ever transmits ASCII labels on the wire, so a label containing non-ASCII characters is converted to an ASCII-Compatible Encoding (ACE) form prefixed with xn--.
What governs which characters are valid in an IDN label?
The IDNA2008 protocol, RFC 5891.
Is Punycode a phishing risk?
Yes -- visually similar characters from different scripts (homoglyphs) can form lookalike domains that render identically to a legitimate one.
Is a whole domain name converted to Punycode as one unit?
No -- each label of a domain's FQDN is converted independently, so a mixed-script name can have some labels in Punycode and others in plain ASCII.