3491
PROPOSED STANDARD

Nameprep: A Stringprep Profile for Internationalized Domain Names (IDN) (Obsoleted)

Authors: P. Hoffman, M. Blanchet
Date: March 2003
Area: int
Working Group: idn
Stream: IETF
Obsoleted by: RFC 5891

Abstract

This document describes how to prepare internationalized domain name (IDN) labels in order to increase the likelihood that name input and name comparison work in ways that make sense for typical users throughout the world. This profile of the stringprep protocol is used as part of a suite of on-the-wire protocols for internationalizing the Domain Name System (DNS). [STANDARDS-TRACK]

RFC 3491: Nameprep: A Stringprep Profile for Internationalized Domain Names (IDN) [RFC Home] [TEXT|PDF|HTML] [Tracker] [IPR] [Info page]

Obsoleted by: 5891 PROPOSED STANDARD
Network Working Group                                         P. Hoffman
Request for Comments: 3491                                    IMC & VPNC
Category: Standards Track                                    M. Blanchet
                                                                Viagenie
                                                              March 2003


                   <span class="h1">Nameprep: A Stringprep Profile for</span>
                  <span class="h1">Internationalized Domain Names (IDN)</span>

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2003).  All Rights Reserved.

Abstract

   This document describes how to prepare internationalized domain name
   (IDN) labels in order to increase the likelihood that name input and
   name comparison work in ways that make sense for typical users
   throughout the world.  This profile of the stringprep protocol is
   used as part of a suite of on-the-wire protocols for
   internationalizing the Domain Name System (DNS).

<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>

   This document specifies processing rules that will allow users to
   enter internationalized domain names (IDNs) into applications and
   have the highest chance of getting the content of the strings
   correct.  It is a profile of stringprep [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>].  These
   processing rules are only intended for internationalized domain
   names, not for arbitrary text.

   This profile defines the following, as required by [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>].

   -  The intended applicability of the profile: internationalized
      domain names processed by IDNA.

   -  The character repertoire that is the input and output to
      stringprep:  Unicode 3.2, specified in <a href="#section-2">section 2</a>.




<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 1]</span>

<span id="page-2" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


   -  The mappings used: specified in <a href="#section-3">section 3</a>.

   -  The Unicode normalization used: specified in <a href="#section-4">section 4</a>.

   -  The characters that are prohibited as output: specified in <a href="#section-5">section</a>
      <a href="#section-5">5</a>.

   -  Bidirectional character handling: specified in <a href="#section-6">section 6</a>.

<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a> Interaction of protocol parts</span>

   Nameprep is used by the IDNA [<a href="#ref-IDNA" title=""Internationalizing Domain Names in Applications (IDNA)"">IDNA</a>] protocol for preparing domain
   names; it is not designed for any other purpose.  It is explicitly
   not designed for processing arbitrary free text and SHOULD NOT be
   used for that purpose.  Nameprep is a profile of Stringprep
   [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>].  Implementations of Nameprep MUST fully implement
   Stringprep.

   Nameprep is used to process domain name labels, not domain names.
   IDNA calls nameprep for each label in a domain name, not for the
   whole domain name.

<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a> Terminology</span>

   The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY"
   in this document are to be interpreted as described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC</a>
   <a href="./rfc2119">2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].

<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Character Repertoire</span>

   This profile uses Unicode 3.2, as defined in [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>] <a href="#appendix-A">Appendix A</a>.

<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Mapping</span>

   This profile specifies mapping using the following tables from
   [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>]:

   Table B.1
   Table B.2

<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Normalization</span>

   This profile specifies using Unicode normalization form KC, as
   described in [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>].







<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 2]</span>

<span id="page-3" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Prohibited Output</span>

   This profile specifies prohibiting using the following tables from
   [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>]:

   Table C.1.2
   Table C.2.2
   Table C.3
   Table C.4
   Table C.5
   Table C.6
   Table C.7
   Table C.8
   Table C.9

   IMPORTANT NOTE: This profile MUST be used with the IDNA protocol.
   The IDNA protocol has additional prohibitions that are checked
   outside of this profile.

<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Bidirectional characters</span>

   This profile specifies checking bidirectional strings as described in
   [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>] <a href="#section-6">section 6</a>.

<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Unassigned Code Points in Internationalized Domain Names</span>

   If the processing in [<a href="#ref-IDNA" title=""Internationalizing Domain Names in Applications (IDNA)"">IDNA</a>] specifies that a list of unassigned code
   points be used, the system uses table A.1 from [<a href="#ref-STRINGPREP" title=""Preparation of Internationalized Strings ("">STRINGPREP</a>] as its
   list of unassigned code points.

<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>

<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a> Normative References</span>

   [<a id="ref-RFC2119">RFC2119</a>]    Bradner, S., "Key words for use in RFCs to Indicate
                Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.

   [<a id="ref-STRINGPREP">STRINGPREP</a>] Hoffman, P. and M. Blanchet, "Preparation of
                Internationalized Strings ("stringprep")", <a href="./rfc3454">RFC 3454</a>,
                December 2002.

   [<a id="ref-IDNA">IDNA</a>]       Faltstrom, P., Hoffman, P. and A. Costello,
                "Internationalizing Domain Names in Applications
                (IDNA)", <a href="./rfc3490">RFC 3490</a>, March 2003.







<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 3]</span>

<span id="page-4" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a> Informative references</span>

   [<a id="ref-STD13">STD13</a>]      Mockapetris, P., "Domain names - concepts and
                facilities", STD 13, <a href="./rfc1034">RFC 1034</a>, and "Domain names -
                implementation and specification", STD 13, <a href="./rfc1035">RFC 1035</a>,
                November 1987.

<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>

   The Unicode and ISO/IEC 10646 repertoires have many characters that
   look similar.  In many cases, users of security protocols might do
   visual matching, such as when comparing the names of trusted third
   parties.  Because it is impossible to map similar-looking characters
   without a great deal of context such as knowing the fonts used,
   stringprep does nothing to map similar-looking characters together
   nor to prohibit some characters because they look like others.

   Security on the Internet partly relies on the DNS.  Thus, any change
   to the characteristics of the DNS can change the security of much of
   the Internet.

   Domain names are used by users to connect to Internet servers.  The
   security of the Internet would be compromised if a user entering a
   single internationalized name could be connected to different servers
   based on different interpretations of the internationalized domain
   name.

   Current applications might assume that the characters allowed in
   domain names will always be the same as they are in [<a href="#ref-STD13" title=""Domain names - concepts and facilities"">STD13</a>].  This
   document vastly increases the number of characters available in
   domain names.  Every program that uses "special" characters in
   conjunction with domain names may be vulnerable to attack based on
   the new characters allowed by this specification.


















<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 4]</span>

<span id="page-5" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. IANA Considerations</span>

   This is a profile of stringprep.  It has been registered by the IANA
   in the stringprep profile registry
   (www.iana.org/assignments/stringprep-profiles).

      Name of this profile:
         Nameprep

      RFC in which the profile is defined:
         This document.

      Indicator whether or not this is the newest version of the
      profile:
         This is the first version of Nameprep.

<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Acknowledgements</span>

   Many people from the IETF IDN Working Group and the Unicode Technical
   Committee contributed ideas that went into this document.

   The IDN Nameprep design team made many useful changes to the
   document.  That team and its advisors include:

      Asmus Freytag
      Cathy Wissink
      Francois Yergeau
      James Seng
      Marc Blanchet
      Mark Davis
      Martin Duerst
      Patrik Faltstrom
      Paul Hoffman

   Additional significant improvements were proposed by:

      Jonathan Rosenne
      Kent Karlsson
      Scott Hollenbeck
      Dave Crocker
      Erik Nordmark
      Matitiahu Allouche









<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 5]</span>

<span id="page-6" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Authors' Addresses</span>

   Paul Hoffman
   Internet Mail Consortium and VPN Consortium
   127 Segre Place
   Santa Cruz, CA  95060 USA

   EMail: [email protected] and [email protected]


   Marc Blanchet
   Viagenie inc.
   2875 boul. Laurier, bur. 300
   Ste-Foy, Quebec, Canada, G1V 2M2

   EMail: [email protected]



































<span class="grey">Hoffman & Blanchet          Standards Track                     [Page 6]</span>

<span id="page-7" ></span>
<span class="grey"><a href="./rfc3491">RFC 3491</a>                      IDN Nameprep                    March 2003</span>


<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>.  Full Copyright Statement</span>

   Copyright (C) The Internet Society (2003).  All Rights Reserved.

   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.

   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.

   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Acknowledgement

   Funding for the RFC Editor function is currently provided by the
   Internet Society.



















Hoffman & Blanchet          Standards Track                     [Page 7]

Additional Resources