Network Working GroupIndependent Submission M. AndrewsInternet-DraftRequest for Comments: 7314 ISCIntended status:Category: ExperimentalMarch 28,July 2014Expires: September 29, 2014 EDNSISSN: 2070-1721 Extension Mechanisms for DNS (EDNS) EXPIREOPTION draft-andrews-dnsext-expire-04Option Abstract This document specifies a method for secondary DNS servers to honour the SOA EXPIRE field as if they were always transferring from the primary, even when using other secondaries to perform indirect transfers and refresh queries. Status ofthisThis Memo ThisInternet-Draftdocument issubmitted in full conformance with the provisions of BCP 78not an Internet Standards Track specification; it is published for examination, experimental implementation, andBCP 79. Internet-Drafts are working documents ofevaluation. This document defines an Experimental Protocol for the InternetEngineering Task Force (IETF). Note thatcommunity. This is a contribution to the RFC Series, independently of any othergroups may also distribute working documents as Internet-Drafts.RFC stream. Thelist of current Internet- Drafts isRFC Editor has chosen to publish this document athttp://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents validits discretion and makes no statement about its value for implementation or deployment. Documents approved for publication by the RFC Editor are not amaximumcandidate for any level of Internet Standard; see Section 2 ofsix monthsRFC 5741. Information about the current status of this document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on September 29, 2014.http://www.rfc-editor.org/info/rfc7314. Copyright Notice Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . .. 32 1.1. Reserved Words . . . . . . . . . . . . . . . . . . . . .. 32 2. Expire EDNSoptionOption (Query) . . . . . . . . . . . . . . . . ..3 3. Expire EDNSoptionOption (Response) . . . . . . . . . . . . . . . ..3 3.1. Primary Server . . . . . . . . . . . . . . . . . . . . ..3 3.2. Secondary Server . . . . . . . . . . . . . . . . . . . .. 43 3.3.Non-AuthoritativeNon-authoritative Server . . . . . . . . . . . . . . . .. 43 4. Secondary Behaviour . . . . . . . . . . . . . . . . . . . . .. 43 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . ..4 6. Security Considerations . . . . . . . . . . . . . . . . . . .. 54 7. Normative References . . . . . . . . . . . . . . . . . . . .. 5 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . 54 1. Introduction The expire field of a DNS zone's SOA record[RFC 1035][RFC1035] is supposed to indicate when a secondary server shall discard the contents of the zone when it has been unable to contact the primary[RFC 1034].[RFC1034]. Current practice only works when all the secondaries contact the primary directly to perform refresh queries and zone transfers. While secondaries are expected to be able to, and often are configured to, transfer from other secondaries for robustness reasons as well as reachability constraints, therewasis no mechanism provided to preserve the expiry behaviour when using a secondary.Secondaries insteadInstead, secondaries have to know whether theywereare talking directly to the primary or anothersecondary,secondary and use that to decide whether or not to update the expiretimer or not. This howevertimer. This, however, fails to take into account delays in transferring from one secondary to another. There are alsozone transferzone-transfer graphs in which the secondary never talks to the primary, so the effective expiry period becomes multiplied by the length of thezone transfer graph--whichzone-transfer graph, which is infinite when it containsloops is infinite.loops. This document provides a mechanism to preserve the expiry behaviour regardless of whatzone transferzone-transfer graph is constructed and whether the secondary is talking to the primary or another secondary. 1.1. Reserved Words The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in[RFC 2119].[RFC2119]. 2. Expire EDNSoptionOption (Query) The EDNS[RFC 6891][RFC6891] EXPIRE option has the value<TBA>.<9>. The EDNS EXPIRE option MAY be includedseton any QUERY, though usually this is only done on SOA,AXFRAXFR, and IXFR queries involved in zone maintenance. This is done by adding azero lengthzero-length EDNS EXPIRE option to the options field of the OPT record when the query is made. 3. Expire EDNSoptionOption (Response) 3.1. Primary Server When the query is directed to the primary server for the zone, the response will beaan EDNS EXPIRE option of length 4 containing the value of the SOA EXPIRE field, in seconds and network byte order. 3.2. Secondary Server When the query is directed to a secondary server for the zone, then the response will be an EDNS EXPIRE option of length 4 containing the value of the expire timer on that server, in seconds and network byte order. 3.3.Non-AuthoritativeNon-authoritative Server If an EDNS EXPIRE option is sent to a server that is not authoritative for thezonezone, it MUST NOT add an EDNS EXPIRE option to the response. 4. Secondary Behaviour When a secondary server performs azone transferzone-transfer request orperformsazonezone- refreshqueryquery, it SHALL add an EDNS EXPIRE option to the query message. If a secondary receives an EDNS EXPIRE option in a response toaan SOA query, it SHALL update its expire timer to be the maximum of the value returned in the EDNS EXPIRE option and the current timer value. Similarly, if a secondary receives an EDNS EXPIRE option in its response to an IXFR querywhichthat indicated the secondary is up to date (serial matches currentserial)serial), the secondary SHALL update the expire timer to be the maximum of the value returned in theEXPIREEDNS EXPIRE option and the current timer value. If the zone is transferred or updated as the result of an AXFR or IXFR query and there is an EDNS EXPIRE option with theresponseresponse, then the value of the EDNS EXPIRE option SHOULD be used instead ofthatthe value of the SOA EXPIRE field to initialise the expire timer. In all cases, if the value of the SOA EXPIRE field is less than the value of the EDNS EXPIRE option, then the value of the SOA EXPIRE field MUST be used and MUST be treated as a maximum when updating or initialising the expire timer. 5. IANA Considerations IANAis requested to assign ahas assigned an EDNS option code point(Registry Name: DNS EDNS0 Options)for the EDNS EXPIRE option specified in Section 2 with "Optional"status.status in the "DNS EDNS0 Option Codes (OPT)" registry. 6. Security ConsiderationsThisThe method described in this document ensures that servers that no longer have a connection to the primary server, direct or indirectly, cease serving the zone content when SOA EXPIRE timer is reached. Thispreventprevents stale data from being served indefinitely. The EDNS EXPIRE option exposes how long the secondaries have been out of communication with the primary server. This is not believed to be a problem and may provide some benefit to monitoring systems. 7. Normative References[RFC 1034][RFC1034] Mockapetris, P.,"DOMAIN NAMES"Domain names -CONCEPTS AND FACILITIES",concepts and facilities", STD 13, RFC 1034, November 1987.[RFC 1035][RFC1035] Mockapetris, P.,"DOMAIN NAMES"Domain names -IMPLEMENTATION AND SPECIFICATION",implementation and specification", STD 13, RFC 1035, November 1987.[RFC 2119][RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.[RFC 6891][RFC6891] Damas, J., Graff, M., and P. Vixie, "Extension Mechanisms for DNS (EDNS(0))", STD 75, RFC 6891, April 2013. Author's Address Mark P. Andrews Internet Systems Consortium 950 Charter Street Redwood City, CA 94063 USEmail:EMail: marka@isc.org