dprive W. Toorop Internet-Draft NLnet Labs Updates: 1995, 5936, 7766 (if approved) S. Dickinson Intended status: Standards Track Sinodun IT Expires:January 14,May 6, 2021 S. Sahib P. Aras A. Mankin SalesforceJuly 13,November 2, 2020 DNS Zone Transfer-over-TLSdraft-ietf-dprive-xfr-over-tls-02draft-ietf-dprive-xfr-over-tls-03 Abstract DNS zone transfers are transmitted in clear text, which gives attackers the opportunity to collect the content of a zone by eavesdropping on network connections. The DNS Transaction Signature (TSIG) mechanism is specified to restrict direct zone transfer to authorized clients only, but it does not add confidentiality. This document specifies use of TLS, rather then clear text, to prevent zonecontentscontent collection via passive monitoring of zonetransfers.transfers: XFR-over-TLS (XoT). Additionally, this specification updates RFC1995, RFC5936 and RFC7766. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any 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 onJanuary 14,May 6, 2021. Copyright Notice Copyright (c) 2020 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 . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . .45 3. Use Cases for XFR-over-TLS . . . . . . . . . . . . . . . . . 5 3.1. Threat model . . . . . . . . . . . . . . . . . . . . . . 6 4. Connection and Data Flows in Existing XFR Mechanisms . . . .57 4.1. AXFR Mechanism . . . . . . . . . . . . . . . . . . . . .67 4.2. IXFR Mechanism . . . . . . . . . . . . . . . . . . . . .79 4.3. Data Leakage of NOTIFY and SOA Message Exchanges . . . .811 4.3.1. NOTIFY . . . . . . . . . . . . . . . . . . . . . . .811 4.3.2. SOA . . . . . . . . . . . . . . . . . . . . . . . . .811 5.Connections and Data Flows in XoT .Updates to existing specifications . . . . . . . . . . . . .811 5.1.TLS versionsUpdate to RFC1995 for IXFR-over-TCP . . . . . . . . . . . 12 5.2. Update to RFC5936 for AXFR-over-TCP . . . . . . . . . . .8 5.2. Connection usage13 5.3. Updates to RFC1995 and RFC5936 for XFR-over-TCP . . . . . 13 5.3.1. Connection reuse . . . . . . . . . . . . . . .8 5.2.1. High level XoT descriptions. . . 13 5.3.2. AXFRs and IXFRs on the same connection . . . . . . . 13 5.3.3. XFR limits . . .9 5.2.2. Previous specifications. . . . . . . . . . . . . . .9 5.3. Update to RFC7766. . . 14 5.3.4. The edns-tcp-keepalive EDNS0 Option . . . . . . . . . 14 5.3.5. Backwards compatibility . . . . . . . .10 5.4. Connection Establishment. . . . . . . 15 5.4. Update to RFC7766 . . . . . . . . .10 5.4.1. Draft Version Identification. . . . . . . . . . . 15 6. XoT specification .11 5.5. Port selection. . . . . . . . . . . . . . . . . . . . .11 5.6. AXoT mechanism16 6.1. TLS versions . . . . . . . . . . . . . . . . . . . . .11 5.6.1. Coverage and relationship to RFC5936. 16 6.2. Port selection . . . . . . .12 5.6.2. AXoT connection and message handling. . . . . . . .12 5.6.3. Padding AXoT responses. . . . . . 16 6.3. High level XoT descriptions . . . . . . . . .14 5.7. IXoT mechanism. . . . . . 16 6.4. XoT transfers . . . . . . . . . . . . . . .15 5.7.1. Coverage and relationship to RFC1995. . . . . . . 18 6.5. XoT connections .15 5.7.2. IXoT connection and message handling. . . . . . . .15 5.7.3. Condensation of responses. . . . . . . . . . . . 19 6.6. XoT vs ADoT . .16 5.7.4. Fallback to AXFR. . . . . . . . . . . . . . . . . .16 5.7.5. Padding of IXoT responses. . . 19 6.7. Response RCODES . . . . . . . . . . .16 6. Multi-primary Configurations. . . . . . . . . . 20 6.8. AXoT specifics . . . . . .16 7. Zone Transfer with DoT - Authentication. . . . . . . . . . .17 7.1. TSIG. . . . 20 6.8.1. Padding AXoT responses . . . . . . . . . . . . . . . 20 6.9. IXoT specifics . . . . . . .17 7.2. SIG(0). . . . . . . . . . . . . . 21 6.9.1. Condensation of responses . . . . . . . . . . .17 7.3. TLS. . . 21 6.9.2. Fallback to AXFR . . . . . . . . . . . . . . . . . . 21 6.9.3. Padding of IXoT responses . . . . . .18 7.3.1. Opportunistic. . . . . . . . 22 6.10. Name compression and maximum payload sizes . . . . . . . 22 7. Multi-primary Configurations . . . . .18 7.3.2. Strict. . . . . . . . . . . 22 8. Authentication mechanisms . . . . . . . . . . . .18 7.3.3. Mutual. . . . . . 23 8.1. TSIG . . . . . . . . . . . . . . . . .18 7.4.. . . . . . . . . 24 8.2. SIG(0) . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.3. TLS . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.3.1. Opportunistic TLS . . . . . . . . . . . . . . . . . . 24 8.3.2. Strict TLS . . . . . . . . . . . . . . . . . . . . . 25 8.3.3. Mutual TLS . . . . . . . . . . . . . . . . . . . . . 25 8.4. IP Based ACL on the Primary . . . . . . . . . . . . . . .18 7.5.25 8.5. ZONEMD . . . . . . . . . . . . . . . . . . . . . . . . .19 7.6. Comparison of Authentication Methods26 9. XoT authentication . . . . . . . . . .19 8.. . . . . . . . . . . 26 10. Policies for BothAXFRAXoT andIXFRIXoT . . . . . . . . . . . . . . .20 9.27 11. Implementation Considerations . . . . . . . . . . . . . . . .21 10.28 12. Implementation Status . . . . . . . . . . . . . . . . . . . .21 11.28 13. IANA Considerations . . . . . . . . . . . . . . . . . . . . .21 11.1. Registration of XoT Identification String . . . . . . . 21 12.28 14. Security Considerations . . . . . . . . . . . . . . . . . . .21 13.28 15. Acknowledgements . . . . . . . . . . . . . . . . . . . . . .22 14.29 16. Contributors . . . . . . . . . . . . . . . . . . . . . . . .22 15.29 17. Changelog . . . . . . . . . . . . . . . . . . . . . . . . . .22 16.29 18. References . . . . . . . . . . . . . . . . . . . . . . . . .23 16.1.30 18.1. Normative References . . . . . . . . . . . . . . . . . .23 16.2.30 18.2. Informative References . . . . . . . . . . . . . . . . .24 16.3.32 18.3. URIs . . . . . . . . . . . . . . . . . . . . . . . . . .26 Authors' Addresses34 Appendix A. XoT server connection handling . . . . . . . . . . . 34 A.1. Only listen on TLS on a specific IP address . . . . . . . 34 A.2. Client specific TLS acceptance . . . . .26 1. Introduction DNS has a number of privacy vulnerabilities, as discussed in detail in [RFC7626]. Stub client to recursive resolver query privacy has received the most attention to date, with standards track documents for both DNS-over-TLS (DoT) [RFC7858] and DNS-over-HTTPS (DoH). . . . . . . . 34 A.3. SNI based TLS acceptance . . . . . . . . . . . . . . . . 35 A.4. TLS specific response policies . . . . . . . . . . . . . 35 A.4.1. SNI based response policies . . . . . . . . . . . . . 36 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 36 1. Introduction DNS has a number of privacy vulnerabilities, as discussed in detail in [RFC7626]. Stub client to recursive resolver query privacy has received the most attention to date, with standards track documents for both DNS-over-TLS (DoT) [RFC7858] and DNS-over-HTTPS (DoH) [RFC8484], and a proposal for DNS-over-QUIC [I-D.ietf-dprive-dnsoquic]. There is ongoing work on DNS privacy requirements for exchanges between recursive resolvers and authoritative servers [I-D.ietf-dprive-phase2-requirements] and some suggestions for how signaling of DoT support by authoritatives might work, e.g., [I-D.vandijk-dprive-ds-dot-signal-and-pin]. However there is currently no RFC that specifically defines recursive to authoritativesupport for DNS-over-TLS.DNS-over-TLS (ADoT). [RFC7626] established that stub client DNS query transactions are not public and needed protection, but on zone transfer [RFC1995] [RFC5936] it says only: "Privacy risks for the holder of a zone (the risk that someone gets the data) are discussed in [RFC5936] and [RFC5155]." In what way is exposing the full contents of a zone a privacy risk? The contents of the zone could include information such as names of persons used in names of hosts. Best practice is not to use personal information for domain names, but many such domain names exist. The contents of the zone could also include references to locations that allow inference about location information of the individuals associated with the zone's organization. It could also include references to other organizations. Examples of this could be: o Person-laptop.example.org o MX-for-Location.example.org o Service-tenant-from-another-org.example.org There may also be regulatory, policy or other reasons why the zone contents in full must be treated as private. Neither of the RFCs mentioned in [RFC7626] contemplates the risk that someone gets the data through eavesdropping on network connections, only via enumeration or unauthorized transfer as described in the following paragraphs.[RFC5155] specifies NSEC3 to prevent zone enumeration, whichZone enumeration iswhentrivially possible for DNSSEC zones which use NSEC; i.e. queries for the authenticated denial of existences recordsof DNSSECallow a client to walk through the entirezone. Note that the needzone contents. [RFC5155] specifies NSEC3, a mechanism to provide measures against zone enumeration for DNSSEC signed zones (a goal was to make it as hard to enumerate an DNSSEC signed zone as an unsigned zone). Whilst thisprotection also motivates NSEC5 [I-D.vcelak-nsec5];is widely used, zone walking is now possible with NSEC3 due to crypto-breakingadvances, andadvances. This has prompted further work on an alternative mechanism for DNSSEC authenticated denial of existence - NSEC5is a response to[I-D.vcelak-nsec5] - however questions remain over the practicality of thisproblem.mechanism. [RFC5155] does not address data obtained outside zone enumeration (nor does [I-D.vcelak-nsec5]). Preventing eavesdropping of zone transfers (this draft) is orthogonal to preventing zone enumeration, though they aim to protect the same information. [RFC5936] specifies using TSIG [RFC2845] for authorization of the clients of a zone transfer and for data integrity, but does not express any need for confidentiality, and TSIG does not offer encryption. Some operators use SSH tunneling or IPSec to encrypt the transfer data.Because both AXFR and IXFRSection 8 of the NIST guide on 'Secure Domain Name System (DNS) Deployment' [nist-guide] discusses restricting access for zone transfers using ACLs and TSIG in more detail. It is noted that in all the common open source implementations such ACLs are applied on a per query basis. Since requests typicallycarried out overoccur on TCP connections authoritatives must cater for accepting any TCP connection and then handling the authentication of each XFR request individually. Because both AXFR and IXFR zone transfers are typically carried out over TCP from authoritative DNS protocol implementations, encrypting zone transfers using TLS, based closely on DoT [RFC7858], seems like a simple step forward. This document specifies how to use TLS as a transport to prevent zone collection from zone transfers. 2. Terminology The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] and [RFC8174] when, and only when, they appear in all capitals, as shown here. Privacy terminology is as described in Section 3 of [RFC6973]. Note that in this document we choose to use the terms 'primary' and 'secondary' for two servers engaged in zone transfers. DNS terminology is as described in [RFC8499]. DoT: DNS-over-TLS as specified in [RFC7858] XFR-over-TCP: Used to mean both IXFR-over-TCP [RFC1995] and AXFR- over-TCP [RFC5936]. XoT: Generic XFR-over-TLS mechanisms as specified in this document AXoT: AXFR-over-TLS IXoT: IXFR over-TLS 3. Use Cases for XFR-over-TLS o Confidentiality. Clearly using an encrypted transport for zone transfers will defeat zone content leakage that can occur via passive surveillance. o Authentication. Use of single or mutual TLS (mTLS) authentication (in combination with ACLs) can complement and potentially be an alternative to TSIG. o Performance. Existing AXFR and IXFR mechanisms have the burden of backwards compatibility with older implementations based on the original specifications in [RFC1034] and [RFC1035]. For example, some older AXFR servers don't support using a TCP connection for multiple AXFR sessions or XFRs of different zones because they have not been updated to follow the guidance in [RFC5936]. Any implementation of XFR-over-TLS (XoT) would obviously be required to implement optimized and interoperable transfers as described in [RFC5936], e.g., transfer of multiple zones over one connection. o Performance. Current usage of TCP for IXFR is sub-optimal in some cases i.e. connections are frequently closed after a single IXFR. 3.1. Threat model The threat model considered here is one where the current contents and size of the zone are considered sensitive and should be protected during transfer. The threat model does not, however, consider the existence of a zone, the act of zone transfer between two entities, nor the identities of the nameservers hosting a zone (including both those acting as hidden primaries/secondaries or directly serving the zone) as sensitive information. The proposed mechanisms does not attempt to obscure such information. The reasons for this include: o much of this information can be obtained by various methods including active scanning of the DNS o an attacker who can monitor network traffic can relatively easily infer relations between nameservers simply from traffic patterns, even when some or all of the traffic is encrypted It is noted that simply using XoT will indicate a desire by the zone owner that the contents of the zone remain confidential and so could be subject to blocking (e.g. via blocking of port 853) if an attacker had such capabilities. However this threat is likely true of any such mechanism that attempts to encrypt data passed between nameservers e.g. IPsec. 4. Connection and Data Flows in Existing XFR Mechanisms The original specification for zone transfers in [RFC1034] and [RFC1035] was based on a polling mechanism: a secondary performed a periodic SOA query (based on the refresh timer) to determine if an AXFR was required. [RFC1995] and [RFC1996] introduced the concepts of IXFR and NOTIFY respectively, to provide for prompt propagation of zone updates. This has largely replaced AXFR where possible, particularly for dynamically updated zones. [RFC5936] subsequently redefined the specification of AXFR to improve performance and interoperability. In this document we use the phrase "XFR mechanism" to describe the entire set of message exchanges between a secondary and a primary that concludes in a successful AXFR or IXFR request/response. This set may or may not include o NOTIFY messages o SOA queries o Fallback from IXFR to AXFR o Fallback from IXFR-over-UDP to IXFR-over-TCP The term is used to encompasses the range of permutations that are possible and is useful to distinguish the 'XFR mechanism' from a single XFR request/response exchange. 4.1. AXFR Mechanism The figure below provides an outline of an AXFR mechanism including NOTIFYs. Secondary Primary | NOTIFY | | <-------------------------------- | UPD | --------------------------------> | | NOTIFY Response | | | | | | SOA Request | | --------------------------------> | UDP (or part of | <-------------------------------- | a TCP session) | SOA Response | | | | | | | | AXFR Request | --- | --------------------------------> | | | <-------------------------------- | | | AXFR Response 1 | | | (Zone data) | | | | | | <-------------------------------- | | TCP | AXFR Response 2 | | Session | (Zone data) | | | | | | <-------------------------------- | | | AXFR Response 3 | | | (Zone data) | --- | | Figure 1. AXFR Mechanism[1]1. An AXFR is often (but not always) preceded by a NOTIFY (over UDP) from the primary to the secondary. A secondary may also initiate an AXFR based on a refresh timer or scheduled/triggered zone maintenance. 2. The secondary will normally (but not always) make a SOA query to the primary to obtain the serial number of the zone held by the primary. 3. If the primary serial is higher than the secondaries serial (using Serial Number Arithmetic [RFC1982]), the secondary makes an AXFR request (over TCP) to the primary after which the AXFR data flows in one or more AXFR responses on the TCP connection. [RFC5936]specifiesdefines this specific step as an 'AXFR session' i.e. as an AXFR query message and the sequence of AXFR response messages returned for it. [RFC5936] re-specified AXFR providing additional guidance beyond that provided in [RFC1034] and [RFC1035] and importantly specified that AXFR must use TCP as the transportprotocol but details that there is no restriction in the protocol that a single TCP connection must be used onlyprotocol. Additionally, sections 4.1, 4.1.1 and 4.1.2 of [RFC5936] provide improved guidance fora singleAXFRexchange, or even solelyclients and servers with regard to re-use of TCP connections forXFRs.multiple AXFRs and AXFRs of different zones. However [RFC5936] was constrained by having to be backwards compatible with some very early basic implementations of AXFR. For example, it outlines that the SOA query can also happen on this connection. However, this can cause interoperability problems with older implementations that support only the trivial case of one AXFR per connection.Further details of the limitations in existing AXFR implementations are outlined in [RFC5936].4.2. IXFR Mechanism The figure below provides an outline of the IXFR mechanism including NOTIFYs. Secondary Primary | NOTIFY | | <-------------------------------- | UPD | --------------------------------> | | NOTIFY Response | | | | | | SOA Request | | --------------------------------> | UDP or TCP | <-------------------------------- | | SOA Response | | | | | | | | IXFR Request | | --------------------------------> | UDP or TCP | <-------------------------------- | | IXFR Response | | (Zone data) | | | | | --- | IXFR Request | | | --------------------------------> | | Retry over | <-------------------------------- | | TCP if | IXFR Response | | required | (Zone data) | --- Figure 1. IXFR Mechanism[2]1. An IXFR is normally (but not always) preceded by a NOTIFY (over UDP) from the primary to the secondary. A secondary may also initiate an IXFR based on a refresh timer or scheduled/triggered zone maintenance. 2. The secondary will normally (but not always) make a SOA query to the primary to obtain the serial number of the zone held by the primary. 3. If the primary serial is higher than the secondaries serial (using Serial Number Arithmetic [RFC1982]), the secondary makes an IXFR request to the primary after the primary sends an IXFR response. [RFC1995] specifies that Incremental Transfer may use UDP if the entire IXFR response can be contained in a single DNS packet, otherwise, TCP is used. In factis says in non-normative language:it says: "Thus, a client should first make an IXFR query using UDP." So there may be aforthfourth step above where the client falls back to IXFR-over-TCP. There may also be aforthfourth step where the secondary must fall back to AXFR because, e.g., the primary does not support IXFR. However it is noted thatat least twomost widely used open source authoritative nameserver implementations(BIND [3](including both BIND [1] and NSD[4])[2]) do IXFR using TCP by default in their latest releases. For BIND TCP connections are sometimes used for SOA queries but in general they are not used persistently and close after an IXFR is completed.It is noted that the specification for IXFR was published well before TCP was considered a first class transport for DNS. This document therefore updates [RFC1995] to state that DNS implementations that support IXFR-over-TCP MUST use [RFC7766] to optimize the use of TCP connections and SHOULD use [RFC7858] to manage persistent connections.4.3. Data Leakage of NOTIFY and SOA Message Exchanges This section attempts to presents a rationale foralsoconsidering encrypting the other messages in the XFR mechanism. Since the SOA of the published zone can be trivially discovered by simply querying the publicly available authoritative servers leakage of this RR is not discussed in the following sections. 4.3.1. NOTIFY Unencrypted NOTIFY messages identify configured secondaries on the primary. [RFC1996] also states: "If ANCOUNT>0, then the answer section represents an unsecure hint at the new RRset for this (QNAME,QCLASS,QTYPE). But since the only supported QTYPE for NOTIFY is SOA, this does not pose a potential leak. 4.3.2. SOA For hidden primaries or secondaries the SOA response leaks only the degree of lag of any downstream secondary. 5.Connections and Data Flows in XoT 5.1. TLS versionsUpdates to existing specifications Forimproved security all implementations of this specification MUST use only TLS 1.3 [RFC8446] or later. 5.2. Connection usage Itconvenience, the phrase 'XFR-over-TCP' isusefulused in this document tonotemean both IXFR-over-TCP and AXFR-over-TCP and therefore statements thatin these mechanismsuse itis the secondary that initiates the TLS connectionupdate both [RFC1995] and [RFC5936], and implicitly also apply tothe primary for a XFR request, so thatXoT. Differences interms of connectivity the secondary is the TLS client and the primary the TLS server. The detailsbehavior specific to XoT are discussed in[RFC7766], [RFC7858] and [RFC8310] about, e.g., persistent connectionSection 6. Both [RFC1995] andmessage handling are fully applicable to XoT as well. However any behavior specified here takes precedence for XoT. 5.2.1. High level XoT descriptions The figure below provides an outline of the AXoT mechanism including NOTIFYs. Figure 3: AXoT mechanism [5] The figure below provides an outline of the IXoT mechanism including NOTIFYs. Figure 4: IXoT mechanism [6] 5.2.2. Previous specifications We note that whilst[RFC5936]already recommendswere published sometime before TCP was considered a first class transport for DNS. [RFC1995], in fact, says nothing with respect to optimizing IXFRs over TCP or re-using already open TCPconnections, it does state: "Non-AXFR session traffic can also useconnections to perform IXFRs or other queries. Therefore, there arguably is an implicit assumption (probably unintentional) that a TCP connection is used for one and only one IXFR request. Indeed, several open source implementations currently take this approach. And whilst [RFC5936] gives guidance on connection re-use for AXFR, it pre-dates more recent specifications describing persistent TCPconnection." when discussing AXFR-over-TCP. It defines an AXFR session as an AXFR query messageconnections e.g. [RFC7626], [RFC7828] andthe sequence ofAXFRresponse messages returnedimplementations again often make less than optimal use of open connections. Given this, new implementations of XoT will clearly benefit from specific guidance on TCP/TLS connection usage forit. Note thatXFR because thisexcludeswill: o result in more consistent XoT implementations with better interoperability o remove anySOA queries issued as part of the overall AXFR mechanism. This requirement needsneed for XoT implementations tobe re-evaluated when considering applyingsupport legacy behavior that XFR-over-TCP implementations have historically often supported Therefore this document updates both thesame modelprevious specifications for XFR-over-TCP toXoT since o There is no guaranteeclarify thata XoT server (which is very likely, but not necessarily, a purely authoritative server) will also support DoT for regular queries. Requiring a purely authoritative server to also respond to any queryimplementations MUST use [RFC7766] (DNS Transport overa TLS connection would be equivalent to defining a form of authoritative DoT. We consider thisTCP - Implementation Requirements) tobe outoptimize the use ofscope for this document, which is focussed purely on zone transfers. o It would, however, be optimal for XoTTCP connections and SHOULD use [RFC7828] (The edns-tcp-keepalive EDNS0 Option) to manage persistent connections. The following sections include detailed clarifications on thecapabilityupdates tosend SOA queries over an already open TLS connection. Moreover, it is worth noting thatXFR behavior implied in [RFC7766]made general implementation recommendations with regard to TCP/TLS connection handling: "To mitigateand how theriskuse ofunintentional server overload, DNS clients MUST take care[RFC7828] applies specifically tominimizeXFR exchanges. It also discusses how IXFR and AXFR can reuse thenumber of concurrentsame TCPconnections madeconnection. For completeness, we also mention here the recent specification of extended DNS error (EDE) codes [RFC8914]. For zone transfers, when returning REFUSED toany individual server. Ita zone transfer request to an 'unauthorized' client (e.g. where the client isRECOMMENDED that for any given client/server interaction there SHOULD be no more than one connection for regular queries, onenot listed in an ACL for zonetransfers, and onetransfers or does not sign the request with the correct TSIG key), the extended DNS error code 18 (Prohibited) can also be sent. 5.1. Update to RFC1995 foreach protocol that is being usedIXFR-over-TCP For clarity - an IXFR-over-TCP server compliant with this specification MUST be able to handle multiple concurrent IXoT requests ontop ofa single TCP connection (forexample, iftheresolver was using TLS). However, it is noted that certain primary/ secondary configurations with many busy zonessame and different zones) and SHOULD send the responses as soon as they are available, which mightneed to use more than one TCP connection for zone transfers for operational reasons (for example,be out-of-order compared tosupport concurrent transfers of multiple zones)." Whilst this recommends a particular behavior for the clients using TCP, it does not relaxtherequirementrequests. 5.2. Update to RFC5936 forserversAXFR-over-TCP For clarity - an AXFR-over-TCP server compliant with this specification MUST be able to handle'mixed' traffic (regular queries and zone transfers)multiple concurrent AXoT sessions onany open TCP/TLS connection. It also overlooks the potential that other transports might want to takea single TCP connection (for the sameapproachand different zones). The response streams for concurrent AXFRs MAY be intermingled and AXFR-over-TCP clients compliant withregardthis specification MUST be able tousing separate connections for different purposes.handle this. 5.3.UpdateUpdates toRFC7766 This specificationRFC1995 and RFC5936 forXoT updates the guidance in [RFC7766]XFR-over-TCP 5.3.1. Connection reuse As specified, XFR-over-TCP clients SHOULD re-use any existing open TCP connection when starting any new XFR request toprovidethe sameseparation of connection purpose (regular queriesprimary, andzone transfers)forall transports being used on topissuing SOA queries, instead ofTCP. Therefore, it is RECOMMENDED that for each protocol used on topopening a new connection. The number of TCPin any given client/server interaction thereconnections between a secondary and primary SHOULD beno more than one connectionminimized (also see Section 5.4). Valid reasons forregular queries and onenot re-using existing connections might include: o reaching a configured limit forzone transfers. We provide specific details inthefollowing sectionsnumber ofreasons where more than oneoutstanding queries or XFR requests allowed on a single TCP connectionmight be required for zone transfers. 5.4. Connection Establishment This specification additionally limits the scope of XoT as defined here to beo theuse of dedicated TLS connections (XoT connections) to exchange only traffic specific to enabling zone transfers. The set of transactions supportedmessage ID pool has already been exhausted onsuch connections is limited to: o AXFRan open connection oIXFRa large number of timeouts or slow responses have occurred on an open connection oSOAan edns-tcp-keepalive EDNS0 option with a timeout of 0 has been received from the server and the client iscollectively referred to hereafter as 'XoT traffic'. Such connections MUST use an ALPN tokenin the process of'xot' duringclosing theTLS handshakeconnection (see Section11). In5.3.4) If no TCP connections are currently open, XFR clients MAY send SOA queries over UDP or a new TCP connection. 5.3.2. AXFRs and IXFRs on theabsence of DNS specific capability signaling mechanisms this greatly simplifiessame connection Neither [RFC1995] nor [RFC5936] explicitly discuss theimplementationuse ofXoT such thataXoT exchange can occur between any primarysingle TCP connection for both IXFR andsecondary regardless ofAXFR requests. [RFC5936] does make therole of each (e.g. purely authoritative, recursive resolvergeneral state: "Non-AXFR session traffic can alsoauthoritatively hosting zones, stub) oruse an open TCP connection." We clarify here that implementations capable ofother DNS transport capability each may have. It also clearly makes XoT support orthogonalboth AXFR and IXFR and compliant with this specification SHOULD o use the same TCP connection for both AXFR and IXFR requests toany set of zone transfer authentication mechanisms chosen bythetwo parties. XoT clients MUST only send XoT traffic on XoT connections. If a XoT server receives traffic other than XoT traffic on a XoT connection it MUST respond with the extended DNS error code 21 - Not Supported [I-D.ietf-dnsop-extended-error]. It SHOULD treat this as protocol errorsame primary o pipeline such request andclose the connection. With the update to [RFC7766] guidance above, clients are free to open separate connections toMAY intermingle them o send theserver to make any other queries they may need over either TLS, TCP or UDP. A specificationresponse(s) forconnections that support both XoT traffic and non-XoT traffic mayeach request as soon as they are available i.e. responses MAY be sent intermingled 5.3.3. XFR limits The server MAY limit thesubjectnumber of concurrent IXFRs, AXFRs or total XFR transfers in progress, or from afuture work. 5.4.1. Draft Version Identification _RFC Editor's Note:_ Please remove this section priorgiven secondary, topublication of a final version of this document. Only implementations ofprotect server resources. [OPEN QUESTION] Testing has shown that BIND returns SERVFAIL if thefinal, published RFC can identify themselves as "xot". Until such an RFC exists, implementations MUST NOT identify themselves usinglimit on concurrent transfers is reached since thisstring. Implementations of draft versions of the protocol MUST add the string "-" and the corresponding draft number to the identifier. For example, draft-ietf-dprive-xfr-over-tls-02isidentified using the string "xot-02". 5.5. Port selection The connection for XoT SHOULD be established using port 853,regarded asspecified in [RFC7858], unless there is mutual agreement between the secondarya soft limit andprimary to useaport other than port 853 for XoT. There MAYretry can/should succeed. Should there beagreement to use different ports for AXoT and IXoT. 5.6. AXoT mechanism 5.6.1. Coverage and relationshipa specific recommendation here about what is returned re: SERVFAIL vs REFUSED? [OPEN QUESTION] Is there a desire toRFC5936 [RFC5936] re-specified AXFR providingdefine an additionalguidance beyondXFR specific EDE code so thatprovided in [RFC1034] and [RFC1035]. For example, sections 4.1, 4.1.1 and 4.1.2 of [RFC5936] provide improved guidance for AXFR clients and servers with regard to re-use of connections for multiple AXFRs and AXFRs of different zones. However [RFC5936]a client can determine why a specific XFR request wasconstrained by having to be backwards compatible with some very early basic implementations of AXFR. Here we specify some optimized behaviors for AXoT, based closely on those in [RFC5936], but without the constraint of backwards compatibility since it is expected that all implementations of AXoT fully implement the behavior described here. Where any behavior is not explicitly described here, the behavior specifieddeclined in[RFC5936] MUST be followed. Any behavior specified here takes precedence for AXoT implementations over thatthis case e.g., Max concurrent XFR: too may concurrent transfers in[RFC5936]. 5.6.2. AXoT connection and message handling The first paragraph of Section 4.1.1 of [RFC5936] says thatprogress. It could potentially contain a retry delay, or at least clientsSHOULD close the connection when there is no 'apparent need' to use the connectioncan apply a reasonable back-off forsome time period. For AXoT this requirement is updated: AXoT clients and servers SHOULD use EDNS0 Keepalive [RFC7828] to establishtheconnection timeoutsretry. This could avoid retry storms which have been observed tobe used.actually increase the load on primaries in certain scenarios. 5.3.4. Theclient SHOULDedns-tcp-keepalive EDNS0 Option XFR clients that send the edns-tcp-keepalive EDNS0Keepaliveoption on everyAXoTXFR requestsent so thatprovide the serverhas everywith maximum opportunity to update theKeepaliveedns-tcp-keepalive timeout. TheAXoTXFR server may use the frequency of recentAXFRsXFRs to calculate an average update rate as input to the decision of whatEDNS0 Keepaliveedns-tcp-keepalive timeout to use. If the server does not supportEDNS0 Keepaliveedns-tcp-keepalive the client MAY keep the connection open for a few seconds ([RFC7766] recommends that servers use timeouts of at least a few seconds). Whilst the specification for EDNS0 [RFC6891] does not specifically mention AXFRs, it does say "If an OPT record is present in a received request, compliant responders MUST include an OPT record in their respective responses." We clarify here that if an OPT record is present in a receivedAXoTAXFR request, compliant responders MUST include an OPT record in each of the subsequentAXoTAXFR responses. Note that this requirement, combined with the use ofEDNS0 Keepalive,edns-tcp-keepalive, enablesAXoTAXFR servers to signal the desire to close a connection (when existing transactions have competed) due to low resources by sending an edns-tcp-keepalive EDNS0Keepaliveoption with a timeout of 0 on anyAXoT response (in the absence of another way toAXFR response. This does not signal that the AXFR is aborted, just that theabort of a AXoT transfer). An AXoTserverMUST be ablewishes tohandle multiple AXFR requests on a single XoTclose the connection(for the sameas soon as possible. 5.3.5. Backwards compatibility Certain legacy behaviors were noted in [RFC5936], with provisos that implementations may want to offer options to fallback to legacy behavior when interoperating with servers known not to support [RFC5936]. For purposes of interoperability, IXFR anddifferent zones). [RFC5936] says: "AnAXFRclient MAY use an already opened TCP connectionimplementations may want to continue offering such configuration options, as well as supporting some behaviors that were underspecified prior tostart an AXFR session. Using an existing open connection is RECOMMENDED over opening a new connection. (Non-AXFR session traffic can also use an open connection.)" For AXoTthisrequirement is updated: AXoT clients SHOULD re-use an existing openwork (e.g. performing IXFR and AXFRs on separate connections). However, XoTconnection when starting any new AXoT sessionimplementations should have no need to do so. 5.4. Update to RFC7766 [RFC7766] made general implementation recommendations with regard to TCP/TLS connection handling: "To mitigate thesame primary, and for issuing SOA queries, insteadrisk ofopening a new connection. Theunintentional server overload, DNS clients MUST take care to minimize the number ofXoTconcurrent TCP connectionsbetween a secondary and primarymade to any individual server. It is RECOMMENDED that for any given client/server interaction there SHOULD beminimized. Valid reasonsno more than one connection fornot re-using existing connections might include: o reaching a configured limitregular queries, one forthe number of outstanding queries allowed on a single XoT connection o the message ID pool has already been exhaustedzone transfers, and one for each protocol that is being used onan open connection o a large numbertop oftimeouts or slow responses have occurred on an open connection o an EDNS0 Keepalive option with a timeout of 0 has been received from the server andTCP (for example, if theclientresolver was using TLS). However, it isin the process of closing the connection If no XoT connections are currently open, AXoT clients MAY send SOA queries over UDP, TCP or TLS. [RFC5936] says: "Some old AXFR clients expect each response message to contain only a single RR. To interoperatenoted that certain primary/ secondary configurations withsuch clients, the server MAY restrict response messagesmany busy zones might need toa single RR." This is opposeduse more than one TCP connection for zone transfers for operational reasons (for example, tothe normal behaviorsupport concurrent transfers ofcontainingmultiple zones)." Whilst this recommends asufficient number of RRs to reasonably amortizeparticular behavior for theper-message overhead. We clarify here that AXoTclientsMUST be ableusing TCP, it does not relax the requirement for servers to handleresponses that include multiple RRs, up to'mixed' traffic (regular queries and zone transfers) on any open TCP/TLS connection. It also overlooks thelargest numberpotential thatwill fit within a DNS message (taking the required content of theothersections into account, as described here and in [RFC5936]). This removes any burden on AXoT servers of havingtransports might want toaccommodate a configuration option or support for restricting responsestake the same approach with regard tocontaining only a single RR. An AXoT client SHOULD pipeline AXFR requestsusing separate connections for differentzones on a singlepurposes. This specification for XoTconnection. An AXoT server SHOULD respondupdates the guidance in [RFC7766] tothose requests as soon asprovide theresponse is available i.e. potentially out of order. 5.6.3. Padding AXoT responses The goalsame separation ofpadding AXoT responses would be two fold: o to obfuscate the actual size of the transferredconnection purpose (regular queries and zoneto minimize information leakage about the entire contentstransfers) for all transports being used on top ofthe zone. o to obfuscate the incremental changes to the zone between SOA updates to minimize information leakage about zone update activity and growth. NoteTCP. Therefore, it is RECOMMENDED thatthe re-use of XoT connectionsfortransferseach protocol used on top ofmultiple different zones complicatesTCP in anyattempt to analyze the traffic sizegiven client/server interaction there SHOULD be no more than one connection for regular queries andtiming to extract information. We note here that any requirement to obfuscate the totalone for zonesize is likely to require a server to create 'empty' AXoT responses. That is, AXoT responses that contain no RR's apart fromtransfers. As anOPT RR containing the EDNS(0) option for padding. However, as with existing AXFR, the last AXoT response message sent MUST contain the same SOAillustration, it could be imagined thatwasinthe first messagefuture such an interaction could hypothetically include one or all of theAXoT response seriesfollowing: o one TCP connection for regular queries o one TCP connection for zone transfers o one TLS connection for regular queries o one TLS connection for zone transfers o one DoH connection for regular queries o one DoH connection for zone transfers We provide specific details inorder to signaltheconclusionlater sections ofthe zone transfer. [RFC5936] says: "Each AXFR response message SHOULD containreasons where more than one connection for asufficient number of RRs to reasonably amortize the per-message overhead, up to the largest number that will fit within a DNS message (taking thegiven transport might be requiredcontentfor zone transfers from a particular client. 6. XoT specification 6.1. TLS versions For improved security all implementations ofthe other sections into account,this specification MUST use only TLS 1.3 [RFC8446] or later. 6.2. Port selection The connection for XoT SHOULD be established using port 853, asdescribed below)." 'Empty' AXoT responses generatedspecified inorder[RFC7858], unless there is mutual agreement between the secondary and primary tomeetuse apadding requirement willport other than port 853 for XoT. There MAY beexceptions to the above statement. In orderagreement toguarantee supportuse different ports forfuture padding policies, we state hereAXoT and IXoT, or for different zones. 6.3. High level XoT descriptions It is useful to note that in XoT it is the secondaryimplementations MUST be resilient to receiving padded AXoT responses, including 'empty' AXoT responsesthatcontain only an OPT RR containinginitiates theEDNS(0) option for padding. Recommendation of specific policies for padding AXoT responses are out of scopeTLS connection to the primary forthis specification. Detailed considerationsa XFR request, so that in terms ofsuch policiesconnectivity the secondary is the TLS client and thetrade-offs involved are expected to beprimary thesubjectTLS server. The figure below provides an outline offuture work. 5.7. IXoTthe AXoT mechanism5.7.1. Coverage and relationship to RFC1995 [RFC1995] says nothing with respect to optimizing IXFRs over TCP or re-using already open TCP connections to perform IXFRs or other queries. Therefore, there arguably is an implicit assumption (probably unintentional) thatincluding NOTIFYs. Secondary Primary | NOTIFY | | <-------------------------------- | UPD | --------------------------------> | | NOTIFY Response | | | | | | SOA Request | | --------------------------------> | UDP (or part of | <-------------------------------- | aTCP connection is used for one and only oneTCP/TLS session) | SOA Response | | | | | | | | AXFR Request | --- | --------------------------------> | | | <-------------------------------- | | | AXFR Response 1 | | | (Zone data) | | | | | | <-------------------------------- | | TLS | AXFR Response 2 | | Session | (Zone data) | | | | | | <-------------------------------- | | | AXFR Response 3 | | | (Zone data) | --- | | Figure 3. AXoT Mechanism The figure below provides an outline of the IXoT mechanism including NOTIFYs. Secondary Primary | NOTIFY | | <-------------------------------- | UPD | --------------------------------> | | NOTIFY Response | | | | | | SOA Request | | --------------------------------> | UDP (or part of | <-------------------------------- | a TCP/TLS session) | SOA Response | | | | | | | | IXFRrequest. Indeed, several open source implementations currently take this approach. We provide new guidance here specific toRequest | --- | --------------------------------> | | | <-------------------------------- | | | IXFR Response | | | (Zone data) | | | | | TLS | | | session | IXFR Request | | | --------------------------------> | | | <-------------------------------- | | | IXFR Response | | | (Zone data) | --- Figure 1. IXoTthat alignsMechanism 6.4. XoT transfers For a zone transfer between two end points to be considered protected withthe guidance in [RFC5936] for AXFR, that in section Section 5.6 for AXoT,XoT all XFR requests andwith thatresponse forperformant TCP/TLS usage in [RFC7766] and [RFC7858]. Where any behavior is not explicitly described here, the behavior specified in [RFC1995]that zone MUST befollowed. Any behavior specified here takes precedence for IXoT implementationssent overthat in [RFC1995]. 5.7.2. IXoT connection and message handling InTLS connections where at amanner entirely analogous to thatminimum: o the client MUST authenticate the server by use of an authentication domain name using a Strict Privacy Profile as described inparagraph 2 of Section 5.6.2 IXoT clients and servers SHOULD use EDNS0 Keepalive [RFC7828] to establish[RFC8310] o theconnection timeouts to be used. An IXoTserver MUSTbe ablevalidate the client is authorized tohandle multiple IXoT requests onrequest or proxy asingle XoT connection (forzone transfer by using one or both of thesame and different zones). IXoT clients SHOULD re-usefollowing: * anexisting open XoT connection when making any new IXoT request to the same primary, and for issuing SOA queries, instead of opening a new connection.IP based ACL (which can be either per-message or per- connection) * Mutual TLS (mTLS) Thenumber of XoT connections betweenserver MAY also require asecondary and primary SHOULD be minimized. Valid reasons forvalid TSIG/SIG(0) signature, but this alone is notre-using existing connectionssufficient to authenticate the client or server. Authentication mechanisms are discussed in full in Section 8 and thesame as those describedrationale for the above requirement in Section 9. Transfer group policies are discussed in Section 10. 6.5. XoT connections The details in Section5.6.25 about e.g., persistent connections and XFR message handling are fully applicable to XoT connections as well. However any behavior specified here takes precedence for XoT. If noXoTTLS connections are currently open,IXoTXoT clients MAY send SOA queries overUDP, TCPUDP or TCP, or TLS.An IXoT client SHOULD pipeline IXFR requests for different zones on a single6.6. XoTconnection. An IXoT server SHOULD respond to those requests as soon as the responsevs ADoT As noted earlier, there isavailable i.e. potentially out of order. 5.7.3. Condensation of responses [RFC1995] says condensationcurrently no specification for encryption ofresponses is optional and MAY be done. Whilst it does add complexityconnections from recursive resolvers togenerating responsesauthoritative servers. Some authoritatives are experimenting with ADoT and opportunistic encryption has also been raised as a possibility; itcan significantly reduce the sizeis therefore highly likely that use ofresponses. However any such reduction might be offsetencryption byincreased message size due to padding.authoritative servers will evolve in the coming years. Thisspecification does not updateraises questions in theoptionality of condensation. 5.7.4. Fallback to AXFR Fallbackshort term,S.S. with regard toAXFR can happen,TLS connection and message handling forexample, if the serverauthoritative servers. In particular, there isnot ablelikely toprovide an IXFR for the requested SOA. Implementations differ in how long they store zone deltas and how many maybestored at any one time. After a failed IXFRaIXoT client SHOULD request the AXFR on the already open XoT connection. 5.7.5. Padding of IXoT responses The goalclass ofpadding IXoT responses would be to obfuscate the incremental changes to the zone between SOA updatesauthoritatives that wish tominimize information leakage about zone update activity and growth. Both the size and timing of the IXoT responses could reveal information. IXFR responses can varyuse XoT insize greatly fromtheorder of 100 bytes for one or two record updates, to tens of thousands of bytes for large dynamic DNSSEC signed zones. The frequencynear future with a small number ofIXFR responses can also depend greatly on if and how the zone is DNSSEC signed. In orderconfigured secondaries but that do wish toguaranteesupport DoT forfuture padding policies, we state hereregular queries from recursive in thatsecondary implementations MUST be resilientsame time frame. These servers have toreceiving padded IXoT responses. Recommendation of specific policies for padding IXoT responses are out of scope for this specification. Detailed considerations of such policiespotentially cope with probing andthe trade-offs involved are expected to be the subject of future work. 6. Multi-primary Configurations Also known as multi-master configurations this model can provide flexibilitydirect queries from recursives andredundancy particularly for IXFR. A secondary will receive one or more NOTIFY messagesfrom test servers, andcan send an SOAalso potential attacks that might wish toallmake use of TLS to overload theconfigured primaries. Itserver. [RFC5936] clearly states that non-AXFR session traffic canthen choose to senduse anXFR requestopen TCP connection, however, this requirement needs to be re- evaluated when considering applying theprimary with the highest SOA (or other criteria, e.g., RTT). When using persistent connections the secondary may have a XoT connection already opensame model toone or more primaries. Should a secondary preferentially request an XFR fromXoT. Proposing that aprimaryserver should also start responding towhichall queries received over TLS just because italreadyhasan openenabled XoTconnection or the one with the highest SOA (assuming it doesn't have a connection open to it already)? Two extremes can be envisaged here. The first one canwould beconsideredequivalent to defining a'preferred primary connection' model. Inform of authoritative DoT. This specification does not propose that, but it also does not prohibit servers from answering queries unrelated to XFR exchanges over TLS. Rather, thiscase the secondary continuesspecification simply outlines in later sections: o how XoT implementations should utilize EDE codes in response touse one persistent connectionqueries on TLS connections they are not willing to answer (see Section 6.7) o the operational and policy options that asingle primary until itXoT server operator hasreason not to. Reasonswith regard to managing TLS connections and messages (see Appendix A) 6.7. Response RCODES XoT clients and servers MUST implement EDE codes. If a XoT server receives non-XoT traffic it is not willing tomight include the primary repeatedly closing the connection, long RTTsanswer ontransfers ora TLS connection it SHOULD respond with theSOAextended DNS error code 21 - Not Supported [RFC8914]. XoT clients should not send any further queries of this type to theprimary being an unacceptable lag behind the SOA of an alternative primary. The other extreme can be consideredserver for a'parallel primary connection' model. Here a secondary could keep multiple persistent connections open to all available primaries and only request XFRs from the primary with the highest serial number. Since normally the numberreasonable period ofsecondaries and primaries in direct contact in a transfer group is reasonably low this might be feasible if latency istime (for example, one hour) i.e., long enough that themost significant concern. Recommendation of a particular scheme is out of scope of this document but implementations are encouraged to provideserver configurationoptions that allow operators to make choices aboutor policy might be updated. [OPEN QUESTION] Should thisbehavior. 7. Zone Transfer with DoT - Authentication 7.1. TSIG TSIG [RFC2845] provides a mechanism for twoinstead be Prohibited (by policy), ormore parties to use shared secret keys which can thenshould a new EDE be created for this case? Historically servers have used the REFUSED RCODE for many situations, and so clients often had no detailed information on which tocreatebase an error or fallback path when queries were refused. As amessage digest to protect individual DNS messages. This allows each party to authenticateresult the client behavior could vary significantly. XoT severs thata request or response (andrefuse queries must cater for thedata in it) camefact that client behavior might vary from continually retrying queries regardless of receiving REFUSED to every query, or at the otherparty, even if it was transmittedextreme clients may decide to stop using the server overan unsecured channelany transport. This might be because those clients are either non-XoT clients orvia a proxy. It provides party-to-party data authentication, butdo nothop-to-hop channel authentication or confidentiality. 7.2. SIG(0) SIG(0) [RFC2535] similarly also provides a mechanismimplement EDE codes. 6.8. AXoT specifics 6.8.1. Padding AXoT responses The goal of padding AXoT responses would be two fold: o todigitally sign a DNS message but uses public key authentication, whereobfuscate thepublic keys are stored in DNS as KEY RRs and a private key is stored atactual size of thesigner. It also provides party-to-party data authentication, but not hop-to-hop channel authentication or confidentiality. 7.3. TLS 7.3.1. Opportunistic Opportunistic TLS [RFC8310] provides a defense against passive surveillance, providing on-the-wire confidentiality. 7.3.2. Strict Strict TLS [RFC8310] requires that a client is configured with an authentication domain name (and/or SPKI pinset) that should be usedtransferred zone toauthenticateminimize information leakage about theTLS handshake withentire contents of theserver. This additionally provides a defense forzone. o to obfuscate theclient against active surveillance, providing client-to-server authentication and end-to-end channel confidentiality. 7.3.3. Mutual This is an extensionincremental changes toStrict TLS [RFC8310] which requires that a client is configured with an authentication domain name (and/or SPKI pinset)the zone between SOA updates to minimize information leakage about zone update activity anda client certificate. The client offersgrowth. Note that thecertificatere-use of XoT connections forauthentication bytransfers of multiple different zones complicates any attempt to analyze theservertraffic size and timing to extract information. It is noted here that, depending on theclient can authenticpadding policies eventually developed for XoT, theserverrequirement to obfuscate thesame way as in Strict TLS. This providestotal zone size might require adefense for both parties against active surveillance, providing bi-directional authentication and end-to-end channel confidentiality. 7.4. IP Based ACL on the Primary Most DNSserverimplementations offer an optiontoconfigurecreate 'empty' AXoT responses. That is, AXoT responses that contain no RR's apart from anIP based Access Control List (ACL), which is often used in combination with TSIG based ACLs to restrict access to zone transfers on primary servers. This is also possible with XoT but it must be noted that as with TCPOPT RR containing theimplementation of such an ACL cannot be enforced onEDNS(0) option for padding. For example, without this capability theprimary untilmaximum size that aXFR request is received on an established connection. If control were totiny zone could beany more fine-grained than this then a separate, dedicated port would needpadded tobe agreed between primary and secondary for XoT such that implementationswould theoretically beable to refuse connections on that portlimited if there had toall clients except those configured as secondaries. 7.5. ZONEMD Message Digest for DNS Zones (ZONEMD) [I-D.ietf-dnsop-dns-zone-digest] digest isbe amechanismminimum of 1 RR per packet. However, as with existing AXFR, the last AXoT response message sent MUST contain the same SOA thatcan be used to verifywas in thecontentfirst message ofa standalone zone. It is designedthe AXoT response series in order tobe independentsignal the conclusion of thetransmission channel or mechanism, allowingzone transfer. [RFC5936] says: "Each AXFR response message SHOULD contain ageneral consumersufficient number ofa zoneRRs todo origin authentication ofreasonably amortize theentire zone contents. Noteper-message overhead, up to the largest number that will fit within a DNS message (taking thecurrent versionrequired content of[I-D.ietf-dnsop-dns-zone-digest] states: "As specified at this time, ZONEMD is not designed for use in large, dynamic zones due tothetime and resources required for digest calculation. The ZONEMD recordother sections into account, as describedin this document includes fields reserved for future workbelow)." 'Empty' AXoT responses generated in order to meet a padding requirement will be exceptions tosupport large, dynamic zones." It is complementarythe abovemechanismsstatement. For flexibility, future proofing andcan be usedinconjunction with XoT but is not considered further. 7.6. Comparison of Authentication Methods The Table below comparesorder to guarantee support for future padding policies, we state here that secondary implementations MUST be resilient to receiving padded AXoT responses, including 'empty' AXoT responses that contain only an OPT RR containing thepropertiesEDNS(0) option for padding. Recommendation ofa selectionspecific policies for padding AXoT responses are out ofthe above methods in termsscope for this specification. Detailed considerations ofwhat protection they providesuch policies and the trade-offs involved are expected to be thesecondarysubject of future work. 6.9. IXoT specifics 6.9.1. Condensation of responses [RFC1995] says condensation of responses is optional andprimary servers during XoT in terms of: o 'Data Auth': Authentication thatMAY be done. Whilst it does add complexity to generating responses it can significantly reduce theDNS message data is signedsize of responses. However any such reduction might be offset bythe party with whom credentials were shared (the signing party may or mayincreased message size due to padding. This specification does notbe party operatingupdate thefar endoptionality ofa TCP/TLS connection in a 'proxy' scenario). For the primary the TSIG on the XFR request confirms thatcondensation for XoT responses. 6.9.2. Fallback to AXFR Fallback to AXFR can happen, for example, if therequesting partyserver isauthorizednot able torequest zone data,provide an IXFR for thesecondary it authenticates the zone data that is received. o 'Channel Conf': Confidentialityrequested SOA. Implementations differ in how long they store zone deltas and how many may be stored at any one time. Just as with IXFR-over-TCP, after a failed IXFR a IXoT client SHOULD request the AXFR on the already open XoT connection. 6.9.3. Padding of IXoT responses The goal of padding IXoT responses would be to obfuscate thecommunication channelincremental changes to the zone between SOA updates to minimize information leakage about zone update activity and growth. Both theclientsize andserver (i.e.timing of the IXoT responses could reveal information. IXFR responses can vary in size greatly from the order of 100 bytes for one or twoend pointsrecord updates, to tens ofa TCP/ TLS connection). o Channel Auth: Authenticationthousands of bytes for large dynamic DNSSEC signed zones. The frequency of IXFR responses can also depend greatly on if and how theidentityzone is DNSSEC signed. In order to guarantee support for future padding policies, we state here that secondary implementations MUST be resilient to receiving padded IXoT responses. Recommendation ofpartyspecific policies for padding IXoT responses are out of scope for this specification. Detailed considerations of such policies and the trade-offs involved are expected towhom a TCP/TLS connection is made (this might notbea direct connection betweentheprimarysubject of future work. 6.10. Name compression andsecondary in a proxy scenario).maximum payload sizes It is noted here thatzone transfer scenariosname compression [RFC1035] canvary from a simple single primary/secondary relationship where both servers are underbe used in XFR responses to reduce thecontrolsize ofa single operator to a complex hierarchical structure which includes proxies and multiple operators. Each deployment scenario will require specific analysis to determine which authentication methods are best suited tothedeployment model in question. Table 1: Propertiespayload, however the maximum value ofAuthentication methods for XoT [7] Based on this analysis itthe offset that can beseen that: o A combination of Opportunistic TLS and TSIG provides both data authentication and channel confidentiality for both parties. Howeverused in the name compression pointer structure is 16384. For some DNS implementations thisdoes not stop a MitM attack onlimits thechannel which could besize of an individual XFR response used in practice togather zone data. o Using just mutual TLSsomething around the order of 16kB. In principle, larger payload sizes can beconsidered a standalone solution ifsupported for some responses with more sophisticated approaches (e.g. by pre-calculating thesecondary has reasonmaximum offset required). Implementations may wish toplace equivalent trustoffer options to disable name compression for XoT responses to enable larger payloads. This might be particularly helpful when padding is used since minimizing the payload size is not necessarily a useful optimization inchannel authentication as data authentication, e.g.,this case and disabling name compression will reduce thesame operator runs bothresources required to construct theprimarypayload. 7. Multi-primary Configurations Also known as multi-master configurations this model can provide flexibility andsecondary. o Using TSIG, Strict TLSredundancy particularly for IXFR. A secondary will receive one or more NOTIFY messages and can send anACL on the primary providesSOA to all3 properties for both parties with probably the lowest operational overhead. 8. Policies for Both AXFR and IXFR We call the entire groupofservers involved inthe configured primaries. It can then choose to send an XFR(allrequest to theprimaries and allprimary with thesecondaries)highest SOA (or other criteria, e.g., RTT). When using persistent connections the'transfer group'. Within any transfer group both AXFRs and IXFRs forsecondary may have azone SHOULD all use the same policy, e.g., if AXFRs use AXoT all IXFRs SHOULD use IXoT. In orderXoT connection already open toassure the confidentiality of the zone information, the entire transfer group MUST haveone or more primaries. Should aconsistent policy of requiring confidentiality. If any do not, this issecondary preferentially request an XFR from aweak link for attackersprimary toexploit. Awhich it already has an open XoTpolicy should specify o If TSIG or SIG(0) is required o What kind of TLS is required (Opportunistic, Strictconnection ormTLS) o If IP based ACLs should alsothe one with the highest SOA (assuming it doesn't have a connection open to it already)? Two extremes can beused. Sinceenvisaged here. The first one can be considered a 'preferred primary connection' model. In thismay require configuration ofcase the secondary continues to use one persistent connection to anumber of servers who may be undersingle primary until it has reason not to. Reasons not to might include thecontrol of different operatorsprimary repeatedly closing thedesired consistency could be hard to enforce and audit in practice. Certain aspectsconnection, long RTTs on transfers or the SOA of thePoliciesprimary being an unacceptable lag behind the SOA of an alternative primary. The other extreme can berelatively easily tested independently, e.g., by requesting zone transfers without TSIG, from unauthorized IP addresses or over cleartext DNS. Other aspects such as ifconsidered a 'parallel primary connection' model. Here a secondarywill accept data withoutcould keep multiple persistent connections open to all available primaries and only request XFRs from the primary with the highest serial number. Since normally the number of secondaries and primaries in direct contact in aTSIG digest ortransfer group is reasonably low this might be feasible ifsecondaries are using Strict as opposed to Opportunistic TLS are more challenging. The mechanicslatency is the most significant concern. Recommendation ofco-ordinating or enforcing such policies area particular scheme is out ofthescope of this document butmay be the subject of future operational guidance. 9. Implementation Considerations TBD 10. Implementation Status The 1.9.2 version of Unbound [8] includes an optionimplementations are encouraged toperform AXoT (instead of AXFR-over-TCP). This requires the client (secondary)provide configuration options that allow operators to make choices about this behavior. 8. Authentication mechanisms To provide context toauthenticatetheserver (primary) usingrequirements in section Section 6.4, this section provides aconfigured authentication domain name. It is noted that usebrief summary ofa TLS proxy in frontsome of theprimary server is a simple deployment solutionexisting authentication and validation mechanisms (both transport independent and TLS specific) thatcan enable server side XoT. 11. IANA Considerations 11.1. Registration of XoT Identification String This document createsare available when performing zone transfers. Section 9 then discusses in more details specifically how anew registration for the identificationcombination ofXoT inTLS authentication, TSIG and IP based ACLs interact for XoT. We classify the"Application Layer Protocol Negotiation (ALPN) Protocol IDs" registry [RFC7301]. The "xot" string identifies XoT: Protocol: XoT Identification Sequence: 0x64 0x6F 0x72 ("xot") Specification: This document 12. Security Considerations This document specifies a security measure against a DNS risk:mechanisms based on theriskfollowing properties: o 'Data Origin Authentication' (DO): Authentication thatan attacker collects entire DNS zones through eavesdropping on clear textthe DNSzone transfers. This does not mitigate: omessage originated from therisk that some level of zone activity might be inferred by observing zone transfer sizes and timing on encrypted connections (even with padding applied), in combinationparty withobtaining SOA records by directly querying authoritative servers. o the risk that hidden primaries might be inferred or identified via observationwhom credentials were shared, and ofencrypted connections. otherisk of zone contents being obtained via zone enumeration techniques. Security concernsdata integrity ofDoT are outlined in [RFC7858] and [RFC8310]. 13. Acknowledgements The authors thank Benno Overeinder, Shumon Huque and Tim Wicinski for review and discussions. 14. Contributors Significant contributions tothedocument were made by: Han Zhang Salesforce San Francisco, CA United States Email: hzhang@salesforce.com 15. Changelog draft-ietf-dprive-xfr-over-tls-02 o Significantly update descriptions for both AXoT and IXoT formessageandcontents (the originating party may or may not be party operating the far end of a TCP/TLS connectionhandling taking into account previous specificationsinmore detaila 'proxy' scenario). oAdd use'Channel Confidentiality' (CC): Confidentiality ofAPLNthe communication channel between the client andlimitations on traffic on XoT connections. o Add new discussionsserver (i.e. the two end points ofpadding for both AXoT and IXoT o Add text on SIG(0) o Update security considerationsa TCP/TLS connection) from passive surveillance. oMove multi-primary considerations to earlier as they are related'Channel Authentication' (CA): Authentication of the identity of party to whom a TCP/TLS connectionhandling draft-ietf-dprive-xfr-over-tls-01 o Minor editorial updates o Add requirement for TLS 1.3. or later draft-ietf-dprive-xfr-over-tls-00 o Rename after adoptionis made (this might not be a direct connection between the primary andreference update. o Add placeholder for SIG(0) discussion o Update section on ZONEMD draft-hzpa-dprive-xfr-over-tls-02 o Substantial re-work of the document. draft-hzpa-dprive-xfr-over-tls-01 o Editorial changes, updates to references. draft-hzpa-dprive-xfr-over-tls-00 o Initial commit 16. References 16.1. Normative References [I-D.vcelak-nsec5] Vcelak, J., Goldberg, S., Papadopoulos, D., Huque, S., and D. Lawrence, "NSEC5, DNSSEC Authenticated Denial of Existence", draft-vcelak-nsec5-08 (work in progress), December 2018. [RFC1995] Ohta, M., "Incremental Zone Transfersecondary inDNS", RFC 1995, DOI 10.17487/RFC1995, August 1996, <https://www.rfc- editor.org/info/rfc1995>. [RFC2119] Bradner, S., "Key wordsa proxy scenario). 8.1. TSIG TSIG [RFC2845] provides a mechanism for two or more parties to use shared secret keys which can then be used to create a message digest to protect individual DNS messages. This allows each party to authenticate that a request or response (and the data inRFCsit) came from the other party, even if it was transmitted over an unsecured channel or via a proxy. Properties: Data origin authentication 8.2. SIG(0) SIG(0) [RFC2535] similarly also provides a mechanism toIndicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc- editor.org/info/rfc2119>. [RFC2845] Vixie, P., Gudmundsson, O., Eastlake 3rd, D.,digitally sign a DNS message but uses public key authentication, where the public keys are stored in DNS as KEY RRs andB. Wellington, "Secret Key Transaction Authenticationa private key is stored at the signer. Properties: Data origin authentication 8.3. TLS 8.3.1. Opportunistic TLS Opportunistic TLS forDNS (TSIG)", RFC 2845, DOI 10.17487/RFC2845, May 2000, <https://www.rfc-editor.org/info/rfc2845>. [RFC5155] Laurie, B., Sisson, G., Arends, R.,DoT is defined in [RFC8310] andD. Blacka, "DNS Security (DNSSEC) Hashed Authenticated Denial of Existence", RFC 5155, DOI 10.17487/RFC5155, March 2008, <https://www.rfc-editor.org/info/rfc5155>. [RFC5936] Lewis, E.can provide a defense against passive surveillance, providing on-the-wire confidentiality. Essentially o clients that know authentication information for a server SHOULD try to authenticate the server o however they MAY fallback to using TLS without authentication andA. Hoenes, Ed., "DNS Zone Transfer Protocol (AXFR)", RFC 5936, DOI 10.17487/RFC5936, June 2010, <https://www.rfc-editor.org/info/rfc5936>. [RFC6973] Cooper, A., Tschofenig, H., Aboba, B., Peterson, J., Morris, J., Hansen, M.,o they MAY fallback to using cleartext is TLS is not available. As such it does not offer a defense against active attacks (e.g. a MitM attack on the connection from client to server), andR. Smith, "Privacy Considerationsis not considered as useful forInternet Protocols", RFC 6973, DOI 10.17487/RFC6973, July 2013, <https://www.rfc- editor.org/info/rfc6973>. [RFC7626] Bortzmeyer, S., "DNS Privacy Considerations", RFC 7626, DOI 10.17487/RFC7626, August 2015, <https://www.rfc- editor.org/info/rfc7626>. [RFC7858] Hu, Z., Zhu, L., Heidemann, J., Mankin, A., Wessels, D., and P. Hoffman, "SpecificationXoT. Properties: None guaranteed. 8.3.2. Strict TLS Strict TLS forDNS over Transport Layer Security (TLS)", RFC 7858, DOI 10.17487/RFC7858, May 2016, <https://www.rfc-editor.org/info/rfc7858>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>.DoT [RFC8310]Dickinson, S., Gillmor, D., and T. Reddy, "Usage Profiles for DNS overrequires that a client is configured with an authentication domain name (and/or SPKI pinset) that MUST be used to authenticate the TLS handshake with the server. If authentication of the server fails, the client will not proceed with the connection. This provides a defense for the client against active surveillance, providing client-to-server authentication andDNS over DTLS", RFC 8310, DOI 10.17487/RFC8310, March 2018, <https://www.rfc- editor.org/info/rfc8310>. [RFC8484] Hoffman, P. and P. McManus, "DNS Queries over HTTPS (DoH)", RFC 8484, DOI 10.17487/RFC8484, October 2018, <https://www.rfc-editor.org/info/rfc8484>. [RFC8499] Hoffman, P., Sullivan, A.,end-to-end channel confidentiality. Properties: Channel confidentiality andK. Fujiwara, "DNS Terminology", BCP 219, RFC 8499, DOI 10.17487/RFC8499, January 2019, <https://www.rfc-editor.org/info/rfc8499>. 16.2. Informative References [I-D.ietf-dnsop-dns-zone-digest] Wessels, D., Barber, P., Weinberg, M., Kumari, W.,authentication (of the server). 8.3.3. Mutual TLS This is an extension to Strict TLS [RFC8310] which requires that a client is configured with an authentication domain name (and/or SPKI pinset) andW. Hardaker, "Message Digesta client certificate. The client offers the certificate forDNS Zones", draft-ietf- dnsop-dns-zone-digest-08 (work in progress), June 2020. [I-D.ietf-dnsop-extended-error] Kumari, W., Hunt, E., Arends, R., Hardaker, W., and D. Lawrence, "Extended DNS Errors", draft-ietf-dnsop- extended-error-16 (work in progress), May 2020. [I-D.ietf-dprive-dnsoquic] Huitema, C., Mankin, A.,authentication by the server andS. Dickinson, "Specification of DNS over Dedicated QUIC Connections", draft-ietf- dprive-dnsoquic-00 (workthe client can authentic the server the same way as inprogress), April 2020. [I-D.ietf-dprive-phase2-requirements] Livingood, J., Mayrhofer, A., and B. Overeinder, "DNS Privacy RequirementsStrict TLS. This provides a defense forExchanges between Recursive Resolversboth parties against active surveillance, providing bi-directional authentication andAuthoritative Servers", draft-ietf-dprive- phase2-requirements-01 (work in progress), June 2020. [I-D.vandijk-dprive-ds-dot-signal-and-pin] Dijk, P., Geuze, R.,end-to-end channel confidentiality. Properties: Channel confidentiality andE. Bretelle, "Signalling Authoritative DoT supportmutual authentication. 8.4. IP Based ACL on the Primary Most DNS server implementations offer an option to configure an IP based Access Control List (ACL), which is often used inDS records,combination withkey pinning", draft-vandijk-dprive-ds-dot-signal-and-pin-00 (work in progress), May 2020. [RFC1034] Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, DOI 10.17487/RFC1034, November 1987, <https://www.rfc-editor.org/info/rfc1034>. [RFC1035] Mockapetris, P., "Domain names -TSIG based ACLs to restrict access to zone transfers on primary servers on a per query basis. This is also possible with XoT but it must be noted that, as with TCP, the implementation of such an ACL cannot be enforced on the primary until an XFR request is received on an established connection. As discussed in Appendix A an IP based per connection ACL could also be implemented where only TLS connections from recognized secondaries are accepted. Properties: Channel authentication of the client. 8.5. ZONEMD For completeness, we also describe Message Digest for DNS Zones (ZONEMD) [I-D.ietf-dnsop-dns-zone-digest] here. The message digest is a mechanism that can be used to verify the content of a standalone zone. It is designed to be independent of the transmission channel or mechanism, allowing a general consumer of a zone to do origin authentication of the entire zone contents. Note that the current version of [I-D.ietf-dnsop-dns-zone-digest] states: "As specified herein, ZONEMD is impractical for large, dynamic zones due to the time andspecification", STD 13, RFC 1035, DOI 10.17487/RFC1035, November 1987, <https://www.rfc-editor.org/info/rfc1035>. [RFC1982] Elz, R.resources required for digest calculation. However, The ZONEMD record is extensible so that new digest schemes may be added in the future to support large, dynamic zones." It is complementary but orthogonal the above mechanisms; and can be used in conjunction with XoT but is not considered further here. 9. XoT authentication It is noted that zone transfer scenarios can vary from a simple single primary/secondary relationship where both servers are under the control of a single operator to a complex hierarchical structure which includes proxies and multiple operators. Each deployment scenario will require specific analysis to determine which combination of authentication methods are best suited to the deployment model in question. The XoT authentication requirement specified in Section 6.4 addresses the issue of ensuring that the transfers is encrypted between the two endpoints directly involved in the current transfers. The following table summarized the properties of a selection of the mechanisms discussed in Section 8. The two letter acronyms for the properties are used below and (S) indicates the secondary and (P) indicates the primary. +----------------+-------+-------+-------+-------+-------+-------+ | Method | DO(S) | CC(S) | CA(S) | DO(P) | CC(P) | CA(P) | +----------------+-------+-------+-------+-------+-------+-------+ | Strict TLS | | Y | Y | | Y | | | Mutual TLS | | Y | Y | | Y | Y | | ACL on primary | | | | | | Y | | TSIG | Y | | | Y | | | +----------------+-------+-------+-------+-------+-------+-------+ Table 1: Properties of Authentication methods for XoT Based on this analysis it can be seen that: o Using just mutual TLS can be considered a standalone solution since both end points are authenticated o Using Strict TLS and an IP based ACL on the primary also provides authentication of both end points o Additional use of TSIG (or equally SIG(0)) can also provide data origin authentication which might be desirable for deployments that include a proxy between the secondary and primary, but is not part of the XoT requirement because it does nothing to guarantee channel confidentiality or authentication. 10. Policies for Both AXoT and IXoT Whilst the protection of the zone contents in a transfer between two end points can be provided by the XoT protocol, the protection of all the transfers of a given zone requires operational administration and policy management. We call the entire group of servers involved in XFR for a particular set of zones (all the primaries and all the secondaries) the 'transfer group'. Within any transfer group both AXFRs and IXFRs for a zone MUST all use the same policy, e.g., if AXFRs use AXoT all IXFRs MUST use IXoT. In order to assure the confidentiality of the zone information, the entire transfer group MUST have a consistent policy of requiring confidentiality. If any do not, this is a weak link for attackers to exploit. An individual zone transfer is not considered protected by XoT unless both the client and server are configured to use only XoT and the overall zone transfer is not considered protected until all members of the transfer group are configured to use only XoT with all other transfers servers (see Section 11). A XoT policy should specify o What kind of TLS is required (Strict or Mutual TLS) o or if an IP based ACL is required. o (optionally) if TSIG/SIG(0) is required Since this may require configuration of a number of servers who may be under the control of different operators the desired consistency could be hard to enforce and audit in practice. Certain aspects of the Policies can be relatively easily tested independently, e.g., by requesting zone transfers without TSIG, from unauthorized IP addresses or over cleartext DNS. Other aspects such as if a secondary will accept data without a TSIG digest or if secondaries are using Strict as opposed to Opportunistic TLS are more challenging. The mechanics of co-ordinating or enforcing such policies are out of the scope of this document but may be the subject of future operational guidance. 11. Implementation Considerations Server implementations may want to also offer options that allow ACLs on a zone to specify that a specific client can use either XoT or TCP. This would allow for flexibility while clients are migrating to XoT. Client implementations may similarly want to offer options to cater for the multi-primary case where the primaries are migrating to XoT. Such configuration options MUST only be used in a 'migration mode' though and therefore should be used with care. 12. Implementation Status The 1.9.2 version of Unbound [3] includes an option to perform AXoT (instead of AXFR-over-TCP). This requires the client (secondary) to authenticate the server (primary) using a configured authentication domain name. It is noted that use of a TLS proxy in front of the primary server is a simple deployment solution that can enable server side XoT. 13. IANA Considerations 14. Security Considerations This document specifies a security measure against a DNS risk: the risk that an attacker collects entire DNS zones through eavesdropping on clear text DNS zone transfers. This does not mitigate: o the risk that some level of zone activity might be inferred by observing zone transfer sizes and timing on encrypted connections (even with padding applied), in combination with obtaining SOA records by directly querying authoritative servers. o the risk that hidden primaries might be inferred or identified via observation of encrypted connections. o the risk of zone contents being obtained via zone enumeration techniques. Security concerns of DoT are outlined in [RFC7858] and [RFC8310]. 15. Acknowledgements The authors thank Tony Finch, Peter van Dijk, Benno Overeinder, Shumon Huque and Tim Wicinski for review and discussions. 16. Contributors Significant contributions to the document were made by: Han Zhang Salesforce San Francisco, CA United States Email: hzhang@salesforce.com 17. Changelog draft-ietf-dprive-xfr-over-tls-03 o Remove propose to use ALPN o Clarify updates to both RFC1995 and RFC5936 by adding specific sections on this o Add a section on the threat model o Convert all SVG diagrams to ASCII art o Add discussions on concurrency limits o Add discussions on Extended DNS error codes o Re-work authentication requirements and discussion o Add appendix discussion TLS connection management draft-ietf-dprive-xfr-over-tls-02 o Significantly update descriptions for both AXoT and IXoT for message and connection handling taking into account previous specifications in more detail o Add use of APLN and limitations on traffic on XoT connections. o Add new discussions of padding for both AXoT and IXoT o Add text on SIG(0) o Update security considerations o Move multi-primary considerations to earlier as they are related to connection handling draft-ietf-dprive-xfr-over-tls-01 o Minor editorial updates o Add requirement for TLS 1.3. or later draft-ietf-dprive-xfr-over-tls-00 o Rename after adoption and reference update. o Add placeholder for SIG(0) discussion o Update section on ZONEMD draft-hzpa-dprive-xfr-over-tls-02 o Substantial re-work of the document. draft-hzpa-dprive-xfr-over-tls-01 o Editorial changes, updates to references. draft-hzpa-dprive-xfr-over-tls-00 o Initial commit 18. References 18.1. Normative References [I-D.vcelak-nsec5] Vcelak, J., Goldberg, S., Papadopoulos, D., Huque, S., and D. Lawrence, "NSEC5, DNSSEC Authenticated Denial of Existence", draft-vcelak-nsec5-08 (work in progress), December 2018. [RFC1034] Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, DOI 10.17487/RFC1034, November 1987, <https://www.rfc-editor.org/info/rfc1034>. [RFC1035] Mockapetris, P., "Domain names - implementation and specification", STD 13, RFC 1035, DOI 10.17487/RFC1035, November 1987, <https://www.rfc-editor.org/info/rfc1035>. [RFC1995] Ohta, M., "Incremental Zone Transfer in DNS", RFC 1995, DOI 10.17487/RFC1995, August 1996, <https://www.rfc- editor.org/info/rfc1995>. [RFC1996] Vixie, P., "A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY)", RFC 1996, DOI 10.17487/RFC1996, August 1996, <https://www.rfc-editor.org/info/rfc1996>. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc- editor.org/info/rfc2119>. [RFC2845] Vixie, P., Gudmundsson, O., Eastlake 3rd, D., and B. Wellington, "Secret Key Transaction Authentication for DNS (TSIG)", RFC 2845, DOI 10.17487/RFC2845, May 2000, <https://www.rfc-editor.org/info/rfc2845>. [RFC5936] Lewis, E. and A. Hoenes, Ed., "DNS Zone Transfer Protocol (AXFR)", RFC 5936, DOI 10.17487/RFC5936, June 2010, <https://www.rfc-editor.org/info/rfc5936>. [RFC6973] Cooper, A., Tschofenig, H., Aboba, B., Peterson, J., Morris, J., Hansen, M., and R. Smith, "Privacy Considerations for Internet Protocols", RFC 6973, DOI 10.17487/RFC6973, July 2013, <https://www.rfc- editor.org/info/rfc6973>. [RFC7626] Bortzmeyer, S., "DNS Privacy Considerations", RFC 7626, DOI 10.17487/RFC7626, August 2015, <https://www.rfc- editor.org/info/rfc7626>. [RFC7766] Dickinson, J., Dickinson, S., Bellis, R., Mankin, A., and D. Wessels, "DNS Transport over TCP - Implementation Requirements", RFC 7766, DOI 10.17487/RFC7766, March 2016, <https://www.rfc-editor.org/info/rfc7766>. [RFC7828] Wouters, P., Abley, J., Dickinson, S., and R. Bellis, "The edns-tcp-keepalive EDNS0 Option", RFC 7828, DOI 10.17487/RFC7828, April 2016, <https://www.rfc- editor.org/info/rfc7828>. [RFC7858] Hu, Z., Zhu, L., Heidemann, J., Mankin, A., Wessels, D., and P. Hoffman, "Specification for DNS over Transport Layer Security (TLS)", RFC 7858, DOI 10.17487/RFC7858, May 2016, <https://www.rfc-editor.org/info/rfc7858>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>. [RFC8310] Dickinson, S., Gillmor, D., and T. Reddy, "Usage Profiles for DNS over TLS and DNS over DTLS", RFC 8310, DOI 10.17487/RFC8310, March 2018, <https://www.rfc- editor.org/info/rfc8310>. [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, <https://www.rfc-editor.org/info/rfc8446>. [RFC8499] Hoffman, P., Sullivan, A., and K. Fujiwara, "DNS Terminology", BCP 219, RFC 8499, DOI 10.17487/RFC8499, January 2019, <https://www.rfc-editor.org/info/rfc8499>. [RFC8914] Kumari, W., Hunt, E., Arends, R., Hardaker, W., and D. Lawrence, "Extended DNS Errors", RFC 8914, DOI 10.17487/RFC8914, October 2020, <https://www.rfc- editor.org/info/rfc8914>. 18.2. Informative References [I-D.ietf-dnsop-dns-zone-digest] Wessels, D., Barber, P., Weinberg, M., Kumari, W., and W. Hardaker, "Message Digest for DNS Zones", draft-ietf- dnsop-dns-zone-digest-14 (work in progress), October 2020. [I-D.ietf-dprive-dnsoquic] Huitema, C., Mankin, A., and S. Dickinson, "Specification of DNS over Dedicated QUIC Connections", draft-ietf- dprive-dnsoquic-01 (work in progress), October 2020. [I-D.ietf-dprive-phase2-requirements] Livingood, J., Mayrhofer, A., and B. Overeinder, "DNS Privacy Requirements for Exchanges between Recursive Resolvers and Authoritative Servers", draft-ietf-dprive- phase2-requirements-01 (work in progress), June 2020. [I-D.ietf-tls-esni] Rescorla, E., Oku, K., Sullivan, N., and C. Wood, "TLS Encrypted Client Hello", draft-ietf-tls-esni-08 (work in progress), October 2020. [I-D.vandijk-dprive-ds-dot-signal-and-pin] Dijk, P., Geuze, R., and E. Bretelle, "Signalling Authoritative DoT support in DS records, with key pinning", draft-vandijk-dprive-ds-dot-signal-and-pin-01 (work in progress), July 2020. [nist-guide] Chandramouli, R. and S. Rose, "Secure Domain Name System (DNS) Deployment Guide", 2013, <https://nvlpubs.nist.gov/nistpubs/SpecialPublications/ NIST.SP.800-81-2.pdf>. [RFC1982] Elz, R. and R. Bush, "Serial Number Arithmetic", RFC 1982, DOI 10.17487/RFC1982, August 1996, <https://www.rfc- editor.org/info/rfc1982>. [RFC2535] Eastlake 3rd, D., "Domain Name System Security Extensions", RFC 2535, DOI 10.17487/RFC2535, March 1999, <https://www.rfc-editor.org/info/rfc2535>. [RFC5155] Laurie, B., Sisson, G., Arends, R., and D. Blacka, "DNS Security (DNSSEC) Hashed Authenticated Denial of Existence", RFC 5155, DOI 10.17487/RFC5155, March 2008, <https://www.rfc-editor.org/info/rfc5155>. [RFC6891] Damas, J., Graff, M., and P. Vixie, "Extension Mechanisms for DNS (EDNS(0))", STD 75, RFC 6891, DOI 10.17487/RFC6891, April 2013, <https://www.rfc- editor.org/info/rfc6891>. [RFC8484] Hoffman, P. and P. McManus, "DNS Queries over HTTPS (DoH)", RFC 8484, DOI 10.17487/RFC8484, October 2018, <https://www.rfc-editor.org/info/rfc8484>. 18.3. URIs [1] https://www.isc.org/bind/ [2] https://www.nlnetlabs.nl/projects/nsd/about/ [3] https://github.com/NLnetLabs/unbound/blob/release-1.9.2/doc/ Changelog Appendix A. XoT server connection handling For completeness, it is noted that an earlier version of the specification suggested using a XoT specific ALPN to negotiate TLS connections that supported only a limited set of queries (SOA, XRFs) however this did not gain support. Reasons given included additional code complexity and proxies having no natural way to forward the ALPN signal to DNS nameservers over TCP connections. A.1. Only listen on TLS on a specific IP address Obviously a nameserver which hosts a zone and services queries for the zone on an IP address published in an NS record may wish to use a separate IP address for listening on TLS for XoT, only publishing that address to its secondaries. Pros: Probing of the public IP address will show no support for TLS. ACLs will prevent zone transfer on all transports on a per query basis. Cons: Attackers passively observing traffic will still be able to observe TLS connections to the separate address. A.2. Client specific TLS acceptance Primaries that include IP based ACLs and/or mutual TLS in their authentication models have the option of only accepting TLS connections from authorized clients. This could be implemented using a proxy or directly in DNS implementation. Pros: Connection management happens at setup time. The maximum number of TLS connections a server will have to support can be easily assessed. Once the connection is accepted the server might well be willing to answer any query on that connection since it is coming from a configured secondary and a specific response policy on the connection may not be needed (see below). Cons: Currently, none of the major open source DNS authoritative implementations support such an option. A.3. SNI based TLS acceptance Primaries could also choose to only accept TLS connections based on an SNI that was published only to their secondaries. Pros: Reduces the number of accepted connections. Cons: As above. For SNIs sent in the clear, this would still allow attackers passively observing traffic to potentially abuse this mechanism. The use of Encrypted Client Hello [I-D.ietf-tls-esni] may be of use here. A.4. TLS specific response policies Some primaries might rely on TSIG/SIG(0) combined with per-query IP based ACLs to authenticate secondaries. In this case the primary must accept all incoming TLS connections and then apply a TLS specific response policy on a per query basis. As an aside, whilst [RFC7766] makes a general purpose distinction to clients in the usage of connections (between regular queries and zone transfers) this is not strict and nothing in the DNS protocol prevents using the same connection for both types of traffic. Hence a server cannot know the intention of any client that connects to it, it can only inspect the messages it receives on such a connection and make per query decisions about whether or not to answer those queries. Example policies a XoT server might implement are: o strict: REFUSE all queries on TLS connections except SOA andR. Bush, "Serial Number Arithmetic", RFC 1982, DOI 10.17487/RFC1982, August 1996, <https://www.rfc- editor.org/info/rfc1982>. [RFC1996] Vixie, P., "A Mechanismauthorized XFR requests o moderate: REFUSE all queries on TLS connections until one is received that is signed by a recognized TSIG/SIG(0) key, then answer all queries on the connection after that o complex: apply a heuristic to determine which queries on a TLS connections to REFUSE o relaxed: answer all non-XoT queries on all TLS connections with the same policy applied to TCP queries Pros: Allows forPrompt Notificationflexible behavior by the server that could be changed over time. Cons: The server must handle the burden ofZone Changes (DNS NOTIFY)", RFC 1996, DOI 10.17487/RFC1996, August 1996, <https://www.rfc-editor.org/info/rfc1996>. [RFC2535] Eastlake 3rd, D., "Domain Name System Security Extensions", RFC 2535, DOI 10.17487/RFC2535, March 1999, <https://www.rfc-editor.org/info/rfc2535>. [RFC6891] Damas, J., Graff, M., and P. Vixie, "Extension Mechanisms foraccepting all TLS connections just to perform XFRs with a small number of secondaries. Client behavior to REFUSED response is not clearly defined (see below). Currently, none of the major open source DNS(EDNS(0))", STD 75, RFC 6891, DOI 10.17487/RFC6891, April 2013, <https://www.rfc- editor.org/info/rfc6891>. [RFC7766] Dickinson, J., Dickinson, S., Bellis, R., Mankin, A.,authoritative implementations offer an option for different response policies in different transports (but could potentially be implemented using a proxy). A.4.1. SNI based response policies In a similar fashion, XoT servers might use the presence of an SNI in the client hello to determine which response policy to initially apply to the TLS connections. Pros: This has to potential to allow a clean distinction between a XoT service andD. Wessels, "DNS Transport over TCP - Implementation Requirements", RFC 7766, DOI 10.17487/RFC7766, March 2016, <https://www.rfc-editor.org/info/rfc7766>. 16.3. URIs [1] https://github.com/hanzhang0116/hzpa-dprive-xfr-over-tls/blob/ master/02-draft-dprive-svg/AXFR_mechanism.svg [2] https://github.com/hanzhang0116/hzpa-dprive-xfr-over-tls/blob/ master/02-draft-dprive-svg/IXFR_mechanism.svg [3] https://www.isc.org/bind/ [4] https://www.nlnetlabs.nl/projects/nsd/about/ [5] https://github.com/hanzhang0116/hzpa-dprive-xfr-over-tls/blob/ master/02-draft-dprive-svg/AXoT_mechanism.svg [6] https://github.com/hanzhang0116/hzpa-dprive-xfr-over-tls/blob/ master/02-draft-dprive-svg/IXoT_mechanism.svg [7] https://github.com/hanzhang0116/hzpa-dprive-xfr-over-tls/ blob/02_updates/02-draft-svg/ Properties_of_Authentication_methods_for_XoT.svg [8] https://github.com/NLnetLabs/unbound/blob/release-1.9.2/doc/ Changelogany future DoT based service for answering recursive queries. Cons: As above. Authors' Addresses Willem Toorop NLnet Labs Science Park 400 Amsterdam 1098 XH The Netherlands Email: willem@nlnetlabs.nl Sara Dickinson Sinodun IT Magdalen Centre Oxford Science Park Oxford OX4 4GA United Kingdom Email: sara@sinodun.com Shivan Sahib Salesforce Vancouver, BC Canada Email: ssahib@salesforce.com Pallavi Aras Salesforce Herndon, VA United States Email: paras@salesforce.com Allison Mankin Salesforce Herndon, VA United States Email: allison.mankin@gmail.com