rfc3491.txt revision 1.1 1 1.1 elric
2 1.1 elric
3 1.1 elric
4 1.1 elric
5 1.1 elric
6 1.1 elric
7 1.1 elric Network Working Group P. Hoffman
8 1.1 elric Request for Comments: 3491 IMC & VPNC
9 1.1 elric Category: Standards Track M. Blanchet
10 1.1 elric Viagenie
11 1.1 elric March 2003
12 1.1 elric
13 1.1 elric
14 1.1 elric Nameprep: A Stringprep Profile for
15 1.1 elric Internationalized Domain Names (IDN)
16 1.1 elric
17 1.1 elric Status of this Memo
18 1.1 elric
19 1.1 elric This document specifies an Internet standards track protocol for the
20 1.1 elric Internet community, and requests discussion and suggestions for
21 1.1 elric improvements. Please refer to the current edition of the "Internet
22 1.1 elric Official Protocol Standards" (STD 1) for the standardization state
23 1.1 elric and status of this protocol. Distribution of this memo is unlimited.
24 1.1 elric
25 1.1 elric Copyright Notice
26 1.1 elric
27 1.1 elric Copyright (C) The Internet Society (2003). All Rights Reserved.
28 1.1 elric
29 1.1 elric Abstract
30 1.1 elric
31 1.1 elric This document describes how to prepare internationalized domain name
32 1.1 elric (IDN) labels in order to increase the likelihood that name input and
33 1.1 elric name comparison work in ways that make sense for typical users
34 1.1 elric throughout the world. This profile of the stringprep protocol is
35 1.1 elric used as part of a suite of on-the-wire protocols for
36 1.1 elric internationalizing the Domain Name System (DNS).
37 1.1 elric
38 1.1 elric 1. Introduction
39 1.1 elric
40 1.1 elric This document specifies processing rules that will allow users to
41 1.1 elric enter internationalized domain names (IDNs) into applications and
42 1.1 elric have the highest chance of getting the content of the strings
43 1.1 elric correct. It is a profile of stringprep [STRINGPREP]. These
44 1.1 elric processing rules are only intended for internationalized domain
45 1.1 elric names, not for arbitrary text.
46 1.1 elric
47 1.1 elric This profile defines the following, as required by [STRINGPREP].
48 1.1 elric
49 1.1 elric - The intended applicability of the profile: internationalized
50 1.1 elric domain names processed by IDNA.
51 1.1 elric
52 1.1 elric - The character repertoire that is the input and output to
53 1.1 elric stringprep: Unicode 3.2, specified in section 2.
54 1.1 elric
55 1.1 elric
56 1.1 elric
57 1.1 elric
58 1.1 elric Hoffman & Blanchet Standards Track [Page 1]
59 1.1 elric
61 1.1 elric RFC 3491 IDN Nameprep March 2003
62 1.1 elric
63 1.1 elric
64 1.1 elric - The mappings used: specified in section 3.
65 1.1 elric
66 1.1 elric - The Unicode normalization used: specified in section 4.
67 1.1 elric
68 1.1 elric - The characters that are prohibited as output: specified in section
69 1.1 elric 5.
70 1.1 elric
71 1.1 elric - Bidirectional character handling: specified in section 6.
72 1.1 elric
73 1.1 elric 1.1 Interaction of protocol parts
74 1.1 elric
75 1.1 elric Nameprep is used by the IDNA [IDNA] protocol for preparing domain
76 1.1 elric names; it is not designed for any other purpose. It is explicitly
77 1.1 elric not designed for processing arbitrary free text and SHOULD NOT be
78 1.1 elric used for that purpose. Nameprep is a profile of Stringprep
79 1.1 elric [STRINGPREP]. Implementations of Nameprep MUST fully implement
80 1.1 elric Stringprep.
81 1.1 elric
82 1.1 elric Nameprep is used to process domain name labels, not domain names.
83 1.1 elric IDNA calls nameprep for each label in a domain name, not for the
84 1.1 elric whole domain name.
85 1.1 elric
86 1.1 elric 1.2 Terminology
87 1.1 elric
88 1.1 elric The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY"
89 1.1 elric in this document are to be interpreted as described in BCP 14, RFC
90 1.1 elric 2119 [RFC2119].
91 1.1 elric
92 1.1 elric 2. Character Repertoire
93 1.1 elric
94 1.1 elric This profile uses Unicode 3.2, as defined in [STRINGPREP] Appendix A.
95 1.1 elric
96 1.1 elric 3. Mapping
97 1.1 elric
98 1.1 elric This profile specifies mapping using the following tables from
99 1.1 elric [STRINGPREP]:
100 1.1 elric
101 1.1 elric Table B.1
102 1.1 elric Table B.2
103 1.1 elric
104 1.1 elric 4. Normalization
105 1.1 elric
106 1.1 elric This profile specifies using Unicode normalization form KC, as
107 1.1 elric described in [STRINGPREP].
108 1.1 elric
109 1.1 elric
110 1.1 elric
111 1.1 elric
112 1.1 elric
113 1.1 elric
114 1.1 elric
115 1.1 elric Hoffman & Blanchet Standards Track [Page 2]
116 1.1 elric
118 1.1 elric RFC 3491 IDN Nameprep March 2003
119 1.1 elric
120 1.1 elric
121 1.1 elric 5. Prohibited Output
122 1.1 elric
123 1.1 elric This profile specifies prohibiting using the following tables from
124 1.1 elric [STRINGPREP]:
125 1.1 elric
126 1.1 elric Table C.1.2
127 1.1 elric Table C.2.2
128 1.1 elric Table C.3
129 1.1 elric Table C.4
130 1.1 elric Table C.5
131 1.1 elric Table C.6
132 1.1 elric Table C.7
133 1.1 elric Table C.8
134 1.1 elric Table C.9
135 1.1 elric
136 1.1 elric IMPORTANT NOTE: This profile MUST be used with the IDNA protocol.
137 1.1 elric The IDNA protocol has additional prohibitions that are checked
138 1.1 elric outside of this profile.
139 1.1 elric
140 1.1 elric 6. Bidirectional characters
141 1.1 elric
142 1.1 elric This profile specifies checking bidirectional strings as described in
143 1.1 elric [STRINGPREP] section 6.
144 1.1 elric
145 1.1 elric 7. Unassigned Code Points in Internationalized Domain Names
146 1.1 elric
147 1.1 elric If the processing in [IDNA] specifies that a list of unassigned code
148 1.1 elric points be used, the system uses table A.1 from [STRINGPREP] as its
149 1.1 elric list of unassigned code points.
150 1.1 elric
151 1.1 elric 8. References
152 1.1 elric
153 1.1 elric 8.1 Normative References
154 1.1 elric
155 1.1 elric [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
156 1.1 elric Requirement Levels", BCP 14, RFC 2119, March 1997.
157 1.1 elric
158 1.1 elric [STRINGPREP] Hoffman, P. and M. Blanchet, "Preparation of
159 1.1 elric Internationalized Strings ("stringprep")", RFC 3454,
160 1.1 elric December 2002.
161 1.1 elric
162 1.1 elric [IDNA] Faltstrom, P., Hoffman, P. and A. Costello,
163 1.1 elric "Internationalizing Domain Names in Applications
164 1.1 elric (IDNA)", RFC 3490, March 2003.
165 1.1 elric
166 1.1 elric
167 1.1 elric
168 1.1 elric
169 1.1 elric
170 1.1 elric
171 1.1 elric
172 1.1 elric Hoffman & Blanchet Standards Track [Page 3]
173 1.1 elric
175 1.1 elric RFC 3491 IDN Nameprep March 2003
176 1.1 elric
177 1.1 elric
178 1.1 elric 8.2 Informative references
179 1.1 elric
180 1.1 elric [STD13] Mockapetris, P., "Domain names - concepts and
181 1.1 elric facilities", STD 13, RFC 1034, and "Domain names -
182 1.1 elric implementation and specification", STD 13, RFC 1035,
183 1.1 elric November 1987.
184 1.1 elric
185 1.1 elric 9. Security Considerations
186 1.1 elric
187 1.1 elric The Unicode and ISO/IEC 10646 repertoires have many characters that
188 1.1 elric look similar. In many cases, users of security protocols might do
189 1.1 elric visual matching, such as when comparing the names of trusted third
190 1.1 elric parties. Because it is impossible to map similar-looking characters
191 1.1 elric without a great deal of context such as knowing the fonts used,
192 1.1 elric stringprep does nothing to map similar-looking characters together
193 1.1 elric nor to prohibit some characters because they look like others.
194 1.1 elric
195 1.1 elric Security on the Internet partly relies on the DNS. Thus, any change
196 1.1 elric to the characteristics of the DNS can change the security of much of
197 1.1 elric the Internet.
198 1.1 elric
199 1.1 elric Domain names are used by users to connect to Internet servers. The
200 1.1 elric security of the Internet would be compromised if a user entering a
201 1.1 elric single internationalized name could be connected to different servers
202 1.1 elric based on different interpretations of the internationalized domain
203 1.1 elric name.
204 1.1 elric
205 1.1 elric Current applications might assume that the characters allowed in
206 1.1 elric domain names will always be the same as they are in [STD13]. This
207 1.1 elric document vastly increases the number of characters available in
208 1.1 elric domain names. Every program that uses "special" characters in
209 1.1 elric conjunction with domain names may be vulnerable to attack based on
210 1.1 elric the new characters allowed by this specification.
211 1.1 elric
212 1.1 elric
213 1.1 elric
214 1.1 elric
215 1.1 elric
216 1.1 elric
217 1.1 elric
218 1.1 elric
219 1.1 elric
220 1.1 elric
221 1.1 elric
222 1.1 elric
223 1.1 elric
224 1.1 elric
225 1.1 elric
226 1.1 elric
227 1.1 elric
228 1.1 elric
229 1.1 elric Hoffman & Blanchet Standards Track [Page 4]
230 1.1 elric
232 1.1 elric RFC 3491 IDN Nameprep March 2003
233 1.1 elric
234 1.1 elric
235 1.1 elric 10. IANA Considerations
236 1.1 elric
237 1.1 elric This is a profile of stringprep. It has been registered by the IANA
238 1.1 elric in the stringprep profile registry
239 1.1 elric (www.iana.org/assignments/stringprep-profiles).
240 1.1 elric
241 1.1 elric Name of this profile:
242 1.1 elric Nameprep
243 1.1 elric
244 1.1 elric RFC in which the profile is defined:
245 1.1 elric This document.
246 1.1 elric
247 1.1 elric Indicator whether or not this is the newest version of the
248 1.1 elric profile:
249 1.1 elric This is the first version of Nameprep.
250 1.1 elric
251 1.1 elric 11. Acknowledgements
252 1.1 elric
253 1.1 elric Many people from the IETF IDN Working Group and the Unicode Technical
254 1.1 elric Committee contributed ideas that went into this document.
255 1.1 elric
256 1.1 elric The IDN Nameprep design team made many useful changes to the
257 1.1 elric document. That team and its advisors include:
258 1.1 elric
259 1.1 elric Asmus Freytag
260 1.1 elric Cathy Wissink
261 1.1 elric Francois Yergeau
262 1.1 elric James Seng
263 1.1 elric Marc Blanchet
264 1.1 elric Mark Davis
265 1.1 elric Martin Duerst
266 1.1 elric Patrik Faltstrom
267 1.1 elric Paul Hoffman
268 1.1 elric
269 1.1 elric Additional significant improvements were proposed by:
270 1.1 elric
271 1.1 elric Jonathan Rosenne
272 1.1 elric Kent Karlsson
273 1.1 elric Scott Hollenbeck
274 1.1 elric Dave Crocker
275 1.1 elric Erik Nordmark
276 1.1 elric Matitiahu Allouche
277 1.1 elric
278 1.1 elric
279 1.1 elric
280 1.1 elric
281 1.1 elric
282 1.1 elric
283 1.1 elric
284 1.1 elric
285 1.1 elric
286 1.1 elric Hoffman & Blanchet Standards Track [Page 5]
287 1.1 elric
289 1.1 elric RFC 3491 IDN Nameprep March 2003
290 1.1 elric
291 1.1 elric
292 1.1 elric 12. Authors' Addresses
293 1.1 elric
294 1.1 elric Paul Hoffman
295 1.1 elric Internet Mail Consortium and VPN Consortium
296 1.1 elric 127 Segre Place
297 1.1 elric Santa Cruz, CA 95060 USA
298 1.1 elric
299 1.1 elric EMail: paul.hoffman (a] imc.org and paul.hoffman (a] vpnc.org
300 1.1 elric
301 1.1 elric
302 1.1 elric Marc Blanchet
303 1.1 elric Viagenie inc.
304 1.1 elric 2875 boul. Laurier, bur. 300
305 1.1 elric Ste-Foy, Quebec, Canada, G1V 2M2
306 1.1 elric
307 1.1 elric EMail: Marc.Blanchet (a] viagenie.qc.ca
308 1.1 elric
309 1.1 elric
310 1.1 elric
311 1.1 elric
312 1.1 elric
313 1.1 elric
314 1.1 elric
315 1.1 elric
316 1.1 elric
317 1.1 elric
318 1.1 elric
319 1.1 elric
320 1.1 elric
321 1.1 elric
322 1.1 elric
323 1.1 elric
324 1.1 elric
325 1.1 elric
326 1.1 elric
327 1.1 elric
328 1.1 elric
329 1.1 elric
330 1.1 elric
331 1.1 elric
332 1.1 elric
333 1.1 elric
334 1.1 elric
335 1.1 elric
336 1.1 elric
337 1.1 elric
338 1.1 elric
339 1.1 elric
340 1.1 elric
341 1.1 elric
342 1.1 elric
343 1.1 elric Hoffman & Blanchet Standards Track [Page 6]
344 1.1 elric
346 1.1 elric RFC 3491 IDN Nameprep March 2003
347 1.1 elric
348 1.1 elric
349 1.1 elric 13. Full Copyright Statement
350 1.1 elric
351 1.1 elric Copyright (C) The Internet Society (2003). All Rights Reserved.
352 1.1 elric
353 1.1 elric This document and translations of it may be copied and furnished to
354 1.1 elric others, and derivative works that comment on or otherwise explain it
355 1.1 elric or assist in its implementation may be prepared, copied, published
356 1.1 elric and distributed, in whole or in part, without restriction of any
357 1.1 elric kind, provided that the above copyright notice and this paragraph are
358 1.1 elric included on all such copies and derivative works. However, this
359 1.1 elric document itself may not be modified in any way, such as by removing
360 1.1 elric the copyright notice or references to the Internet Society or other
361 1.1 elric Internet organizations, except as needed for the purpose of
362 1.1 elric developing Internet standards in which case the procedures for
363 1.1 elric copyrights defined in the Internet Standards process must be
364 1.1 elric followed, or as required to translate it into languages other than
365 1.1 elric English.
366 1.1 elric
367 1.1 elric The limited permissions granted above are perpetual and will not be
368 1.1 elric revoked by the Internet Society or its successors or assigns.
369 1.1 elric
370 1.1 elric This document and the information contained herein is provided on an
371 1.1 elric "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
372 1.1 elric TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
373 1.1 elric BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
374 1.1 elric HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
375 1.1 elric MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
376 1.1 elric
377 1.1 elric Acknowledgement
378 1.1 elric
379 1.1 elric Funding for the RFC Editor function is currently provided by the
380 1.1 elric Internet Society.
381 1.1 elric
382 1.1 elric
383 1.1 elric
384 1.1 elric
385 1.1 elric
386 1.1 elric
387 1.1 elric
388 1.1 elric
389 1.1 elric
390 1.1 elric
391 1.1 elric
392 1.1 elric
393 1.1 elric
394 1.1 elric
395 1.1 elric
396
397
398
399
400 Hoffman & Blanchet Standards Track [Page 7]
401
403