home *** CD-ROM | disk | FTP | other *** search
/ Handbook of Infosec Terms 2.0 / Handbook_of_Infosec_Terms_Version_2.0_ISSO.iso / text / rfcs / rfc1788.txt < prev    next >
Text File  |  1996-05-07  |  12KB  |  255 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                         W. Simpson Request for Comments: 1788                                    Daydreamer Category: Experimental                                        April 1995 
  8.  
  9.                         ICMP Domain Name Messages 
  10.  
  11. Status of this Memo 
  12.  
  13.    This document defines an Experimental Protocol for the Internet    community.  This does not specify an Internet standard of any kind.    Discussion and suggestions for improvement are requested.    Distribution of this memo is unlimited. 
  14.  
  15. IESG Note: 
  16.  
  17.    An Internet Engineering Steering Group comment from the co-Area    Director for IPng:  Please note well that this memo is an individual    product of the author.  It presents one view of the IN-ADDR    mechanism, motivated by discussion in the IPNG WG of the difficulty    of secure, dynamic update of the reverse tree.  Other IETF discussion    and ongoing standards work on this area will be found in the IP Next    Generation (ipngwg), DNS IXFR, Notification, and Dynamic Update    (dnsind), DNS Security (dnssec) working groups. 
  18.  
  19. Abstract 
  20.  
  21.    This document specifies ICMP messages for learning the Fully    Qualified Domain Name associated with an IP address. 
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  Simpson                                                         [Page 1] 
  44.  RFC 1788                    ICMP Domain Name                  April 1995 
  45.  
  46.  Table of Contents 
  47.  
  48.      1.     Introduction ..........................................    2         1.1       Direct Query ....................................    3         1.2       Multicast .......................................    3         1.3       Domain Names ....................................    3         1.4       Messages ........................................    4 
  49.  
  50.      2.     Domain Name Request ...................................    4 
  51.  
  52.      3.     Domain Name Reply .....................................    5 
  53.  
  54.      SECURITY CONSIDERATIONS ......................................    6      REFERENCES ...................................................    6      ACKNOWLEDGEMENTS .............................................    7      AUTHOR'S ADDRESS .............................................    7 
  55.  
  56. 1.  Introduction 
  57.  
  58.    The Domain Name System (DNS) is described in [RFC-1034].  The IN-ADDR    domain of the DNS is specified [RFC-1035] to perform address to    domain name resolution, and to facilitate queries to locate all    gateways (routers) on a particular network in the Internet. 
  59.  
  60.    Neither function has been remarkably successful.  The IN-ADDR domain    is not reliably populated. 
  61.  
  62.    As multiple routers were used at boundaries and within networks, the    IN-ADDR mechanism was found to be inadequate.  The location of    routers by hosts is now performed using "ICMP Router Discovery    Messages" [RFC-1256]. 
  63.  
  64.    As network numbers migrated to "classless" routing and aggregation,    the IN-ADDR delegation granularity has fragmented, and requires    overlapping administration.  The "reverse" IN-ADDR administration    frequently does not follow the same delegation as the "forward"    domain name tree.  This structure is not amenable to cooperative    secure updating of the DNS. 
  65.  
  66.    As application servers have appeared which require the Domain Name    for user interaction and security logging, the IN-ADDR servers have    been inundated with queries.  This produces long user visible pauses    at the initiation of sessions. 
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  Simpson                                                         [Page 2] 
  75.  RFC 1788                    ICMP Domain Name                  April 1995 
  76.  
  77.  1.1.  Direct Query 
  78.  
  79.    This document proposes that each unicast address be queried directly    for its corresponding Domain Name.  This has the advantages that the    naming is under the same administration as the address assignment,    and the queries are distributed in the same fashion as IP routing.    In effect, the routing is used to index the database. 
  80.  
  81. 1.2.  Multicast 
  82.  
  83.    Only a few well-known multicast addresses are populated in the IN-    ADDR domain.  The ephemeral nature of most multicast addresses is not    conducive to cooperative secure updating of the DNS. 
  84.  
  85.    However, the technique described here is not useful for multicast    addresses.  A query to a multicast address could result in a storm of    replies.  Most multicast groups are not named, or the member nodes    are not configured with the name. 
  86.  
  87.    The IN-ADDR method SHOULD continue to be used for reverse lookup of    well-known multicast addresses in the range 224.0.0.0 to    224.0.255.255.  Other multicast addresses are an issue for futher    study. 
  88.  
  89. 1.3.  Domain Names 
  90.  
  91.    Each Domain Name is expressed as a sequence of labels.  Each label is    represented as a one octet length field, followed by that number of    octets.  Since every Domain Name ends with the null label of the    root, a Domain Name is terminated by a length byte of zero.  The most    significant two bits of every length octet must be '00', and the    remaining six bits of the length field limit the label to 63 octets    or less. 
  92.  
  93.    When the most significant two bits of the length octet are '11', the    length is interpreted as a 2 octet sequence, indicating an offset    from the beginning of the message (Type field).  Further details are    described in [RFC-1035] "Message Compression". 
  94.  
  95.    To simplify implementations, the total length of a Domain Name    (including label octets and label length octets) is restricted to 255    octets or less. 
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. Simpson                                                         [Page 3] 
  106.  RFC 1788                    ICMP Domain Name                  April 1995 
  107.  
  108.  1.4.  Messages 
  109.  
  110.    The datagram format and basic facilities are already defined for ICMP    [RFC-792]. 
  111.  
  112.    Up-to-date values of the ICMP Type field are specified in the most    recent "Assigned Numbers" [RFC-1700].  This document concerns the    following values:         37  Domain Name Request        38  Domain Name Reply 
  113.  
  114. 2.  Domain Name Request 
  115.  
  116.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |     Type      |     Code      |          Checksum             |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |           Identifier          |        Sequence Number        |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
  117.  
  118.     Type             37 
  119.  
  120.    Code             0 
  121.  
  122.    Checksum         The ICMP Checksum. 
  123.  
  124.    Identifier       If Code is zero, a value to aid in matching requests                     and replies.  For example, it might be used like a                     port in TCP or UDP to identify a session.  May be                     zero. 
  125.  
  126.    Sequence Number  If Code is zero, a value to aid in matching requests                     and replies.  For example, the number might be                     incremented on each request sent.  May be zero. 
  127.  
  128.    A separate Domain Name Request is used for each IP Destination    queried. 
  129.  
  130.    An ICMP Domain Name Request received with a broadcast or multicast    Destination MUST be silently discarded. 
  131.  
  132.    On receipt of an ICMP error message, the implementations MAY attempt    to resolve the Domain Name using the IN-ADDR method. 
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. Simpson                                                         [Page 4] 
  141.  RFC 1788                    ICMP Domain Name                  April 1995 
  142.  
  143.  3.  Domain Name Reply 
  144.  
  145.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |     Type      |     Code      |          Checksum             |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |           Identifier          |        Sequence Number        |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |                          Time-To-Live                         |    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    |   Names ...    +-+-+-+-+-+-+-+- 
  146.  
  147.     Type             38 
  148.  
  149.    Code             0 
  150.  
  151.    Checksum         The ICMP Checksum. 
  152.  
  153.    Identifier       Copied from the request. 
  154.  
  155.    Sequence Number  Copied from the request. 
  156.  
  157.    Time-To-Live     The number of seconds that the name may be cached.                     For historic reasons, this value is a signed 2s-                     complement number. 
  158.  
  159.    Names            zero or more Fully Qualified Domain Names.  The                     length of this field is determined from the total                     length of the datagram. 
  160.  
  161.                     When no names are known, the field is eliminated                     (zero length), but the Reply is sent as an                     authoritative indication that no name is known. 
  162.  
  163.                     When more than one name is known, all such names                     SHOULD be listed. 
  164.  
  165.                     Any name which cannot entirely fit within the Reply                     MTU is not sent. 
  166.  
  167.    The IP Source in a Reply MUST be the same as the IP Destination of    the corresponding Request message. 
  168.  
  169.    Every host and router MUST implement an ICMP Domain Name server    function that receives Domain Name Requests and sends corresponding    Domain Name Replies. 
  170.  
  171.  
  172.  
  173.  Simpson                                                         [Page 5] 
  174.  RFC 1788                    ICMP Domain Name                  April 1995 
  175.  
  176.     A host SHOULD also implement an application- layer interface for    sending a Domain Name Request and receiving a Domain Name Reply, for    diagnostic purposes. 
  177.  
  178. Security Considerations 
  179.  
  180.    A primary purpose of this specification is to provide a mechanism for    address to name resolution which is more secure than the IN-ADDR    reverse tree.  This mechanism is amenable to use of the IP Security    Protocols for authentication and privacy. 
  181.  
  182.    Although the routing infrastructure to the Destination does not    provide security in and of itself, it is as least as reliable as    delivery of correspondence for the other sessions with the same peer. 
  183.  
  184.    A DNS cryptographic signature, located by using the reply in the    forward DNS direction, can be used to verify the reply itself. 
  185.  
  186. References 
  187.  
  188.    [RFC-792]             Postel, J., "Internet Control Message Protocol", STD 5,             RFC 792, USC/Information Sciences Institute, September             1981. 
  189.  
  190.    [RFC-1034]             Mockapetris, P., "Domain Names - Concepts and Facilities",             STD 13, RFC 1034, USC/Information Sciences Institute,             November 1987. 
  191.  
  192.    [RFC-1035]             Mockapetris, P., "Domain Names - Implementation and             Specification", STD 13, RFC 1035, USC/Information             Sciences Institute, November 1987. 
  193.  
  194.    [RFC-1256]             Deering, S., Editor, "ICMP Router Discovery Messages",             RFC 1256, Xerox PARC, September 1991. 
  195.  
  196.    [RFC-1700]             Reynolds, J., and J. Postel, "ASSIGNED NUMBERS", STD 2,             RFC 1700, USC/Information Sciences Institute, October 1994. 
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206. Simpson                                                         [Page 6] 
  207.  RFC 1788                    ICMP Domain Name                  April 1995 
  208.  
  209.  Acknowledgements 
  210.  
  211.    The DNSIND and IPng Working Groups contributed substantial amounts of    discussion. 
  212.  
  213.    Additional comments should be submitted to the    namedroppers@internic.net mailing list. 
  214.  
  215. Author's Address 
  216.  
  217.    Questions about this memo can also be directed to: 
  218.  
  219.       William Allen Simpson       Daydreamer       Computer Systems Consulting Services       1384 Fontaine       Madison Heights, Michigan  48071 
  220.  
  221.       Bill.Simpson@um.cc.umich.edu           bsimpson@MorningStar.com 
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253. Simpson                                                         [Page 7] 
  254.  
  255.