GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.rfc-editor.org — RFC 9156: DNS Query Name Minimisation to Improve Privacy | RFC Editor View as: RFC 9156: DNS Query Name Minimisation to Improve Privacy
Proposed Standard
AbstractThis document describes a technique called "QNAME minimisation" to improve DNS privacy, where the DNS resolver no longer always sends the full original QNAME and original QTYPE to the upstream name server. This document obsoletes RFC 7816.¶ Status of This MemoThis is an Internet Standards Track document.¶ This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https:// Copyright NoticeCopyright (c) 2021 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
(https:// 1. Introduction and Background Skip to TOCThe problem statement for this document is described in [RFC9076]. This specific solution is not intended to fully solve the DNS privacy problem; instead, it should be viewed as one tool amongst many.¶ QNAME minimisation follows the principle explained in Section 6.1 of [RFC6973]: the less data you send out, the fewer privacy problems you have.¶ Before QNAME minimisation, when a resolver received the query "What is
the AAAA record for www QNAME minimisation is compatible with the current DNS system and therefore can easily be deployed. Because it is only a change to the way that the resolver operates, it does not change the DNS protocol itself. The behaviour suggested here (minimising the amount of data sent in QNAMEs from the resolver) is allowed by Section 5.3.3 of [RFC1034] and Section 7.2 of [RFC1035].¶ 1.1. Experience from RFC 7816 Skip to TOCThis document obsoletes [RFC7816]. [RFC7816] was categorised "Experimental", but ideas from it were widely deployed since its publication. Many resolver implementations now support QNAME minimisation. The lessons learned from implementing QNAME minimisation were used to create this new revision.¶ Data from DNSThought [dnsthought- Academic research has been performed on QNAME minimisation
[devries- 1.2. Terminology Skip to TOCThe terminology used in this document is defined in [RFC8499].¶ In this document, a "cold" cache is one that is empty, having literally no entries in it. A "warm" cache is one that has some entries in it.¶ 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] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶ 2. Description of QNAME Minimisation Skip to TOCThe idea behind QNAME minimisation is to minimise the amount of
privacy- When a resolver is not able to answer a query from cache, it has to send a query to an authoritative name server. Traditionally, these queries would contain the full QNAME and the original QTYPE as received in the client query.¶ The full QNAME and original QTYPE are only needed at the name server that
is authoritative for the record requested by the client. All other name servers
queried while resolving the query only need to receive enough of the QNAME to
be able to answer with a delegation. The QTYPE in these queries is not
relevant, as the name server is not able to authoritatively answer the records
the client is looking for. Sending the full QNAME and original QTYPE to
these name servers therefore exposes more privacy- A resolver that implements QNAME minimisation obscures the QNAME and QTYPE in queries directed to an authoritative name server that is not known to be responsible for the original QNAME. These queries contain:¶
2.1. QTYPE Selection Skip to TOCNote that this document relaxes the recommendation in [RFC7816] to use the NS QTYPE to hide the original QTYPE. Using the NS QTYPE is still allowed. The authority of NS records lies at the child side. The parent side of the delegation will answer using a referral, like it will do for queries with other QTYPEs. Using the NS QTYPE therefore has no added value over other QTYPEs.¶ The QTYPE to use while minimising queries can be any possible data type (as defined in Section 3.1 of [RFC6895]) for which the authority always lies below the zone cut (i.e., not DS, NSEC, NSEC3, OPT, TSIG, TKEY, ANY, MAILA, MAILB, AXFR, and IXFR), as long as there is no relation between the incoming QTYPE and the selection of the QTYPE to use while minimising. The A or AAAA QTYPEs are always good candidates to use because these are the least likely to raise issues in DNS software and middleboxes that do not properly support all QTYPEs. QTYPE=A or QTYPE=AAAA queries will also blend into traffic from nonminimising resolvers, making it in some cases harder to observe that the resolver is using QNAME minimisation. Using a QTYPE that occurs most in incoming queries will slightly reduce the number of queries, as there is no extra check needed for delegations on non-apex records.¶ 2.2. QNAME Selection Skip to TOCThe minimising resolver works perfectly when it knows the zone cut
(zone cuts are described in
Section 6 of [RFC2181]). But zone cuts do not
necessarily exist at every label boundary. In the name
www 2.3. Limitation of the Number of Queries Skip to TOCWhen using QNAME minimisation, the number of labels in the received QNAME can influence the number of queries sent from the resolver. This opens an attack vector and can decrease performance. Resolvers supporting QNAME minimisation MUST implement a mechanism to limit the number of outgoing queries per user request.¶ Take for example an incoming QNAME with many labels, like
www The behaviour of sending multiple queries can be exploited by sending queries with a large number of
labels in the QNAME that will be answered using a wildcard record. Take for
example a record for *.example One mechanism that MAY be used to reduce this attack vector is by
appending more than one label per iteration for QNAMEs with a large number of labels.
To do this, a maximum number of QNAME minimisation iterations MUST be
selected (MAX_ Another potential, optional mechanism for limiting the number of queries is to
assume that labels that begin with
an underscore (_) character do not represent privacy- When a resolver needs to send out a query, it will look for the closest-known
delegation point in its cache. The number of not- 2.4. Implementation by Stub and Forwarding Resolvers Skip to TOCStub and forwarding resolvers MAY implement QNAME minimisation. Minimising queries that will be sent to an upstream resolver does not help in hiding data from the upstream resolver because all information will end up there anyway. It might however limit the data exposure between the upstream resolver and the authoritative name server in the situation where the upstream resolver does not support QNAME minimisation. Using QNAME minimisation in a stub or forwarding resolver that does not have a mechanism to find and cache zone cuts will drastically increase the number of outgoing queries.¶ 3. Algorithm to Perform QNAME Minimisation Skip to TOCThis algorithm performs name resolution with QNAME minimisation in the presence of zone cuts that are not yet known.¶ Although a validating resolver already has the logic to find the zone cuts, implementers of resolvers may want to use this algorithm to locate the zone cuts.¶
4. QNAME Minimisation Examples Skip to TOCAs a first example, assume that a resolver receives a request to resolve
foo
The following are more detailed examples of requests for an MX record of
a.b
Note that, in the above example, one query would have been saved if the incoming QTYPE
was the same as the QTYPE selected by the resolver to hide the
original QTYPE. Only one query for a.b
5. Performance Considerations Skip to TOCThe main goal of QNAME minimisation is to improve privacy by sending less data. However, it may have other advantages. For instance, if a resolver sends a root name server queries for A.example followed by B.example followed by C.example, the result will be three NXDOMAINs, since .example does not exist in the root zone. When using QNAME minimisation, the resolver would send only one question (for .example itself) to which they could answer NXDOMAIN. The resolver can cache this answer and use it to prove that nothing below .example exists [RFC8020]. A resolver now knows a priori that neither B.example nor C.example exist. Thus, in this common case, the total number of upstream queries under QNAME minimisation could be counterintuitively less than the number of queries under the traditional iteration (as described in the DNS standard).¶ QNAME minimisation can increase the number of queries based on the incoming
QNAME. This is described in Section 2.3.
As described in [devries- 6. Security Considerations Skip to TOCQNAME minimisation's benefits are clear in the case where you want to decrease exposure of the queried name to the authoritative name server. But minimising the amount of data sent also, in part, addresses the case of a wire sniffer as well as the case of privacy invasion by the authoritative name servers. Encryption is of course a better defense against wire sniffers, but, unlike QNAME minimisation, it changes the protocol and cannot be deployed unilaterally. Also, the effect of QNAME minimisation on wire sniffers depends on whether the sniffer is on the DNS path.¶ QNAME minimisation offers no protection against the recursive resolver, which still sees the full request coming from the stub resolver.¶ A resolver using QNAME minimisation can possibly be used to cause a query storm to be sent to servers when resolving queries containing a QNAME with a large number of labels, as described in Section 2.3. That section proposes methods to significantly dampen the effects of such attacks.¶ 7. References Skip to TOC7.1. Normative References Skip to TOC
7.2. Informative References Skip to TOC
Acknowledgments Skip to TOCThe acknowledgments from RFC 7816 apply here. In addition, many participants from the DNSOP Working Group helped with proposals for simplification, clarification, and general editorial help.¶ Authors' Addresses Skip to TOCStephane Bortzmeyer
AFNIC
1, rue Stephenson
78180 Montigny-
France
Phone:
+33 1 39 30 83 46
Email:
bortzmey
Ralph Dolmans
NLnet Labs
Email:
ralph
Paul Hoffman
ICANN
Email:
paul
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |