Network Working Group J. Peterson
Request for Comments: 3861 NeuStar
Category: Standards Track August 2004
Address Resolution for Instant Messaging and Presence
Peterson Standards Track [Page 1]
RFC 3861 IM&P SRV August 2004 1. IntroductionPresence and instant messaging are defined in RFC 2778 [5]. The Common Profiles for Presence (CPP) [2] and Instant Messaging (CPIM) [1] define two Universal Resource Identifier (URI) schemes: 'im' for INSTANT INBOXes and 'pres' for PRESENTITIES. This document provides rules for locating the resources associated with URIs that employ these schemes via the Domain Name Service (DNS) [4]. These rules could no doubt be applied to the resolution of other URI schemes that are unrelated to instant messaging and presence.
Peterson Standards Track [Page 2]
RFC 3861 IM&P SRV August 2004 2. TerminologyIn this document, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in BCP 14, RFC 2119 [3] and indicate requirement levels for compliant implementations.
3. Address Resolution
A client determines the address of an appropriate system running a server, on behalf of the system referenced by the domain, by resolving the destination domain name that is part of the identifier to either an intermediate relay system or a final target system.
Peterson Standards Track [Page 3]
RFC 3861 IM&P SRV August 2004 4. Domain Name LookupOnce a client lexically identifies a domain to which instant messaging or presence operations will be delivered for processing, a DNS lookup MUST be performed to resolve the domain. The names MUST be fully-qualified domain names (FQDNs) -- mechanisms for inferring FQDNs from partial names or local aliases are a local matter.
5. Processing SRV RRs
The returned DNS RRs, if any, specify the next-hop server, which may be a protocol gateway or an endpoint.
Peterson Standards Track [Page 4]
RFC 3861 IM&P SRV August 2004 6. Processing Multiple AddressesWhen the lookup succeeds, the mapping can result in a list of alternative delivery addresses rather than a single address, because of multiple SRV records. For reliable operations, the client MUST be able to try each of the relevant addresses in this list in order, until a delivery attempt succeeds. However, there MAY also be a configurable limit on the number of alternate addresses that can be tried. In any case, the client SHOULD try at least two addresses.
7. Security Considerations
The usage of IM and PRES URIs, and the DNS procedures in this document, introduce no security considerations beyond those described in the requirements for instant messaging and presence ([6]) and the SRV specification ([7]).
8. IANA Considerations
This document reserves the use of "_im" and "_pres" Service labels. Since these relate to a service which may pass messages over a number of different message transports, they must be associated with a specific instant messaging or presence service.
Peterson Standards Track [Page 5]
RFC 3861 IM&P SRV August 2004 9. ContributorsDave Crocker edited earlier versions of this document.
10. Normative References
[1] Peterson, J., "Common Profile for Instant Messaging (CPIM)", RFC
Peterson Standards Track [Page 6]
RFC 3861 IM&P SRV August 2004 11. Author's AddressJon Peterson NeuStar, Inc. 1800 Sutter St Suite 570 Concord, CA 94520 US
Peterson Standards Track [Page 7]
RFC 3861 IM&P SRV August 2004 12. Full Copyright StatementCopyright (C) The Internet Society (2004). This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.