⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 draft-skwan-utf8-dns-02.txt

📁 dns 解析源代码
💻 TXT
字号:
INTERNET-DRAFT                                             Stuart Kwan                                                          James Gilroy                                                       Microsoft Corp.                                                             June 1999<draft-skwan-utf8-dns-02.txt>                     Expires January 2000     Using the UTF-8 Character Set in the Domain Name SystemStatus of this MemoThis document is an Internet-Draft and is in full conformancewith all provisions of Section 10 of RFC2026.Internet-Drafts are working documents of the Internet EngineeringTask Force (IETF), its areas, and its working groups.  Note thatother groups may also distribute working documents asInternet-Drafts.Internet-Drafts are draft documents valid for a maximum of sixmonths and may be updated, replaced, or obsoleted by otherdocuments at any time.  It is inappropriate to use Internet-Drafts as reference material or to cite them other than as"work in progress."The list of current Internet-Drafts can be accessed athttp://www.ietf.org/ietf/1id-abstracts.txtThe list of Internet-Draft Shadow Directories can be accessed athttp://www.ietf.org/shadow.html.AbstractThe Domain Name System standard specifies that names are representedusing the ASCII character encoding.  This document expands thatspecification to allow the use of the UTF-8 character encoding, asuperset of ASCII and a translation of the UCS-2 character encoding.Expires January 2000                                          [Page 1]INTERNET-DRAFT                  UTF-8 DNS                    June 19991. IntroductionThe Domain Name System standard [RFC1035] specifies that names arerepresented using the ASCII character encoding.  This document expandsthat specification to allow the use of the UTF-8 character encoding[RFC2044], a superset of ASCII and a translation of the UCS-2character encoding.Interpreting names as ASCII-only limits the utility of DNS in aninternational setting.  The UTF-8 character set includes charactersfrom most of the world's written languages, allowing a far greaterrange of possible names and allowing names to use characters that arerelevant to a particular locality.  UTF-8 is the recommended characterset for protocols that are evolving beyond ASCII [RFC2130].This document defines the technology for a richer character set inDNS.  This document specifically does not define policy for thecharacters allowed in a name when used in a particular application.For example, some protocols place restrictions on the charactersallowed in a name.  In addition, names that are intended to beglobally visible [RFC1958] should contain ASCII-only charactersper [RFC1123].2. Protocol DescriptionA UTF-8-aware DNS server is a DNS server that can load and store DNSnames that contain UTF-8 characters.  Names are encoded in logicalorder as opposed to visual order (see [UNICODE 2.0]).Uniform downcasing permits UTF-8-aware DNS implementations tointeroperate with non-UTF-8-aware DNS implementations.  Any binarystring can be used in a DNS name [RFC2181], but names must becompared with case-insensitivity [RFC1035].  A non-UTF-8-aware DNSimplementation is unable to perform a case-insensitive comparisonon a name containing UTF-8 characters.  However, if UTF-8 names aredowncased before transmission, then binary comparisons will providethe desired result on non-UTF-8-aware servers without violating thecase-insensitivity requirement.The DNS protocol standard states that original case should bepreserved when possible as data is entered into the system.  Thisrequirement is modified as follows:  a UTF-8-aware DNS server mustdowncase all names containing UTF-8 characters in both record namesand record data before transmitting those names in any message.A UTF-8-aware DNS client/resolver must downcase all names containingUTF-8 characters before transmitting those names in any message.Expires January 2000                                          [Page 2]INTERNET-DRAFT                  UTF-8 DNS                    June 1999For consistency, UTF-8-aware DNS servers must compare names thatcontain UTF-8 characters byte-for-byte, as opposed to using Unicodeequivalency rules.Applications should take care when allowing uppercase UTF-8 charactersto be passed to the resolver, and DNS servers should take care whenallowing uppercase UTF-8 characters to be entered in zone data.Downcasing in UTF-8 is locale-sensitive and the result may varyaccording to the locale of the code execution.  The desired result willalways be obtained if the application and server only accept lowercasecharacters.Names encoded in UTF-8 must not exceed the size limits clarified in[RFC2181]. Character count is insufficient to determine size, sincesome UTF-8 characters exceed one octet in length.3. Interoperability ConsiderationsThe UTF-8 character encoding is ideal for use with existing protocolimplementations that expect US-ASCII characters.  The representationof a US-ASCII characters in UTF-8 is byte for byte identical to theUS-ASCII representation.  Non-UTF-8-aware DNS clients always encodenames in ASCII format and those names will always be correctlyinterpreted by a UTF-8-aware DNS server.DNS server authors may wish to provide a configuration switch on theDNS server to allow/disallow the use of UTF-8 characters on aper-server or per-zone basis.A non-UTF-8-aware DNS server may accept a zone transfer of a zonecontaining UTF-8 names, but it may not be able to write back thosenames to a zone file or reload those names from a zone file.Administrators should exercise caution when transferring a zonecontaining UTF-8 names to a non-UTF-8-aware DNS server.4. Security ConsiderationsThe choice of character encoding for names does not impact thesecurity of the DNS protocol.5. AcknowledgementsThe authors of this document would like to thank the following peoplefor their contribution to this specification:  John McConnell,Cliff Van Dyke and Bjorn Rettig.Expires January 2000                                          [Page 3]INTERNET-DRAFT                  UTF-8 DNS                    June 19996. References[RFC1035]     P.V. Mockapetris, "Domain Names - Implementation and              Specification," RFC 1035, ISI, Nov 1987.[RFC2044]     F. Yergeau, "UTF-8, a transformation format of Unicode              and ISO 10646," RFC 2044, Alis Technologies, Oct 1996.[RFC1958]     B. Carpenter, "Architectural Principles of the              Internet," RFC 1958, IAB, June 1996.[RFC1123]     R. Braden, "Requirements for Internet Hosts -              Application and Support," STD 3, RFC 1123, January 1989.[RFC2130]     C. Weider et. al., "The Report of the IAB Character              Set Workshop held 29 February - 1 March 1996",              RFC 2130, Apr 1997.[RFC2181]     R. Elz and R. Bush, "Clarifications to the DNS              Specification," RFC 2181, University of Melbourne and              RGnet Inc, July 1997.[UNICODE 2.0] The Unicode Consortium, "The Unicode Standard, Version              2.0," Addison-Wesley, 1996. ISBN 0-201-48345-9.7. Author's AddressesStuart Kwan                         James GilroyMicrosoft Corporation               Microsoft CorporationOne Microsoft Way                   One Microsoft WayRedmond, WA  98052                  Redmond, WA  98052USA                                 USA<skwan@microsoft.com>               <jamesg@microsoft.com>Expires January 2000                                          [Page 4]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -