RFC 3490: Internationalised domain names

Summary

In March 2003, Patrik Fältström, Paul Hoffman and Adam Costello described Internationalized Domain Names in Applications, IDNA for short, in RFC 3490. It allows domain names with umlauts, accents or non-Latin scripts to be used without changing DNS: applications convert them into ASCII names with the prefix xn--. In August 2010, RFC 5890 and 5891 replaced the scheme with IDNA2008, which among other things allows the German ß as a character of its own.

The conversion happens in the application

IDNA changes neither DNS servers nor resolvers. Instead, before the query the application converts a name such as müller.de into an ASCII form using the ToASCII operation: first Nameprep normalises the characters, then Punycode from RFC 3492 encodes them into letters, digits and hyphens, and the prefix xn-- is prepended. For display, ToUnicode reverses the process.

Because the conversion takes place in every application, international names initially worked very differently in browsers, mail programs and tools. Some programs still show the xn-- form today, others the Unicode form.

Look-alike characters and the ß

RFC 3490 already warns about visual confusion: more characters mean more opportunities for similar-looking names. Cyrillic and Latin letters that look the same were later used for phishing; browsers therefore often display suspicious names as Punycode.

Important for German domains: IDNA2003 maps ß to ss, so that straße.de and strasse.de pointed to the same name. IDNA2008 treats ß as a character of its own, so the same spelling can lead to different ASCII names depending on the scheme.

Ideas

  • International names are converted in the application, not in DNS.
  • ToASCII produces an ASCII form with the prefix xn-- before the query.
  • Nameprep normalises characters, Punycode encodes them into ASCII.
  • ToUnicode makes the ASCII form readable again for display.
  • Look-alike characters open up new deceptions.
  • IDNA2003 maps ß to ss, IDNA2008 does not.

Insights

  • A compatibility layer over old infrastructure works but distributes responsibility to every single application.
  • More means of expression always mean more means of deception; security has to take this into account from the start.

Facts

  • RFC 3490 appeared in March 2003, together with Punycode in RFC 3492.
  • The ACE prefix is xn--.
  • RFC 5890 and RFC 5891 from August 2010 replace RFC 3490 (IDNA2008).
  • RFC 5894 explains the changed handling of ß and the Greek final sigma.

References

Remarks

  • On Linux, idn2 or Python’s idna module can be used to check which ASCII form a name receives under IDNA2008.

Recommendations

  • For domains with umlauts or ß, also register the ASCII variants and the ss spelling.
  • Use the xn-- form in mail servers and certificates and test both spellings.
  • Train users to check suspicious names in the address bar for unusual characters.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.