rfc3490.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. Faltstrom
8 1.1 elric Request for Comments: 3490 Cisco
9 1.1 elric Category: Standards Track P. Hoffman
10 1.1 elric IMC & VPNC
11 1.1 elric A. Costello
12 1.1 elric UC Berkeley
13 1.1 elric March 2003
14 1.1 elric
15 1.1 elric
16 1.1 elric Internationalizing Domain Names in Applications (IDNA)
17 1.1 elric
18 1.1 elric Status of this Memo
19 1.1 elric
20 1.1 elric This document specifies an Internet standards track protocol for the
21 1.1 elric Internet community, and requests discussion and suggestions for
22 1.1 elric improvements. Please refer to the current edition of the "Internet
23 1.1 elric Official Protocol Standards" (STD 1) for the standardization state
24 1.1 elric and status of this protocol. Distribution of this memo is unlimited.
25 1.1 elric
26 1.1 elric Copyright Notice
27 1.1 elric
28 1.1 elric Copyright (C) The Internet Society (2003). All Rights Reserved.
29 1.1 elric
30 1.1 elric Abstract
31 1.1 elric
32 1.1 elric Until now, there has been no standard method for domain names to use
33 1.1 elric characters outside the ASCII repertoire. This document defines
34 1.1 elric internationalized domain names (IDNs) and a mechanism called
35 1.1 elric Internationalizing Domain Names in Applications (IDNA) for handling
36 1.1 elric them in a standard fashion. IDNs use characters drawn from a large
37 1.1 elric repertoire (Unicode), but IDNA allows the non-ASCII characters to be
38 1.1 elric represented using only the ASCII characters already allowed in so-
39 1.1 elric called host names today. This backward-compatible representation is
40 1.1 elric required in existing protocols like DNS, so that IDNs can be
41 1.1 elric introduced with no changes to the existing infrastructure. IDNA is
42 1.1 elric only meant for processing domain names, not free text.
43 1.1 elric
44 1.1 elric Table of Contents
45 1.1 elric
46 1.1 elric 1. Introduction.................................................. 2
47 1.1 elric 1.1 Problem Statement......................................... 3
48 1.1 elric 1.2 Limitations of IDNA....................................... 3
49 1.1 elric 1.3 Brief overview for application developers................. 4
50 1.1 elric 2. Terminology................................................... 5
51 1.1 elric 3. Requirements and applicability................................ 7
52 1.1 elric 3.1 Requirements.............................................. 7
53 1.1 elric 3.2 Applicability............................................. 8
54 1.1 elric 3.2.1. DNS resource records................................ 8
55 1.1 elric
56 1.1 elric
57 1.1 elric
58 1.1 elric Faltstrom, et al. Standards Track [Page 1]
59 1.1 elric
61 1.1 elric RFC 3490 IDNA March 2003
62 1.1 elric
63 1.1 elric
64 1.1 elric 3.2.2. Non-domain-name data types stored in domain names... 9
65 1.1 elric 4. Conversion operations......................................... 9
66 1.1 elric 4.1 ToASCII................................................... 10
67 1.1 elric 4.2 ToUnicode................................................. 11
68 1.1 elric 5. ACE prefix.................................................... 12
69 1.1 elric 6. Implications for typical applications using DNS............... 13
70 1.1 elric 6.1 Entry and display in applications......................... 14
71 1.1 elric 6.2 Applications and resolver libraries....................... 15
72 1.1 elric 6.3 DNS servers............................................... 15
73 1.1 elric 6.4 Avoiding exposing users to the raw ACE encoding........... 16
74 1.1 elric 6.5 DNSSEC authentication of IDN domain names................ 16
75 1.1 elric 7. Name server considerations.................................... 17
76 1.1 elric 8. Root server considerations.................................... 17
77 1.1 elric 9. References.................................................... 18
78 1.1 elric 9.1 Normative References...................................... 18
79 1.1 elric 9.2 Informative References.................................... 18
80 1.1 elric 10. Security Considerations...................................... 19
81 1.1 elric 11. IANA Considerations.......................................... 20
82 1.1 elric 12. Authors' Addresses........................................... 21
83 1.1 elric 13. Full Copyright Statement..................................... 22
84 1.1 elric
85 1.1 elric 1. Introduction
86 1.1 elric
87 1.1 elric IDNA works by allowing applications to use certain ASCII name labels
88 1.1 elric (beginning with a special prefix) to represent non-ASCII name labels.
89 1.1 elric Lower-layer protocols need not be aware of this; therefore IDNA does
90 1.1 elric not depend on changes to any infrastructure. In particular, IDNA
91 1.1 elric does not depend on any changes to DNS servers, resolvers, or protocol
92 1.1 elric elements, because the ASCII name service provided by the existing DNS
93 1.1 elric is entirely sufficient for IDNA.
94 1.1 elric
95 1.1 elric This document does not require any applications to conform to IDNA,
96 1.1 elric but applications can elect to use IDNA in order to support IDN while
97 1.1 elric maintaining interoperability with existing infrastructure. If an
98 1.1 elric application wants to use non-ASCII characters in domain names, IDNA
99 1.1 elric is the only currently-defined option. Adding IDNA support to an
100 1.1 elric existing application entails changes to the application only, and
101 1.1 elric leaves room for flexibility in the user interface.
102 1.1 elric
103 1.1 elric A great deal of the discussion of IDN solutions has focused on
104 1.1 elric transition issues and how IDN will work in a world where not all of
105 1.1 elric the components have been updated. Proposals that were not chosen by
106 1.1 elric the IDN Working Group would depend on user applications, resolvers,
107 1.1 elric and DNS servers being updated in order for a user to use an
108 1.1 elric internationalized domain name. Rather than rely on widespread
109 1.1 elric updating of all components, IDNA depends on updates to user
110 1.1 elric applications only; no changes are needed to the DNS protocol or any
111 1.1 elric DNS servers or the resolvers on user's computers.
112 1.1 elric
113 1.1 elric
114 1.1 elric
115 1.1 elric Faltstrom, et al. Standards Track [Page 2]
116 1.1 elric
118 1.1 elric RFC 3490 IDNA March 2003
119 1.1 elric
120 1.1 elric
121 1.1 elric 1.1 Problem Statement
122 1.1 elric
123 1.1 elric The IDNA specification solves the problem of extending the repertoire
124 1.1 elric of characters that can be used in domain names to include the Unicode
125 1.1 elric repertoire (with some restrictions).
126 1.1 elric
127 1.1 elric IDNA does not extend the service offered by DNS to the applications.
128 1.1 elric Instead, the applications (and, by implication, the users) continue
129 1.1 elric to see an exact-match lookup service. Either there is a single
130 1.1 elric exactly-matching name or there is no match. This model has served
131 1.1 elric the existing applications well, but it requires, with or without
132 1.1 elric internationalized domain names, that users know the exact spelling of
133 1.1 elric the domain names that the users type into applications such as web
134 1.1 elric browsers and mail user agents. The introduction of the larger
135 1.1 elric repertoire of characters potentially makes the set of misspellings
136 1.1 elric larger, especially given that in some cases the same appearance, for
137 1.1 elric example on a business card, might visually match several Unicode code
138 1.1 elric points or several sequences of code points.
139 1.1 elric
140 1.1 elric IDNA allows the graceful introduction of IDNs not only by avoiding
141 1.1 elric upgrades to existing infrastructure (such as DNS servers and mail
142 1.1 elric transport agents), but also by allowing some rudimentary use of IDNs
143 1.1 elric in applications by using the ASCII representation of the non-ASCII
144 1.1 elric name labels. While such names are very user-unfriendly to read and
145 1.1 elric type, and hence are not suitable for user input, they allow (for
146 1.1 elric instance) replying to email and clicking on URLs even though the
147 1.1 elric domain name displayed is incomprehensible to the user. In order to
148 1.1 elric allow user-friendly input and output of the IDNs, the applications
149 1.1 elric need to be modified to conform to this specification.
150 1.1 elric
151 1.1 elric IDNA uses the Unicode character repertoire, which avoids the
152 1.1 elric significant delays that would be inherent in waiting for a different
153 1.1 elric and specific character set be defined for IDN purposes by some other
154 1.1 elric standards developing organization.
155 1.1 elric
156 1.1 elric 1.2 Limitations of IDNA
157 1.1 elric
158 1.1 elric The IDNA protocol does not solve all linguistic issues with users
159 1.1 elric inputting names in different scripts. Many important language-based
160 1.1 elric and script-based mappings are not covered in IDNA and need to be
161 1.1 elric handled outside the protocol. For example, names that are entered in
162 1.1 elric a mix of traditional and simplified Chinese characters will not be
163 1.1 elric mapped to a single canonical name. Another example is Scandinavian
164 1.1 elric names that are entered with U+00F6 (LATIN SMALL LETTER O WITH
165 1.1 elric DIAERESIS) will not be mapped to U+00F8 (LATIN SMALL LETTER O WITH
166 1.1 elric STROKE).
167 1.1 elric
168 1.1 elric
169 1.1 elric
170 1.1 elric
171 1.1 elric
172 1.1 elric Faltstrom, et al. Standards Track [Page 3]
173 1.1 elric
175 1.1 elric RFC 3490 IDNA March 2003
176 1.1 elric
177 1.1 elric
178 1.1 elric An example of an important issue that is not considered in detail in
179 1.1 elric IDNA is how to provide a high probability that a user who is entering
180 1.1 elric a domain name based on visual information (such as from a business
181 1.1 elric card or billboard) or aural information (such as from a telephone or
182 1.1 elric radio) would correctly enter the IDN. Similar issues exist for ASCII
183 1.1 elric domain names, for example the possible visual confusion between the
184 1.1 elric letter 'O' and the digit zero, but the introduction of the larger
185 1.1 elric repertoire of characters creates more opportunities of similar
186 1.1 elric looking and similar sounding names. Note that this is a complex
187 1.1 elric issue relating to languages, input methods on computers, and so on.
188 1.1 elric Furthermore, the kind of matching and searching necessary for a high
189 1.1 elric probability of success would not fit the role of the DNS and its
190 1.1 elric exact matching function.
191 1.1 elric
192 1.1 elric 1.3 Brief overview for application developers
193 1.1 elric
194 1.1 elric Applications can use IDNA to support internationalized domain names
195 1.1 elric anywhere that ASCII domain names are already supported, including DNS
196 1.1 elric master files and resolver interfaces. (Applications can also define
197 1.1 elric protocols and interfaces that support IDNs directly using non-ASCII
198 1.1 elric representations. IDNA does not prescribe any particular
199 1.1 elric representation for new protocols, but it still defines which names
200 1.1 elric are valid and how they are compared.)
201 1.1 elric
202 1.1 elric The IDNA protocol is contained completely within applications. It is
203 1.1 elric not a client-server or peer-to-peer protocol: everything is done
204 1.1 elric inside the application itself. When used with a DNS resolver
205 1.1 elric library, IDNA is inserted as a "shim" between the application and the
206 1.1 elric resolver library. When used for writing names into a DNS zone, IDNA
207 1.1 elric is used just before the name is committed to the zone.
208 1.1 elric
209 1.1 elric There are two operations described in section 4 of this document:
210 1.1 elric
211 1.1 elric - The ToASCII operation is used before sending an IDN to something
212 1.1 elric that expects ASCII names (such as a resolver) or writing an IDN
213 1.1 elric into a place that expects ASCII names (such as a DNS master file).
214 1.1 elric
215 1.1 elric - The ToUnicode operation is used when displaying names to users,
216 1.1 elric for example names obtained from a DNS zone.
217 1.1 elric
218 1.1 elric It is important to note that the ToASCII operation can fail. If it
219 1.1 elric fails when processing a domain name, that domain name cannot be used
220 1.1 elric as an internationalized domain name and the application has to have
221 1.1 elric some method of dealing with this failure.
222 1.1 elric
223 1.1 elric IDNA requires that implementations process input strings with
224 1.1 elric Nameprep [NAMEPREP], which is a profile of Stringprep [STRINGPREP],
225 1.1 elric and then with Punycode [PUNYCODE]. Implementations of IDNA MUST
226 1.1 elric
227 1.1 elric
228 1.1 elric
229 1.1 elric Faltstrom, et al. Standards Track [Page 4]
230 1.1 elric
232 1.1 elric RFC 3490 IDNA March 2003
233 1.1 elric
234 1.1 elric
235 1.1 elric fully implement Nameprep and Punycode; neither Nameprep nor Punycode
236 1.1 elric are optional.
237 1.1 elric
238 1.1 elric 2. Terminology
239 1.1 elric
240 1.1 elric The key words "MUST", "SHALL", "REQUIRED", "SHOULD", "RECOMMENDED",
241 1.1 elric and "MAY" in this document are to be interpreted as described in BCP
242 1.1 elric 14, RFC 2119 [RFC2119].
243 1.1 elric
244 1.1 elric A code point is an integer value associated with a character in a
245 1.1 elric coded character set.
246 1.1 elric
247 1.1 elric Unicode [UNICODE] is a coded character set containing tens of
248 1.1 elric thousands of characters. A single Unicode code point is denoted by
249 1.1 elric "U+" followed by four to six hexadecimal digits, while a range of
250 1.1 elric Unicode code points is denoted by two hexadecimal numbers separated
251 1.1 elric by "..", with no prefixes.
252 1.1 elric
253 1.1 elric ASCII means US-ASCII [USASCII], a coded character set containing 128
254 1.1 elric characters associated with code points in the range 0..7F. Unicode
255 1.1 elric is an extension of ASCII: it includes all the ASCII characters and
256 1.1 elric associates them with the same code points.
257 1.1 elric
258 1.1 elric The term "LDH code points" is defined in this document to mean the
259 1.1 elric code points associated with ASCII letters, digits, and the hyphen-
260 1.1 elric minus; that is, U+002D, 30..39, 41..5A, and 61..7A. "LDH" is an
261 1.1 elric abbreviation for "letters, digits, hyphen".
262 1.1 elric
263 1.1 elric [STD13] talks about "domain names" and "host names", but many people
264 1.1 elric use the terms interchangeably. Further, because [STD13] was not
265 1.1 elric terribly clear, many people who are sure they know the exact
266 1.1 elric definitions of each of these terms disagree on the definitions. In
267 1.1 elric this document the term "domain name" is used in general. This
268 1.1 elric document explicitly cites [STD3] whenever referring to the host name
269 1.1 elric syntax restrictions defined therein.
270 1.1 elric
271 1.1 elric A label is an individual part of a domain name. Labels are usually
272 1.1 elric shown separated by dots; for example, the domain name
273 1.1 elric "www.example.com" is composed of three labels: "www", "example", and
274 1.1 elric "com". (The zero-length root label described in [STD13], which can
275 1.1 elric be explicit as in "www.example.com." or implicit as in
276 1.1 elric "www.example.com", is not considered a label in this specification.)
277 1.1 elric IDNA extends the set of usable characters in labels that are text.
278 1.1 elric For the rest of this document, the term "label" is shorthand for
279 1.1 elric "text label", and "every label" means "every text label".
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 Faltstrom, et al. Standards Track [Page 5]
287 1.1 elric
289 1.1 elric RFC 3490 IDNA March 2003
290 1.1 elric
291 1.1 elric
292 1.1 elric An "internationalized label" is a label to which the ToASCII
293 1.1 elric operation (see section 4) can be applied without failing (with the
294 1.1 elric UseSTD3ASCIIRules flag unset). This implies that every ASCII label
295 1.1 elric that satisfies the [STD13] length restriction is an internationalized
296 1.1 elric label. Therefore the term "internationalized label" is a
297 1.1 elric generalization, embracing both old ASCII labels and new non-ASCII
298 1.1 elric labels. Although most Unicode characters can appear in
299 1.1 elric internationalized labels, ToASCII will fail for some input strings,
300 1.1 elric and such strings are not valid internationalized labels.
301 1.1 elric
302 1.1 elric An "internationalized domain name" (IDN) is a domain name in which
303 1.1 elric every label is an internationalized label. This implies that every
304 1.1 elric ASCII domain name is an IDN (which implies that it is possible for a
305 1.1 elric name to be an IDN without it containing any non-ASCII characters).
306 1.1 elric This document does not attempt to define an "internationalized host
307 1.1 elric name". Just as has been the case with ASCII names, some DNS zone
308 1.1 elric administrators may impose restrictions, beyond those imposed by DNS
309 1.1 elric or IDNA, on the characters or strings that may be registered as
310 1.1 elric labels in their zones. Such restrictions have no impact on the
311 1.1 elric syntax or semantics of DNS protocol messages; a query for a name that
312 1.1 elric matches no records will yield the same response regardless of the
313 1.1 elric reason why it is not in the zone. Clients issuing queries or
314 1.1 elric interpreting responses cannot be assumed to have any knowledge of
315 1.1 elric zone-specific restrictions or conventions.
316 1.1 elric
317 1.1 elric In IDNA, equivalence of labels is defined in terms of the ToASCII
318 1.1 elric operation, which constructs an ASCII form for a given label, whether
319 1.1 elric or not the label was already an ASCII label. Labels are defined to
320 1.1 elric be equivalent if and only if their ASCII forms produced by ToASCII
321 1.1 elric match using a case-insensitive ASCII comparison. ASCII labels
322 1.1 elric already have a notion of equivalence: upper case and lower case are
323 1.1 elric considered equivalent. The IDNA notion of equivalence is an
324 1.1 elric extension of that older notion. Equivalent labels in IDNA are
325 1.1 elric treated as alternate forms of the same label, just as "foo" and "Foo"
326 1.1 elric are treated as alternate forms of the same label.
327 1.1 elric
328 1.1 elric To allow internationalized labels to be handled by existing
329 1.1 elric applications, IDNA uses an "ACE label" (ACE stands for ASCII
330 1.1 elric Compatible Encoding). An ACE label is an internationalized label
331 1.1 elric that can be rendered in ASCII and is equivalent to an
332 1.1 elric internationalized label that cannot be rendered in ASCII. Given any
333 1.1 elric internationalized label that cannot be rendered in ASCII, the ToASCII
334 1.1 elric operation will convert it to an equivalent ACE label (whereas an
335 1.1 elric ASCII label will be left unaltered by ToASCII). ACE labels are
336 1.1 elric unsuitable for display to users. The ToUnicode operation will
337 1.1 elric convert any label to an equivalent non-ACE label. In fact, an ACE
338 1.1 elric label is formally defined to be any label that the ToUnicode
339 1.1 elric operation would alter (whereas non-ACE labels are left unaltered by
340 1.1 elric
341 1.1 elric
342 1.1 elric
343 1.1 elric Faltstrom, et al. Standards Track [Page 6]
344 1.1 elric
346 1.1 elric RFC 3490 IDNA March 2003
347 1.1 elric
348 1.1 elric
349 1.1 elric ToUnicode). Every ACE label begins with the ACE prefix specified in
350 1.1 elric section 5. The ToASCII and ToUnicode operations are specified in
351 1.1 elric section 4.
352 1.1 elric
353 1.1 elric The "ACE prefix" is defined in this document to be a string of ASCII
354 1.1 elric characters that appears at the beginning of every ACE label. It is
355 1.1 elric specified in section 5.
356 1.1 elric
357 1.1 elric A "domain name slot" is defined in this document to be a protocol
358 1.1 elric element or a function argument or a return value (and so on)
359 1.1 elric explicitly designated for carrying a domain name. Examples of domain
360 1.1 elric name slots include: the QNAME field of a DNS query; the name argument
361 1.1 elric of the gethostbyname() library function; the part of an email address
362 1.1 elric following the at-sign (@) in the From: field of an email message
363 1.1 elric header; and the host portion of the URI in the src attribute of an
364 1.1 elric HTML <IMG> tag. General text that just happens to contain a domain
365 1.1 elric name is not a domain name slot; for example, a domain name appearing
366 1.1 elric in the plain text body of an email message is not occupying a domain
367 1.1 elric name slot.
368 1.1 elric
369 1.1 elric An "IDN-aware domain name slot" is defined in this document to be a
370 1.1 elric domain name slot explicitly designated for carrying an
371 1.1 elric internationalized domain name as defined in this document. The
372 1.1 elric designation may be static (for example, in the specification of the
373 1.1 elric protocol or interface) or dynamic (for example, as a result of
374 1.1 elric negotiation in an interactive session).
375 1.1 elric
376 1.1 elric An "IDN-unaware domain name slot" is defined in this document to be
377 1.1 elric any domain name slot that is not an IDN-aware domain name slot.
378 1.1 elric Obviously, this includes any domain name slot whose specification
379 1.1 elric predates IDNA.
380 1.1 elric
381 1.1 elric 3. Requirements and applicability
382 1.1 elric
383 1.1 elric 3.1 Requirements
384 1.1 elric
385 1.1 elric IDNA conformance means adherence to the following four requirements:
386 1.1 elric
387 1.1 elric 1) Whenever dots are used as label separators, the following
388 1.1 elric characters MUST be recognized as dots: U+002E (full stop), U+3002
389 1.1 elric (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61
390 1.1 elric (halfwidth ideographic full stop).
391 1.1 elric
392 1.1 elric 2) Whenever a domain name is put into an IDN-unaware domain name slot
393 1.1 elric (see section 2), it MUST contain only ASCII characters. Given an
394 1.1 elric internationalized domain name (IDN), an equivalent domain name
395 1.1 elric satisfying this requirement can be obtained by applying the
396 1.1 elric
397 1.1 elric
398 1.1 elric
399 1.1 elric
400 1.1 elric Faltstrom, et al. Standards Track [Page 7]
401 1.1 elric
403 1.1 elric RFC 3490 IDNA March 2003
404 1.1 elric
405 1.1 elric
406 1.1 elric ToASCII operation (see section 4) to each label and, if dots are
407 1.1 elric used as label separators, changing all the label separators to
408 1.1 elric U+002E.
409 1.1 elric
410 1.1 elric 3) ACE labels obtained from domain name slots SHOULD be hidden from
411 1.1 elric users when it is known that the environment can handle the non-ACE
412 1.1 elric form, except when the ACE form is explicitly requested. When it
413 1.1 elric is not known whether or not the environment can handle the non-ACE
414 1.1 elric form, the application MAY use the non-ACE form (which might fail,
415 1.1 elric such as by not being displayed properly), or it MAY use the ACE
416 1.1 elric form (which will look unintelligle to the user). Given an
417 1.1 elric internationalized domain name, an equivalent domain name
418 1.1 elric containing no ACE labels can be obtained by applying the ToUnicode
419 1.1 elric operation (see section 4) to each label. When requirements 2 and
420 1.1 elric 3 both apply, requirement 2 takes precedence.
421 1.1 elric
422 1.1 elric 4) Whenever two labels are compared, they MUST be considered to match
423 1.1 elric if and only if they are equivalent, that is, their ASCII forms
424 1.1 elric (obtained by applying ToASCII) match using a case-insensitive
425 1.1 elric ASCII comparison. Whenever two names are compared, they MUST be
426 1.1 elric considered to match if and only if their corresponding labels
427 1.1 elric match, regardless of whether the names use the same forms of label
428 1.1 elric separators.
429 1.1 elric
430 1.1 elric 3.2 Applicability
431 1.1 elric
432 1.1 elric IDNA is applicable to all domain names in all domain name slots
433 1.1 elric except where it is explicitly excluded.
434 1.1 elric
435 1.1 elric This implies that IDNA is applicable to many protocols that predate
436 1.1 elric IDNA. Note that IDNs occupying domain name slots in those protocols
437 1.1 elric MUST be in ASCII form (see section 3.1, requirement 2).
438 1.1 elric
439 1.1 elric 3.2.1. DNS resource records
440 1.1 elric
441 1.1 elric IDNA does not apply to domain names in the NAME and RDATA fields of
442 1.1 elric DNS resource records whose CLASS is not IN. This exclusion applies
443 1.1 elric to every non-IN class, present and future, except where future
444 1.1 elric standards override this exclusion by explicitly inviting the use of
445 1.1 elric IDNA.
446 1.1 elric
447 1.1 elric There are currently no other exclusions on the applicability of IDNA
448 1.1 elric to DNS resource records; it depends entirely on the CLASS, and not on
449 1.1 elric the TYPE. This will remain true, even as new types are defined,
450 1.1 elric unless there is a compelling reason for a new type to complicate
451 1.1 elric matters by imposing type-specific rules.
452 1.1 elric
453 1.1 elric
454 1.1 elric
455 1.1 elric
456 1.1 elric
457 1.1 elric Faltstrom, et al. Standards Track [Page 8]
458 1.1 elric
460 1.1 elric RFC 3490 IDNA March 2003
461 1.1 elric
462 1.1 elric
463 1.1 elric 3.2.2. Non-domain-name data types stored in domain names
464 1.1 elric
465 1.1 elric Although IDNA enables the representation of non-ASCII characters in
466 1.1 elric domain names, that does not imply that IDNA enables the
467 1.1 elric representation of non-ASCII characters in other data types that are
468 1.1 elric stored in domain names. For example, an email address local part is
469 1.1 elric sometimes stored in a domain label (hostmaster (a] example.com would be
470 1.1 elric represented as hostmaster.example.com in the RDATA field of an SOA
471 1.1 elric record). IDNA does not update the existing email standards, which
472 1.1 elric allow only ASCII characters in local parts. Therefore, unless the
473 1.1 elric email standards are revised to invite the use of IDNA for local
474 1.1 elric parts, a domain label that holds the local part of an email address
475 1.1 elric SHOULD NOT begin with the ACE prefix, and even if it does, it is to
476 1.1 elric be interpreted literally as a local part that happens to begin with
477 1.1 elric the ACE prefix.
478 1.1 elric
479 1.1 elric 4. Conversion operations
480 1.1 elric
481 1.1 elric An application converts a domain name put into an IDN-unaware slot or
482 1.1 elric displayed to a user. This section specifies the steps to perform in
483 1.1 elric the conversion, and the ToASCII and ToUnicode operations.
484 1.1 elric
485 1.1 elric The input to ToASCII or ToUnicode is a single label that is a
486 1.1 elric sequence of Unicode code points (remember that all ASCII code points
487 1.1 elric are also Unicode code points). If a domain name is represented using
488 1.1 elric a character set other than Unicode or US-ASCII, it will first need to
489 1.1 elric be transcoded to Unicode.
490 1.1 elric
491 1.1 elric Starting from a whole domain name, the steps that an application
492 1.1 elric takes to do the conversions are:
493 1.1 elric
494 1.1 elric 1) Decide whether the domain name is a "stored string" or a "query
495 1.1 elric string" as described in [STRINGPREP]. If this conversion follows
496 1.1 elric the "queries" rule from [STRINGPREP], set the flag called
497 1.1 elric "AllowUnassigned".
498 1.1 elric
499 1.1 elric 2) Split the domain name into individual labels as described in
500 1.1 elric section 3.1. The labels do not include the separator.
501 1.1 elric
502 1.1 elric 3) For each label, decide whether or not to enforce the restrictions
503 1.1 elric on ASCII characters in host names [STD3]. (Applications already
504 1.1 elric faced this choice before the introduction of IDNA, and can
505 1.1 elric continue to make the decision the same way they always have; IDNA
506 1.1 elric makes no new recommendations regarding this choice.) If the
507 1.1 elric restrictions are to be enforced, set the flag called
508 1.1 elric "UseSTD3ASCIIRules" for that label.
509 1.1 elric
510 1.1 elric
511 1.1 elric
512 1.1 elric
513 1.1 elric
514 1.1 elric Faltstrom, et al. Standards Track [Page 9]
515 1.1 elric
517 1.1 elric RFC 3490 IDNA March 2003
518 1.1 elric
519 1.1 elric
520 1.1 elric 4) Process each label with either the ToASCII or the ToUnicode
521 1.1 elric operation as appropriate. Typically, you use the ToASCII
522 1.1 elric operation if you are about to put the name into an IDN-unaware
523 1.1 elric slot, and you use the ToUnicode operation if you are displaying
524 1.1 elric the name to a user; section 3.1 gives greater detail on the
525 1.1 elric applicable requirements.
526 1.1 elric
527 1.1 elric 5) If ToASCII was applied in step 4 and dots are used as label
528 1.1 elric separators, change all the label separators to U+002E (full stop).
529 1.1 elric
530 1.1 elric The following two subsections define the ToASCII and ToUnicode
531 1.1 elric operations that are used in step 4.
532 1.1 elric
533 1.1 elric This description of the protocol uses specific procedure names, names
534 1.1 elric of flags, and so on, in order to facilitate the specification of the
535 1.1 elric protocol. These names, as well as the actual steps of the
536 1.1 elric procedures, are not required of an implementation. In fact, any
537 1.1 elric implementation which has the same external behavior as specified in
538 1.1 elric this document conforms to this specification.
539 1.1 elric
540 1.1 elric 4.1 ToASCII
541 1.1 elric
542 1.1 elric The ToASCII operation takes a sequence of Unicode code points that
543 1.1 elric make up one label and transforms it into a sequence of code points in
544 1.1 elric the ASCII range (0..7F). If ToASCII succeeds, the original sequence
545 1.1 elric and the resulting sequence are equivalent labels.
546 1.1 elric
547 1.1 elric It is important to note that the ToASCII operation can fail. ToASCII
548 1.1 elric fails if any step of it fails. If any step of the ToASCII operation
549 1.1 elric fails on any label in a domain name, that domain name MUST NOT be
550 1.1 elric used as an internationalized domain name. The method for dealing
551 1.1 elric with this failure is application-specific.
552 1.1 elric
553 1.1 elric The inputs to ToASCII are a sequence of code points, the
554 1.1 elric AllowUnassigned flag, and the UseSTD3ASCIIRules flag. The output of
555 1.1 elric ToASCII is either a sequence of ASCII code points or a failure
556 1.1 elric condition.
557 1.1 elric
558 1.1 elric ToASCII never alters a sequence of code points that are all in the
559 1.1 elric ASCII range to begin with (although it could fail). Applying the
560 1.1 elric ToASCII operation multiple times has exactly the same effect as
561 1.1 elric applying it just once.
562 1.1 elric
563 1.1 elric ToASCII consists of the following steps:
564 1.1 elric
565 1.1 elric 1. If the sequence contains any code points outside the ASCII range
566 1.1 elric (0..7F) then proceed to step 2, otherwise skip to step 3.
567 1.1 elric
568 1.1 elric
569 1.1 elric
570 1.1 elric
571 1.1 elric Faltstrom, et al. Standards Track [Page 10]
572 1.1 elric
574 1.1 elric RFC 3490 IDNA March 2003
575 1.1 elric
576 1.1 elric
577 1.1 elric 2. Perform the steps specified in [NAMEPREP] and fail if there is an
578 1.1 elric error. The AllowUnassigned flag is used in [NAMEPREP].
579 1.1 elric
580 1.1 elric 3. If the UseSTD3ASCIIRules flag is set, then perform these checks:
581 1.1 elric
582 1.1 elric (a) Verify the absence of non-LDH ASCII code points; that is, the
583 1.1 elric absence of 0..2C, 2E..2F, 3A..40, 5B..60, and 7B..7F.
584 1.1 elric
585 1.1 elric (b) Verify the absence of leading and trailing hyphen-minus; that
586 1.1 elric is, the absence of U+002D at the beginning and end of the
587 1.1 elric sequence.
588 1.1 elric
589 1.1 elric 4. If the sequence contains any code points outside the ASCII range
590 1.1 elric (0..7F) then proceed to step 5, otherwise skip to step 8.
591 1.1 elric
592 1.1 elric 5. Verify that the sequence does NOT begin with the ACE prefix.
593 1.1 elric
594 1.1 elric 6. Encode the sequence using the encoding algorithm in [PUNYCODE] and
595 1.1 elric fail if there is an error.
596 1.1 elric
597 1.1 elric 7. Prepend the ACE prefix.
598 1.1 elric
599 1.1 elric 8. Verify that the number of code points is in the range 1 to 63
600 1.1 elric inclusive.
601 1.1 elric
602 1.1 elric 4.2 ToUnicode
603 1.1 elric
604 1.1 elric The ToUnicode operation takes a sequence of Unicode code points that
605 1.1 elric make up one label and returns a sequence of Unicode code points. If
606 1.1 elric the input sequence is a label in ACE form, then the result is an
607 1.1 elric equivalent internationalized label that is not in ACE form, otherwise
608 1.1 elric the original sequence is returned unaltered.
609 1.1 elric
610 1.1 elric ToUnicode never fails. If any step fails, then the original input
611 1.1 elric sequence is returned immediately in that step.
612 1.1 elric
613 1.1 elric The ToUnicode output never contains more code points than its input.
614 1.1 elric Note that the number of octets needed to represent a sequence of code
615 1.1 elric points depends on the particular character encoding used.
616 1.1 elric
617 1.1 elric The inputs to ToUnicode are a sequence of code points, the
618 1.1 elric AllowUnassigned flag, and the UseSTD3ASCIIRules flag. The output of
619 1.1 elric ToUnicode is always a sequence of Unicode code points.
620 1.1 elric
621 1.1 elric 1. If all code points in the sequence are in the ASCII range (0..7F)
622 1.1 elric then skip to step 3.
623 1.1 elric
624 1.1 elric
625 1.1 elric
626 1.1 elric
627 1.1 elric
628 1.1 elric Faltstrom, et al. Standards Track [Page 11]
629 1.1 elric
631 1.1 elric RFC 3490 IDNA March 2003
632 1.1 elric
633 1.1 elric
634 1.1 elric 2. Perform the steps specified in [NAMEPREP] and fail if there is an
635 1.1 elric error. (If step 3 of ToASCII is also performed here, it will not
636 1.1 elric affect the overall behavior of ToUnicode, but it is not
637 1.1 elric necessary.) The AllowUnassigned flag is used in [NAMEPREP].
638 1.1 elric
639 1.1 elric 3. Verify that the sequence begins with the ACE prefix, and save a
640 1.1 elric copy of the sequence.
641 1.1 elric
642 1.1 elric 4. Remove the ACE prefix.
643 1.1 elric
644 1.1 elric 5. Decode the sequence using the decoding algorithm in [PUNYCODE] and
645 1.1 elric fail if there is an error. Save a copy of the result of this
646 1.1 elric step.
647 1.1 elric
648 1.1 elric 6. Apply ToASCII.
649 1.1 elric
650 1.1 elric 7. Verify that the result of step 6 matches the saved copy from step
651 1.1 elric 3, using a case-insensitive ASCII comparison.
652 1.1 elric
653 1.1 elric 8. Return the saved copy from step 5.
654 1.1 elric
655 1.1 elric 5. ACE prefix
656 1.1 elric
657 1.1 elric The ACE prefix, used in the conversion operations (section 4), is two
658 1.1 elric alphanumeric ASCII characters followed by two hyphen-minuses. It
659 1.1 elric cannot be any of the prefixes already used in earlier documents,
660 1.1 elric which includes the following: "bl--", "bq--", "dq--", "lq--", "mq--",
661 1.1 elric "ra--", "wq--" and "zq--". The ToASCII and ToUnicode operations MUST
662 1.1 elric recognize the ACE prefix in a case-insensitive manner.
663 1.1 elric
664 1.1 elric The ACE prefix for IDNA is "xn--" or any capitalization thereof.
665 1.1 elric
666 1.1 elric This means that an ACE label might be "xn--de-jg4avhby1noc0d", where
667 1.1 elric "de-jg4avhby1noc0d" is the part of the ACE label that is generated by
668 1.1 elric the encoding steps in [PUNYCODE].
669 1.1 elric
670 1.1 elric While all ACE labels begin with the ACE prefix, not all labels
671 1.1 elric beginning with the ACE prefix are necessarily ACE labels. Non-ACE
672 1.1 elric labels that begin with the ACE prefix will confuse users and SHOULD
673 1.1 elric NOT be allowed in DNS zones.
674 1.1 elric
675 1.1 elric
676 1.1 elric
677 1.1 elric
678 1.1 elric
679 1.1 elric
680 1.1 elric
681 1.1 elric
682 1.1 elric
683 1.1 elric
684 1.1 elric
685 1.1 elric Faltstrom, et al. Standards Track [Page 12]
686 1.1 elric
688 1.1 elric RFC 3490 IDNA March 2003
689 1.1 elric
690 1.1 elric
691 1.1 elric 6. Implications for typical applications using DNS
692 1.1 elric
693 1.1 elric In IDNA, applications perform the processing needed to input
694 1.1 elric internationalized domain names from users, display internationalized
695 1.1 elric domain names to users, and process the inputs and outputs from DNS
696 1.1 elric and other protocols that carry domain names.
697 1.1 elric
698 1.1 elric The components and interfaces between them can be represented
699 1.1 elric pictorially as:
700 1.1 elric
701 1.1 elric +------+
702 1.1 elric | User |
703 1.1 elric +------+
704 1.1 elric ^
705 1.1 elric | Input and display: local interface methods
706 1.1 elric | (pen, keyboard, glowing phosphorus, ...)
707 1.1 elric +-------------------|-------------------------------+
708 1.1 elric | v |
709 1.1 elric | +-----------------------------+ |
710 1.1 elric | | Application | |
711 1.1 elric | | (ToASCII and ToUnicode | |
712 1.1 elric | | operations may be | |
713 1.1 elric | | called here) | |
714 1.1 elric | +-----------------------------+ |
715 1.1 elric | ^ ^ | End system
716 1.1 elric | | | |
717 1.1 elric | Call to resolver: | | Application-specific |
718 1.1 elric | ACE | | protocol: |
719 1.1 elric | v | ACE unless the |
720 1.1 elric | +----------+ | protocol is updated |
721 1.1 elric | | Resolver | | to handle other |
722 1.1 elric | +----------+ | encodings |
723 1.1 elric | ^ | |
724 1.1 elric +-----------------|----------|----------------------+
725 1.1 elric DNS protocol: | |
726 1.1 elric ACE | |
727 1.1 elric v v
728 1.1 elric +-------------+ +---------------------+
729 1.1 elric | DNS servers | | Application servers |
730 1.1 elric +-------------+ +---------------------+
731 1.1 elric
732 1.1 elric The box labeled "Application" is where the application splits a
733 1.1 elric domain name into labels, sets the appropriate flags, and performs the
734 1.1 elric ToASCII and ToUnicode operations. This is described in section 4.
735 1.1 elric
736 1.1 elric
737 1.1 elric
738 1.1 elric
739 1.1 elric
740 1.1 elric
741 1.1 elric
742 1.1 elric Faltstrom, et al. Standards Track [Page 13]
743 1.1 elric
745 1.1 elric RFC 3490 IDNA March 2003
746 1.1 elric
747 1.1 elric
748 1.1 elric 6.1 Entry and display in applications
749 1.1 elric
750 1.1 elric Applications can accept domain names using any character set or sets
751 1.1 elric desired by the application developer, and can display domain names in
752 1.1 elric any charset. That is, the IDNA protocol does not affect the
753 1.1 elric interface between users and applications.
754 1.1 elric
755 1.1 elric An IDNA-aware application can accept and display internationalized
756 1.1 elric domain names in two formats: the internationalized character set(s)
757 1.1 elric supported by the application, and as an ACE label. ACE labels that
758 1.1 elric are displayed or input MUST always include the ACE prefix.
759 1.1 elric Applications MAY allow input and display of ACE labels, but are not
760 1.1 elric encouraged to do so except as an interface for special purposes,
761 1.1 elric possibly for debugging, or to cope with display limitations as
762 1.1 elric described in section 6.4.. ACE encoding is opaque and ugly, and
763 1.1 elric should thus only be exposed to users who absolutely need it. Because
764 1.1 elric name labels encoded as ACE name labels can be rendered either as the
765 1.1 elric encoded ASCII characters or the proper decoded characters, the
766 1.1 elric application MAY have an option for the user to select the preferred
767 1.1 elric method of display; if it does, rendering the ACE SHOULD NOT be the
768 1.1 elric default.
769 1.1 elric
770 1.1 elric Domain names are often stored and transported in many places. For
771 1.1 elric example, they are part of documents such as mail messages and web
772 1.1 elric pages. They are transported in many parts of many protocols, such as
773 1.1 elric both the control commands and the RFC 2822 body parts of SMTP, and
774 1.1 elric the headers and the body content in HTTP. It is important to
775 1.1 elric remember that domain names appear both in domain name slots and in
776 1.1 elric the content that is passed over protocols.
777 1.1 elric
778 1.1 elric In protocols and document formats that define how to handle
779 1.1 elric specification or negotiation of charsets, labels can be encoded in
780 1.1 elric any charset allowed by the protocol or document format. If a
781 1.1 elric protocol or document format only allows one charset, the labels MUST
782 1.1 elric be given in that charset.
783 1.1 elric
784 1.1 elric In any place where a protocol or document format allows transmission
785 1.1 elric of the characters in internationalized labels, internationalized
786 1.1 elric labels SHOULD be transmitted using whatever character encoding and
787 1.1 elric escape mechanism that the protocol or document format uses at that
788 1.1 elric place.
789 1.1 elric
790 1.1 elric All protocols that use domain name slots already have the capacity
791 1.1 elric for handling domain names in the ASCII charset. Thus, ACE labels
792 1.1 elric (internationalized labels that have been processed with the ToASCII
793 1.1 elric operation) can inherently be handled by those protocols.
794 1.1 elric
795 1.1 elric
796 1.1 elric
797 1.1 elric
798 1.1 elric
799 1.1 elric Faltstrom, et al. Standards Track [Page 14]
800 1.1 elric
802 1.1 elric RFC 3490 IDNA March 2003
803 1.1 elric
804 1.1 elric
805 1.1 elric 6.2 Applications and resolver libraries
806 1.1 elric
807 1.1 elric Applications normally use functions in the operating system when they
808 1.1 elric resolve DNS queries. Those functions in the operating system are
809 1.1 elric often called "the resolver library", and the applications communicate
810 1.1 elric with the resolver libraries through a programming interface (API).
811 1.1 elric
812 1.1 elric Because these resolver libraries today expect only domain names in
813 1.1 elric ASCII, applications MUST prepare labels that are passed to the
814 1.1 elric resolver library using the ToASCII operation. Labels received from
815 1.1 elric the resolver library contain only ASCII characters; internationalized
816 1.1 elric labels that cannot be represented directly in ASCII use the ACE form.
817 1.1 elric ACE labels always include the ACE prefix.
818 1.1 elric
819 1.1 elric An operating system might have a set of libraries for performing the
820 1.1 elric ToASCII operation. The input to such a library might be in one or
821 1.1 elric more charsets that are used in applications (UTF-8 and UTF-16 are
822 1.1 elric likely candidates for almost any operating system, and script-
823 1.1 elric specific charsets are likely for localized operating systems).
824 1.1 elric
825 1.1 elric IDNA-aware applications MUST be able to work with both non-
826 1.1 elric internationalized labels (those that conform to [STD13] and [STD3])
827 1.1 elric and internationalized labels.
828 1.1 elric
829 1.1 elric It is expected that new versions of the resolver libraries in the
830 1.1 elric future will be able to accept domain names in other charsets than
831 1.1 elric ASCII, and application developers might one day pass not only domain
832 1.1 elric names in Unicode, but also in local script to a new API for the
833 1.1 elric resolver libraries in the operating system. Thus the ToASCII and
834 1.1 elric ToUnicode operations might be performed inside these new versions of
835 1.1 elric the resolver libraries.
836 1.1 elric
837 1.1 elric Domain names passed to resolvers or put into the question section of
838 1.1 elric DNS requests follow the rules for "queries" from [STRINGPREP].
839 1.1 elric
840 1.1 elric 6.3 DNS servers
841 1.1 elric
842 1.1 elric Domain names stored in zones follow the rules for "stored strings"
843 1.1 elric from [STRINGPREP].
844 1.1 elric
845 1.1 elric For internationalized labels that cannot be represented directly in
846 1.1 elric ASCII, DNS servers MUST use the ACE form produced by the ToASCII
847 1.1 elric operation. All IDNs served by DNS servers MUST contain only ASCII
848 1.1 elric characters.
849 1.1 elric
850 1.1 elric If a signaling system which makes negotiation possible between old
851 1.1 elric and new DNS clients and servers is standardized in the future, the
852 1.1 elric encoding of the query in the DNS protocol itself can be changed from
853 1.1 elric
854 1.1 elric
855 1.1 elric
856 1.1 elric Faltstrom, et al. Standards Track [Page 15]
857 1.1 elric
859 1.1 elric RFC 3490 IDNA March 2003
860 1.1 elric
861 1.1 elric
862 1.1 elric ACE to something else, such as UTF-8. The question whether or not
863 1.1 elric this should be used is, however, a separate problem and is not
864 1.1 elric discussed in this memo.
865 1.1 elric
866 1.1 elric 6.4 Avoiding exposing users to the raw ACE encoding
867 1.1 elric
868 1.1 elric Any application that might show the user a domain name obtained from
869 1.1 elric a domain name slot, such as from gethostbyaddr or part of a mail
870 1.1 elric header, will need to be updated if it is to prevent users from seeing
871 1.1 elric the ACE.
872 1.1 elric
873 1.1 elric If an application decodes an ACE name using ToUnicode but cannot show
874 1.1 elric all of the characters in the decoded name, such as if the name
875 1.1 elric contains characters that the output system cannot display, the
876 1.1 elric application SHOULD show the name in ACE format (which always includes
877 1.1 elric the ACE prefix) instead of displaying the name with the replacement
878 1.1 elric character (U+FFFD). This is to make it easier for the user to
879 1.1 elric transfer the name correctly to other programs. Programs that by
880 1.1 elric default show the ACE form when they cannot show all the characters in
881 1.1 elric a name label SHOULD also have a mechanism to show the name that is
882 1.1 elric produced by the ToUnicode operation with as many characters as
883 1.1 elric possible and replacement characters in the positions where characters
884 1.1 elric cannot be displayed.
885 1.1 elric
886 1.1 elric The ToUnicode operation does not alter labels that are not valid ACE
887 1.1 elric labels, even if they begin with the ACE prefix. After ToUnicode has
888 1.1 elric been applied, if a label still begins with the ACE prefix, then it is
889 1.1 elric not a valid ACE label, and is not equivalent to any of the
890 1.1 elric intermediate Unicode strings constructed by ToUnicode.
891 1.1 elric
892 1.1 elric 6.5 DNSSEC authentication of IDN domain names
893 1.1 elric
894 1.1 elric DNS Security [RFC2535] is a method for supplying cryptographic
895 1.1 elric verification information along with DNS messages. Public Key
896 1.1 elric Cryptography is used in conjunction with digital signatures to
897 1.1 elric provide a means for a requester of domain information to authenticate
898 1.1 elric the source of the data. This ensures that it can be traced back to a
899 1.1 elric trusted source, either directly, or via a chain of trust linking the
900 1.1 elric source of the information to the top of the DNS hierarchy.
901 1.1 elric
902 1.1 elric IDNA specifies that all internationalized domain names served by DNS
903 1.1 elric servers that cannot be represented directly in ASCII must use the ACE
904 1.1 elric form produced by the ToASCII operation. This operation must be
905 1.1 elric performed prior to a zone being signed by the private key for that
906 1.1 elric zone. Because of this ordering, it is important to recognize that
907 1.1 elric DNSSEC authenticates the ASCII domain name, not the Unicode form or
908 1.1 elric
909 1.1 elric
910 1.1 elric
911 1.1 elric
912 1.1 elric
913 1.1 elric Faltstrom, et al. Standards Track [Page 16]
914 1.1 elric
916 1.1 elric RFC 3490 IDNA March 2003
917 1.1 elric
918 1.1 elric
919 1.1 elric the mapping between the Unicode form and the ASCII form. In the
920 1.1 elric presence of DNSSEC, this is the name that MUST be signed in the zone
921 1.1 elric and MUST be validated against.
922 1.1 elric
923 1.1 elric One consequence of this for sites deploying IDNA in the presence of
924 1.1 elric DNSSEC is that any special purpose proxies or forwarders used to
925 1.1 elric transform user input into IDNs must be earlier in the resolution flow
926 1.1 elric than DNSSEC authenticating nameservers for DNSSEC to work.
927 1.1 elric
928 1.1 elric 7. Name server considerations
929 1.1 elric
930 1.1 elric Existing DNS servers do not know the IDNA rules for handling non-
931 1.1 elric ASCII forms of IDNs, and therefore need to be shielded from them.
932 1.1 elric All existing channels through which names can enter a DNS server
933 1.1 elric database (for example, master files [STD13] and DNS update messages
934 1.1 elric [RFC2136]) are IDN-unaware because they predate IDNA, and therefore
935 1.1 elric requirement 2 of section 3.1 of this document provides the needed
936 1.1 elric shielding, by ensuring that internationalized domain names entering
937 1.1 elric DNS server databases through such channels have already been
938 1.1 elric converted to their equivalent ASCII forms.
939 1.1 elric
940 1.1 elric It is imperative that there be only one ASCII encoding for a
941 1.1 elric particular domain name. Because of the design of the ToASCII and
942 1.1 elric ToUnicode operations, there are no ACE labels that decode to ASCII
943 1.1 elric labels, and therefore name servers cannot contain multiple ASCII
944 1.1 elric encodings of the same domain name.
945 1.1 elric
946 1.1 elric [RFC2181] explicitly allows domain labels to contain octets beyond
947 1.1 elric the ASCII range (0..7F), and this document does not change that.
948 1.1 elric Note, however, that there is no defined interpretation of octets
949 1.1 elric 80..FF as characters. If labels containing these octets are returned
950 1.1 elric to applications, unpredictable behavior could result. The ASCII form
951 1.1 elric defined by ToASCII is the only standard representation for
952 1.1 elric internationalized labels in the current DNS protocol.
953 1.1 elric
954 1.1 elric 8. Root server considerations
955 1.1 elric
956 1.1 elric IDNs are likely to be somewhat longer than current domain names, so
957 1.1 elric the bandwidth needed by the root servers is likely to go up by a
958 1.1 elric small amount. Also, queries and responses for IDNs will probably be
959 1.1 elric somewhat longer than typical queries today, so more queries and
960 1.1 elric responses may be forced to go to TCP instead of UDP.
961 1.1 elric
962 1.1 elric
963 1.1 elric
964 1.1 elric
965 1.1 elric
966 1.1 elric
967 1.1 elric
968 1.1 elric
969 1.1 elric
970 1.1 elric Faltstrom, et al. Standards Track [Page 17]
971 1.1 elric
973 1.1 elric RFC 3490 IDNA March 2003
974 1.1 elric
975 1.1 elric
976 1.1 elric 9. References
977 1.1 elric
978 1.1 elric 9.1 Normative References
979 1.1 elric
980 1.1 elric [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
981 1.1 elric Requirement Levels", BCP 14, RFC 2119, March 1997.
982 1.1 elric
983 1.1 elric [STRINGPREP] Hoffman, P. and M. Blanchet, "Preparation of
984 1.1 elric Internationalized Strings ("stringprep")", RFC 3454,
985 1.1 elric December 2002.
986 1.1 elric
987 1.1 elric [NAMEPREP] Hoffman, P. and M. Blanchet, "Nameprep: A Stringprep
988 1.1 elric Profile for Internationalized Domain Names (IDN)", RFC
989 1.1 elric 3491, March 2003.
990 1.1 elric
991 1.1 elric [PUNYCODE] Costello, A., "Punycode: A Bootstring encoding of
992 1.1 elric Unicode for use with Internationalized Domain Names in
993 1.1 elric Applications (IDNA)", RFC 3492, March 2003.
994 1.1 elric
995 1.1 elric [STD3] Braden, R., "Requirements for Internet Hosts --
996 1.1 elric Communication Layers", STD 3, RFC 1122, and
997 1.1 elric "Requirements for Internet Hosts -- Application and
998 1.1 elric Support", STD 3, RFC 1123, October 1989.
999 1.1 elric
1000 1.1 elric [STD13] Mockapetris, P., "Domain names - concepts and
1001 1.1 elric facilities", STD 13, RFC 1034 and "Domain names -
1002 1.1 elric implementation and specification", STD 13, RFC 1035,
1003 1.1 elric November 1987.
1004 1.1 elric
1005 1.1 elric 9.2 Informative References
1006 1.1 elric
1007 1.1 elric [RFC2535] Eastlake, D., "Domain Name System Security Extensions",
1008 1.1 elric RFC 2535, March 1999.
1009 1.1 elric
1010 1.1 elric [RFC2181] Elz, R. and R. Bush, "Clarifications to the DNS
1011 1.1 elric Specification", RFC 2181, July 1997.
1012 1.1 elric
1013 1.1 elric [UAX9] Unicode Standard Annex #9, The Bidirectional Algorithm,
1014 1.1 elric <http://www.unicode.org/unicode/reports/tr9/>.
1015 1.1 elric
1016 1.1 elric [UNICODE] The Unicode Consortium. The Unicode Standard, Version
1017 1.1 elric 3.2.0 is defined by The Unicode Standard, Version 3.0
1018 1.1 elric (Reading, MA, Addison-Wesley, 2000. ISBN 0-201-61633-5),
1019 1.1 elric as amended by the Unicode Standard Annex #27: Unicode
1020 1.1 elric 3.1 (http://www.unicode.org/reports/tr27/) and by the
1021 1.1 elric Unicode Standard Annex #28: Unicode 3.2
1022 1.1 elric (http://www.unicode.org/reports/tr28/).
1023 1.1 elric
1024 1.1 elric
1025 1.1 elric
1026 1.1 elric
1027 1.1 elric Faltstrom, et al. Standards Track [Page 18]
1028 1.1 elric
1030 1.1 elric RFC 3490 IDNA March 2003
1031 1.1 elric
1032 1.1 elric
1033 1.1 elric [USASCII] Cerf, V., "ASCII format for Network Interchange", RFC
1034 1.1 elric 20, October 1969.
1035 1.1 elric
1036 1.1 elric 10. Security Considerations
1037 1.1 elric
1038 1.1 elric Security on the Internet partly relies on the DNS. Thus, any change
1039 1.1 elric to the characteristics of the DNS can change the security of much of
1040 1.1 elric the Internet.
1041 1.1 elric
1042 1.1 elric This memo describes an algorithm which encodes characters that are
1043 1.1 elric not valid according to STD3 and STD13 into octet values that are
1044 1.1 elric valid. No security issues such as string length increases or new
1045 1.1 elric allowed values are introduced by the encoding process or the use of
1046 1.1 elric these encoded values, apart from those introduced by the ACE encoding
1047 1.1 elric itself.
1048 1.1 elric
1049 1.1 elric Domain names are used by users to identify and connect to Internet
1050 1.1 elric servers. The security of the Internet is compromised if a user
1051 1.1 elric entering a single internationalized name is connected to different
1052 1.1 elric servers based on different interpretations of the internationalized
1053 1.1 elric domain name.
1054 1.1 elric
1055 1.1 elric When systems use local character sets other than ASCII and Unicode,
1056 1.1 elric this specification leaves the the problem of transcoding between the
1057 1.1 elric local character set and Unicode up to the application. If different
1058 1.1 elric applications (or different versions of one application) implement
1059 1.1 elric different transcoding rules, they could interpret the same name
1060 1.1 elric differently and contact different servers. This problem is not
1061 1.1 elric solved by security protocols like TLS that do not take local
1062 1.1 elric character sets into account.
1063 1.1 elric
1064 1.1 elric Because this document normatively refers to [NAMEPREP], [PUNYCODE],
1065 1.1 elric and [STRINGPREP], it includes the security considerations from those
1066 1.1 elric documents as well.
1067 1.1 elric
1068 1.1 elric If or when this specification is updated to use a more recent Unicode
1069 1.1 elric normalization table, the new normalization table will need to be
1070 1.1 elric compared with the old to spot backwards incompatible changes. If
1071 1.1 elric there are such changes, they will need to be handled somehow, or
1072 1.1 elric there will be security as well as operational implications. Methods
1073 1.1 elric to handle the conflicts could include keeping the old normalization,
1074 1.1 elric or taking care of the conflicting characters by operational means, or
1075 1.1 elric some other method.
1076 1.1 elric
1077 1.1 elric Implementations MUST NOT use more recent normalization tables than
1078 1.1 elric the one referenced from this document, even though more recent tables
1079 1.1 elric may be provided by operating systems. If an application is unsure of
1080 1.1 elric which version of the normalization tables are in the operating
1081 1.1 elric
1082 1.1 elric
1083 1.1 elric
1084 1.1 elric Faltstrom, et al. Standards Track [Page 19]
1085 1.1 elric
1087 1.1 elric RFC 3490 IDNA March 2003
1088 1.1 elric
1089 1.1 elric
1090 1.1 elric system, the application needs to include the normalization tables
1091 1.1 elric itself. Using normalization tables other than the one referenced
1092 1.1 elric from this specification could have security and operational
1093 1.1 elric implications.
1094 1.1 elric
1095 1.1 elric To help prevent confusion between characters that are visually
1096 1.1 elric similar, it is suggested that implementations provide visual
1097 1.1 elric indications where a domain name contains multiple scripts. Such
1098 1.1 elric mechanisms can also be used to show when a name contains a mixture of
1099 1.1 elric simplified and traditional Chinese characters, or to distinguish zero
1100 1.1 elric and one from O and l. DNS zone adminstrators may impose restrictions
1101 1.1 elric (subject to the limitations in section 2) that try to minimize
1102 1.1 elric homographs.
1103 1.1 elric
1104 1.1 elric Domain names (or portions of them) are sometimes compared against a
1105 1.1 elric set of privileged or anti-privileged domains. In such situations it
1106 1.1 elric is especially important that the comparisons be done properly, as
1107 1.1 elric specified in section 3.1 requirement 4. For labels already in ASCII
1108 1.1 elric form, the proper comparison reduces to the same case-insensitive
1109 1.1 elric ASCII comparison that has always been used for ASCII labels.
1110 1.1 elric
1111 1.1 elric The introduction of IDNA means that any existing labels that start
1112 1.1 elric with the ACE prefix and would be altered by ToUnicode will
1113 1.1 elric automatically be ACE labels, and will be considered equivalent to
1114 1.1 elric non-ASCII labels, whether or not that was the intent of the zone
1115 1.1 elric adminstrator or registrant.
1116 1.1 elric
1117 1.1 elric 11. IANA Considerations
1118 1.1 elric
1119 1.1 elric IANA has assigned the ACE prefix in consultation with the IESG.
1120 1.1 elric
1121 1.1 elric
1122 1.1 elric
1123 1.1 elric
1124 1.1 elric
1125 1.1 elric
1126 1.1 elric
1127 1.1 elric
1128 1.1 elric
1129 1.1 elric
1130 1.1 elric
1131 1.1 elric
1132 1.1 elric
1133 1.1 elric
1134 1.1 elric
1135 1.1 elric
1136 1.1 elric
1137 1.1 elric
1138 1.1 elric
1139 1.1 elric
1140 1.1 elric
1141 1.1 elric Faltstrom, et al. Standards Track [Page 20]
1142 1.1 elric
1144 1.1 elric RFC 3490 IDNA March 2003
1145 1.1 elric
1146 1.1 elric
1147 1.1 elric 12. Authors' Addresses
1148 1.1 elric
1149 1.1 elric Patrik Faltstrom
1150 1.1 elric Cisco Systems
1151 1.1 elric Arstaangsvagen 31 J
1152 1.1 elric S-117 43 Stockholm Sweden
1153 1.1 elric
1154 1.1 elric EMail: paf (a] cisco.com
1155 1.1 elric
1156 1.1 elric
1157 1.1 elric Paul Hoffman
1158 1.1 elric Internet Mail Consortium and VPN Consortium
1159 1.1 elric 127 Segre Place
1160 1.1 elric Santa Cruz, CA 95060 USA
1161 1.1 elric
1162 1.1 elric EMail: phoffman (a] imc.org
1163 1.1 elric
1164 1.1 elric
1165 1.1 elric Adam M. Costello
1166 1.1 elric University of California, Berkeley
1167 1.1 elric
1168 1.1 elric URL: http://www.nicemice.net/amc/
1169 1.1 elric
1170 1.1 elric
1171 1.1 elric
1172 1.1 elric
1173 1.1 elric
1174 1.1 elric
1175 1.1 elric
1176 1.1 elric
1177 1.1 elric
1178 1.1 elric
1179 1.1 elric
1180 1.1 elric
1181 1.1 elric
1182 1.1 elric
1183 1.1 elric
1184 1.1 elric
1185 1.1 elric
1186 1.1 elric
1187 1.1 elric
1188 1.1 elric
1189 1.1 elric
1190 1.1 elric
1191 1.1 elric
1192 1.1 elric
1193 1.1 elric
1194 1.1 elric
1195 1.1 elric
1196 1.1 elric
1197 1.1 elric
1198 1.1 elric Faltstrom, et al. Standards Track [Page 21]
1199 1.1 elric
1201 1.1 elric RFC 3490 IDNA March 2003
1202 1.1 elric
1203 1.1 elric
1204 1.1 elric 13. Full Copyright Statement
1205 1.1 elric
1206 1.1 elric Copyright (C) The Internet Society (2003). All Rights Reserved.
1207 1.1 elric
1208 1.1 elric This document and translations of it may be copied and furnished to
1209 1.1 elric others, and derivative works that comment on or otherwise explain it
1210 1.1 elric or assist in its implementation may be prepared, copied, published
1211 1.1 elric and distributed, in whole or in part, without restriction of any
1212 1.1 elric kind, provided that the above copyright notice and this paragraph are
1213 1.1 elric included on all such copies and derivative works. However, this
1214 1.1 elric document itself may not be modified in any way, such as by removing
1215 1.1 elric the copyright notice or references to the Internet Society or other
1216 1.1 elric Internet organizations, except as needed for the purpose of
1217 1.1 elric developing Internet standards in which case the procedures for
1218 1.1 elric copyrights defined in the Internet Standards process must be
1219 1.1 elric followed, or as required to translate it into languages other than
1220 1.1 elric English.
1221 1.1 elric
1222 1.1 elric The limited permissions granted above are perpetual and will not be
1223 1.1 elric revoked by the Internet Society or its successors or assigns.
1224 1.1 elric
1225 1.1 elric This document and the information contained herein is provided on an
1226 1.1 elric "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
1227 1.1 elric TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
1228 1.1 elric BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
1229 1.1 elric HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
1230 1.1 elric MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
1231 1.1 elric
1232 1.1 elric Acknowledgement
1233 1.1 elric
1234 1.1 elric Funding for the RFC Editor function is currently provided by the
1235 1.1 elric Internet Society.
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255 Faltstrom, et al. Standards Track [Page 22]
1256
1258