idnits 2.17.00 (12 Aug 2021) /tmp/idnits35650/draft-ietf-dnsop-nsec-aggressiveuse-10.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- -- The document has examples using IPv4 documentation addresses according to RFC6890, but does not use any IPv6 documentation addresses. Maybe there should be IPv6 examples, too? Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year (Using the creation date from RFC4035, updated by this document, for RFC5378 checks: 2002-10-29) -- The document seems to lack a disclaimer for pre-RFC5378 work, but may have content which was first submitted before 10 November 2008. If you have contacted all the original authors and they are all willing to grant the BCP78 rights to the IETF Trust, then this is fine, and you can ignore this comment. If not, you may need to add the pre-RFC5378 disclaimer. (See the Legal Provisions document at https://trustee.ietf.org/license-info for more information.) -- The document date (May 24, 2017) is 1816 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) ** Downref: Normative reference to an Informational RFC: RFC 7129 ** Obsolete normative reference: RFC 7719 (Obsoleted by RFC 8499) Summary: 2 errors (**), 0 flaws (~~), 1 warning (==), 3 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group K. Fujiwara 3 Internet-Draft JPRS 4 Updates: 4035 (if approved) A. Kato 5 Intended status: Standards Track Keio/WIDE 6 Expires: November 25, 2017 W. Kumari 7 Google 8 May 24, 2017 10 Aggressive use of DNSSEC-validated Cache 11 draft-ietf-dnsop-nsec-aggressiveuse-10 13 Abstract 15 The DNS relies upon caching to scale; however, the cache lookup 16 generally requires an exact match. This document specifies the use 17 of NSEC/NSEC3 resource records to allow DNSSEC validating resolvers 18 to generate negative answers within a range, and positive answers 19 from wildcards. This increases performance / decreases latency, 20 decreases resource utilization on both authoritative and recursive 21 servers, and also increases privacy. It may also help increase 22 resilience to certain DoS attacks in some circumstances. 24 This document updates RFC4035 by allowing validating resolvers to 25 generate negative answers based upon NSEC/NSEC3 records and positive 26 answers in the presence of wildcards. 28 [ Ed note: Text inside square brackets ([]) is additional background 29 information, answers to frequently asked questions, general musings, 30 etc. RFC Editor, please remove before publication. This document is 31 being collaborated on in Github at: https://github.com/wkumari/draft- 32 ietf-dnsop-nsec-aggressiveuse. The most recent version of the 33 document, open issues, etc should all be available here. The authors 34 (gratefully) accept pull requests.] 36 Status of This Memo 38 This Internet-Draft is submitted in full conformance with the 39 provisions of BCP 78 and BCP 79. 41 Internet-Drafts are working documents of the Internet Engineering 42 Task Force (IETF). Note that other groups may also distribute 43 working documents as Internet-Drafts. The list of current Internet- 44 Drafts is at http://datatracker.ietf.org/drafts/current/. 46 Internet-Drafts are draft documents valid for a maximum of six months 47 and may be updated, replaced, or obsoleted by other documents at any 48 time. It is inappropriate to use Internet-Drafts as reference 49 material or to cite them other than as "work in progress." 51 This Internet-Draft will expire on November 25, 2017. 53 Copyright Notice 55 Copyright (c) 2017 IETF Trust and the persons identified as the 56 document authors. All rights reserved. 58 This document is subject to BCP 78 and the IETF Trust's Legal 59 Provisions Relating to IETF Documents 60 (http://trustee.ietf.org/license-info) in effect on the date of 61 publication of this document. Please review these documents 62 carefully, as they describe your rights and restrictions with respect 63 to this document. Code Components extracted from this document must 64 include Simplified BSD License text as described in Section 4.e of 65 the Trust Legal Provisions and are provided without warranty as 66 described in the Simplified BSD License. 68 Table of Contents 70 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 71 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 3 72 3. Problem Statement . . . . . . . . . . . . . . . . . . . . . . 3 73 4. Background . . . . . . . . . . . . . . . . . . . . . . . . . 4 74 5. Aggressive use of Cache . . . . . . . . . . . . . . . . . . . 6 75 5.1. NSEC . . . . . . . . . . . . . . . . . . . . . . . . . . 6 76 5.2. NSEC3 . . . . . . . . . . . . . . . . . . . . . . . . . . 6 77 5.3. Wildcards . . . . . . . . . . . . . . . . . . . . . . . . 6 78 5.4. Consideration on TTL . . . . . . . . . . . . . . . . . . 7 79 6. Benefits . . . . . . . . . . . . . . . . . . . . . . . . . . 7 80 7. Update to RFC 4035 . . . . . . . . . . . . . . . . . . . . . 8 81 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8 82 9. Security Considerations . . . . . . . . . . . . . . . . . . . 9 83 10. Implementation Status . . . . . . . . . . . . . . . . . . . . 9 84 11. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 9 85 11.1. Change History . . . . . . . . . . . . . . . . . . . . . 10 86 11.1.1. Version draft-fujiwara-dnsop-nsec-aggressiveuse-01 . 13 87 11.1.2. Version draft-fujiwara-dnsop-nsec-aggressiveuse-02 . 13 88 11.1.3. Version draft-fujiwara-dnsop-nsec-aggressiveuse-03 . 14 89 12. References . . . . . . . . . . . . . . . . . . . . . . . . . 14 90 12.1. Normative References . . . . . . . . . . . . . . . . . . 14 91 12.2. Informative References . . . . . . . . . . . . . . . . . 15 92 Appendix A. Detailed implementation notes . . . . . . . . . . . 15 93 Appendix B. Procedure for determining ENT vs NXDOMAN with NSEC . 16 94 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 16 96 1. Introduction 98 A DNS negative cache exists, and is used to cache the fact that an 99 RRset does not exist. This method of negative caching requires exact 100 matching; this leads to unnecessary additional lookups, increases 101 latency, leads to extra resource utilization on both authoritative 102 and recursive servers, and decreases privacy by leaking queries. 104 This document updates RFC 4035 to allow resolvers to use NSEC/NSEC3 105 resource records to synthesize negative answers from the information 106 they have in the cache. This allows validating resolvers to respond 107 with a negative answer immediately if the name in question falls into 108 a range expressed by a NSEC/NSEC3 resource record already in the 109 cache. It also allows the synthesis of positive answers in the 110 presence of wildcard records. 112 Aggressive Negative Caching was first proposed in Section 6 of DNSSEC 113 Lookaside Validation (DLV) [RFC5074] in order to find covering NSEC 114 records efficiently. 116 [RFC8020] and [I-D.vixie-dnsext-resimprove] propose steps to using 117 NXDOMAIN information for more effective caching. This document takes 118 this technique further. 120 2. Terminology 122 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 123 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 124 document are to be interpreted as described in RFC 2119 [RFC2119]. 126 Many of the specialized terms used in this document are defined in 127 DNS Terminology [RFC7719]. 129 The key words "Source of Synthesis" in this document are to be 130 interpreted as described in [RFC4592]. 132 3. Problem Statement 134 The DNS negative cache caches negative (non-existent) information, 135 and requires an exact match in most instances [RFC2308]. 137 Assume that the (DNSSEC signed) "example.com" zone contains: 139 albatross.example.com IN A 192.0.2.1 140 elephant.example.com IN A 192.0.2.2 141 zebra.example.com IN A 192.0.2.3 142 If a validating resolver receives a query for cat.example.com, it 143 contacts its resolver (which may be itself) to query the example.com 144 servers and will get back an NSEC record stating that there are no 145 records (alphabetically) between albatross and elephant, or an NSEC3 146 record stating there is nothing between two hashed names. The 147 resolver then knows that cat.example.com does not exist; however, it 148 does not use the fact that the proof covers a range (albatross to 149 elephant) to suppress queries for other labels that fall within this 150 range. This means that if the validating resolver gets a query for 151 ball.example.com (or dog.example.com) it will once again go off and 152 query the example.com servers for these names. 154 Apart from wasting bandwidth, this also wastes resources on the 155 recursive server (it needs to keep state for outstanding queries), 156 wastes resources on the authoritative server (it has to answer 157 additional questions), increases latency (the end user has to wait 158 longer than necessary to get back an NXDOMAIN answer), can be used by 159 attackers to cause a DoS (see additional resources), and also has 160 privacy implications (e.g: typos leak out further than necessary). 162 Another example: assume that the (DNSSEC signed) "example.org" zone 163 contains: 165 avocado.example.org IN A 192.0.2.1 166 *.example.org IN A 192.0.2.2 167 zucchini.example.org IN A 192.0.2.3 169 If a query is received for leek.example.org, the system contacts its 170 resolver (which may be itself) to query the example.org servers and 171 will get back an NSEC record stating that there are no records 172 (alphabetically) between avocado and zucchini (or an NSEC3 record 173 stating there is nothing between two hashed names), as well as an 174 answer for leek.example.org, with the label count of the signature 175 set to two (see [RFC7129], section 5.3 for more details). 177 If the validating resolver gets a query for banana.example.org it 178 will once again go off and query the example.org servers for 179 banana.example.org (even though it already has proof that there is a 180 wildcard record) - just like above, this has privacy implications, 181 wastes resources, can be used to contribute to a DoS, etc. 183 4. Background 185 DNSSEC [RFC4035] and [RFC5155] both provide "authenticated denial of 186 existence"; this is a cryptographic proof that the queried for name 187 does not exist or type does not exist. Proof that a name does not 188 exist is accomplished by providing a (DNSSEC secured) record 189 containing the names which appear alphabetically before and after the 190 queried for name. In the first example above, if the (DNSSEC 191 validating) recursive server were to query for dog.example.com it 192 would receive a (signed) NSEC record stating that there are no labels 193 between "albatross" and "elephant" (or, for NSEC3, a similar pair of 194 hashed names). This is a signed, cryptographic proof that these 195 names are the ones before and after the queried for label. As 196 dog.example.com falls within this range, the recursive server knows 197 that dog.example.com really does not exist. Proof that a type does 198 not exist is accomplished by providing a (DNSSEC secured) record 199 containing the queried for name, and a type bitmap which does not 200 include the requested type. 202 This document specifies that this NSEC/NSEC3 record should be used to 203 generate negative answers for any queries that the validating server 204 receives that fall within the range covered by the record (for the 205 TTL for the record). This document also specifies that a positive 206 answer should be generated for any queries that the validating server 207 receives that are proven to be covered by a wildcard record. 209 Section 4.5 of [RFC4035] says: 211 "In theory, a resolver could use wildcards or NSEC RRs to generate 212 positive and negative responses (respectively) until the TTL or 213 signatures on the records in question expire. However, it seems 214 prudent for resolvers to avoid blocking new authoritative data or 215 synthesizing new data on their own. Resolvers that follow this 216 recommendation will have a more consistent view of the namespace." 217 and "The reason for these recommendations is that, between the 218 initial query and the expiration of the data from the cache, the 219 authoritative data might have been changed (for example, via dynamic 220 update).". In other words, if a resolver generates negative answers 221 from an NSEC record, it will not send any queries for names within 222 that NSEC range (for the TTL). If a new name is added to the zone 223 during this interval the resolver will not know this. Similarly, if 224 the resolver is generating responses from a wildcard record, it will 225 continue to do so (for the TTL). 227 We believe this recommendation can be relaxed because, in the absence 228 of this technique, a lookup for the exact name could have come in 229 during this interval, and so a negative answer could already be 230 cached (see [RFC2308] for more background). This means that zone 231 operators should have no expectation that an added name would work 232 immediately. With DNSSEC and Aggressive NSEC, the TTL of the NSEC/ 233 NSEC3 record and the SOA.MINIMUM field are the authoritative 234 statement of how quickly a name can start working within a zone. 236 5. Aggressive use of Cache 238 This document relaxes the restriction given in Section 4.5 of 239 [RFC4035], see Section 7 for more detail. 241 If the negative cache of the validating resolver has sufficient 242 information to validate the query, the resolver SHOULD use NSEC, 243 NSEC3 and wildcard records to synthesize answers as described in this 244 document. Otherwise, it MUST fall back to send the query to the 245 authoritative DNS servers. 247 5.1. NSEC 249 The validating resolver needs to check the existence of an NSEC RR 250 matching/covering the source of synthesis and an NSEC RR covering the 251 query name. 253 If denial of existence can be determined according to the rules set 254 out in Section 5.4 of [RFC4035], using NSEC records in the cache, 255 then the resolver can immediately return an NXDOMAIN or NODATA (as 256 appropriate) response. 258 5.2. NSEC3 260 NSEC3 aggressive negative caching is more difficult than NSEC 261 aggressive caching. If the zone is signed with NSEC3, the validating 262 resolver needs to check the existence of non-terminals and wildcards 263 which derive from query names. 265 If denial of existence can be determined according to the rules set 266 out in [RFC5155] Sections 8.4, 8.5, 8.6, 8.7, using NSEC3 records in 267 the cache, then the resolver can immediately return an NXDOMAIN or 268 NODATA response (as appropriate). 270 If a covering NSEC3 RR has Opt-Out flag, the covering NSEC3 RR does 271 not prove the non-existence of the domain name and the aggressive 272 negative caching is not possible for the domain name. 274 5.3. Wildcards 276 The last paragraph of [RFC4035] Section 4.5 also discusses the use of 277 wildcards and NSEC RRs to generate positive responses and recommends 278 that it not be relied upon. Just like the case for the aggressive 279 use of NSEC/NSEC3 for negative answers, we revise this 280 recommendation. 282 As long as the validating resolver can determine that a name would 283 not exist without the wildcard match, determined according to the 284 rules set out in Section 5.3.4 of [RFC4035] (NSEC), or in Section 8.8 285 of [RFC5155], it SHOULD synthesize an answer (or NODATA response) for 286 that name using the cached deduced wildcard. If the corresponding 287 wildcard record is not in the cache, it MUST fall back to send the 288 query to the authoritative DNS servers. 290 5.4. Consideration on TTL 292 The TTL value of negative information is especially important, 293 because newly added domain names cannot be used while the negative 294 information is effective. 296 Section 5 of [RFC2308] suggests a maximum default negative cache TTL 297 value of 3 hours (10800). It is RECOMMENDED that validating 298 resolvers limit the maximum effective TTL value of negative responses 299 (NSEC/NSEC3 RRs) to this same value. 301 Section 5 of [RFC2308] also states that a negative cache entry TTL is 302 taken from the minimum of the SOA.MINIMUM field and SOA's TTL. This 303 can be less than the TTL of an NSEC or NSEC3 record, since their TTL 304 is equal to the SOA.MINIMUM field (see [RFC4035]section 2.3 and 305 [RFC5155] section 3.) 307 A resolver that supports aggressive use of NSEC and NSEC3 SHOULD 308 reduce the TTL of NSEC and NSEC3 records to match the SOA.MINIMUM 309 field in the authority section of a negative response, if SOA.MINIMUM 310 is smaller. 312 6. Benefits 314 The techniques described in this document provide a number of 315 benefits, including (in no specific order): 317 Reduced latency: By answering directly from cache, validating 318 resolvers can immediately inform clients that the name they are 319 looking for does not exist, improving the user experience. 321 Decreased recursive server load: By answering queries from the cache 322 by synthesizing answers, validating servers avoid having to send a 323 query and wait for a response. In addition to decreasing the 324 bandwidth used, it also means that the server does not need to 325 allocate and maintain state, thereby decreasing memory and CPU 326 load. 328 Decreased authoritative server load: Because recursive servers can 329 answer queries without asking the authoritative server, the 330 authoritative servers receive fewer queries. This decreases the 331 authoritative server bandwidth, queries per second and CPU 332 utilization. 334 The scale of the benefit depends upon multiple factors, including the 335 query distribution. For example, at the time of this writing, around 336 65% of queries to Root Name servers result in NXDOMAIN responses (see 337 statistics from [root-servers.org]); this technique will eliminate a 338 sizable quantity of these. 340 The technique described in this document may also mitigate so-called 341 "random QNAME attacks", in which attackers send many queries for 342 random sub-domains to resolvers. As the resolver will not have the 343 answers cached, it has to ask external servers for each random query, 344 leading to a DoS on the authoritative servers (and often resolvers). 345 Aggressive NSEC may help mitigate these attacks by allowing the 346 resolver to answer directly from cache for any random queries which 347 fall within already requested ranges. It will not always work as an 348 effective defense, not least because not many zones are DNSSEC signed 349 at all -- but it will still provide an additional layer of defense. 351 As these benefits are only accrued by those using DNSSEC, it is hoped 352 that these techniques will lead to more DNSSEC deployment. 354 7. Update to RFC 4035 356 Section 4.5 of [RFC4035] shows that "In theory, a resolver could use 357 wildcards or NSEC RRs to generate positive and negative responses 358 (respectively) until the TTL or signatures on the records in question 359 expire. However, it seems prudent for resolvers to avoid blocking 360 new authoritative data or synthesizing new data on their own. 361 Resolvers that follow this recommendation will have a more consistent 362 view of the namespace". 364 The paragraph is updated as follows: 366 +-----------------------------------------------------------------+ 367 | Once the records are validated, DNSSEC enabled validating | 368 | resolvers SHOULD use wildcards and NSEC/NSEC3 resource records | 369 | to generate positive and negative responses until the | 370 | effective TTLs or signatures for those records expire. | 371 +-----------------------------------------------------------------+ 373 8. IANA Considerations 375 This document has no IANA actions. 377 9. Security Considerations 379 Use of NSEC / NSEC3 resource records without DNSSEC validation may 380 create serious security issues, and so this technique requires DNSSEC 381 validation. 383 Newly registered resource records may not be used immediately. 384 However, choosing suitable TTL value and negative cache TTL value 385 (SOA MINIMUM field) will mitigate the delay concern, and it is not a 386 security problem. 388 It is also suggested to limit the maximum TTL value of NSEC / NSEC3 389 resource records in the negative cache to, for example, 10800 seconds 390 (3hrs), to mitigate this issue. 392 Although the TTL of NSEC/NSEC3 records is typically fairly short 393 (minutes or hours), their RRSIG expiration time can be much further 394 in the future (weeks). An attacker who is able to successfully spoof 395 responses might poison a cache with old NSEC/NSEC3 records. If the 396 resolver is not making aggressive use of NSEC/NSEC3, the attacker has 397 to repeat the attack for every query. If the resolver is making 398 aggressive use of NSEC/NSEC3, one successful attack would be able to 399 suppress many queries for new names, up to the negative TTL. 401 10. Implementation Status 403 [ Editor note: RFC Editor, please remove this entire section. 404 RFC6982 says: "Since this information is necessarily time dependent, 405 it is inappropriate for inclusion in a published RFC." ] 407 Unbound currently implements aggressive negative caching, as does 408 Google Public DNS. 410 11. Acknowledgments 412 The authors gratefully acknowledge DLV [RFC5074] author Samuel Weiler 413 and the Unbound developers. 415 Thanks to Mark Andrews for providing the helpful notes for 416 implementors provided in Appendix B. 418 The authors would like to specifically thank Stephane Bortzmeyer (for 419 standing next to and helping edit), Ralph Dolmans, Tony Finch, Tatuya 420 JINMEI for extensive review and comments, and also Mark Andrews, 421 Casey Deccio, Alexander Dupuy, Olafur Gudmundsson, Bob Harold, Shumon 422 Huque, John Levine, Pieter Lexis, Matthijs Mekking (who even sent 423 pull requests!) and Ondrej Sury. 425 11.1. Change History 427 RFC Editor: Please remove this section prior to publication. 429 -09 to -10: 431 o Addressed IESG comments at https://datatracker.ietf.org/doc/draft- 432 ietf-dnsop-nsec-aggressiveuse/ballot/ 434 o Main change "the resolver SHOULD use NSEC, NSEC3 and wildcard 435 records aggressively." -> "HOULD use NSEC, NSEC3 and wildcard 436 records to synthesize answers as described in this document" 437 (Mirja) - aggressively wasn't really described... 439 -08 to -09: 441 o Made RFC5074 Informative (after discussions with chairs. 443 o Addressed SecDir comments. 445 o Addressed OpsDir comments. 447 -06 to -08: 449 o Largely editorial, but please see the diffs (editors forgot to 450 update change log when editing, backfilling change log.) 452 o Changed "replacement" text to be "DNSSEC enabled validating 453 resolvers SHOULD use wildcards ..." to align with text in doc. 455 o "A resolver that supports aggressive use of NSEC and NSEC3 SHOULD" 456 (should -> SHOULD) - to align with rest of text. 458 -05 to -06: 460 o Moved some dangling text around - when the examples were added 461 some text added in the wrong place. 463 o There were some bits which mentioned "negative" in the title. 465 o We had the cut-and-paste of what changed in 4035 twice. 467 o Clarified that this also allows NODATA responses to be 468 synthesized. 470 -04 to -05: 472 o Bob pointed out that I did a stupid - when I added the wildcard to 473 'example.com' I made the example wrong / confusing. I have 474 attempted to fix this by adding a second example zone 475 (example.org) with the wildcard instead. 477 o More helpful changes (in a pull request, thanks!) from Matthijs 479 o Included Mark Andrew's useful explanation of how to tell ENT from 480 NXD as an Appendix. 482 -03 to -04: 484 o Working group does want the "positive" answers, not just negative 485 ones. This requires reading what used to be Section 7, and a 486 bunch of cleanup, including: 488 * Additional text in the Problem Statement 490 * Added a wildcard record to the zone. 492 * Added "or positive answers from wildcards" type text (where 493 appropriate) to explain that this isn't just for negative 494 answers. 496 * Reworded much of the Wildcard text. 498 o Incorporated pull request from Tony Finch (thanks!): 499 https://github.com/wkumari/draft-ietf-dnsop-nsec-aggressiveuse/ 500 pull/1 502 o More fixups from Tony (including text): https://www.ietf.org/mail- 503 archive/web/dnsop/current/msg18271.html. This included much 504 clearer text on TTL, references to the NSEC / NSEC3 RFCs (instead 505 of my clumsy summary), good text on replays, etc. 507 o Converted the "zone file" to a figure to make it more readable. 509 o Text from Tim W: "If a validating resolver receives a query for 510 cat.example.com, it contacts its resolver (which may be itself) to 511 query..." - which satisfies Jinmei's concern (which I was too 512 dense to grock). 514 o Fixup of the "validation required" in security considerations. 516 -02 to -03: 518 o Integrated a bunch of comments from Matthijs Mekking - details in: 519 https://github.com/wkumari/draft-ietf-dnsop-nsec-aggressiveuse/ 520 pull/1. I decided to keep "Aggressive Negative Caching" instead 521 of "Aggressive USE OF Negative Caching" for readability. 523 o Attempted to address Bob Harold's comment on the readability 524 issues with "But, it will be more effective when both are 525 enabled..." in Section 5.4 - https://www.ietf.org/mail- 526 archive/web/dnsop/current/msg17997.html 528 o MAYs and SHOULD drifted in the text block. Fixed - thanks to 529 https://mailarchive.ietf.org/arch/msg/ 530 dnsop/2ljmmzxtIMCFMLOZmWcSbTYVOy4 532 o A number of good edits from Stephane in: https://www.ietf.org/ 533 mail-archive/web/dnsop/current/msg18109.html 535 o A bunch more edits from Jinmei, as in: https://www.ietf.org/mail- 536 archive/web/dnsop/current/msg18206.html 538 -01 to -02: 540 o Added Section 6 - Benefits (as suggested by Jinmei). 542 o Removed Appendix B (Jinmei) 544 o Replaced "full-service" with "validating" (where applicable) 546 o Integrated other comments from Jinmei from https://www.ietf.org/ 547 mail-archive/web/dnsop/current/msg17875.html 549 o Integrated comment from co-authors, including re-adding parts of 550 Appendix B, terminology, typos. 552 o Tried to explain under what conditions this may actually mitigate 553 attacks. 555 -00 to -01: 557 o Comments from DNSOP meeting in Berlin. 559 o Changed intended status to Standards Track (updates RFC 4035) 561 o Added a section "Updates to RFC 4035" 563 o Some language clarification / typo / cleanup 565 o Cleaned up the TTL section a bit. 567 o Removed Effects section, Additional proposal section, and pseudo 568 code. 570 o Moved "mitigation of random subdomain attacks" to Appendix. 572 From draft-fujiwara-dnsop-nsec-aggressiveuse-03 -> draft-ietf-dnsop- 573 nsec-aggressiveuse 575 o Document adopted by DNSOP WG. 577 o Adoption comments 579 o Changed main purpose to performance 581 o Use NSEC3/Wildcard keywords 583 o Improved wordings (from good comments) 585 o Simplified pseudo code for NSEC3 587 o Added Warren as co-author. 589 o Reworded much of the problem statement 591 o Reworked examples to better explain the problem / solution. 593 11.1.1. Version draft-fujiwara-dnsop-nsec-aggressiveuse-01 595 o Added reference to DLV [RFC5074] and imported some sentences. 597 o Added Aggressive Negative Caching Flag idea. 599 o Added detailed algorithms. 601 11.1.2. Version draft-fujiwara-dnsop-nsec-aggressiveuse-02 603 o Added reference to [I-D.vixie-dnsext-resimprove] 605 o Added considerations for the CD bit 607 o Updated detailed algorithms. 609 o Moved Aggressive Negative Caching Flag idea into Additional 610 Proposals 612 11.1.3. Version draft-fujiwara-dnsop-nsec-aggressiveuse-03 614 o Added "Partial implementation" 616 o Section 4,5,6 reorganized for better representation 618 o Added NODATA answer in Section 4 620 o Trivial updates 622 o Updated pseudo code 624 12. References 626 12.1. Normative References 628 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 629 Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/ 630 RFC2119, March 1997, 631 . 633 [RFC2308] Andrews, M., "Negative Caching of DNS Queries (DNS 634 NCACHE)", RFC 2308, DOI 10.17487/RFC2308, March 1998, 635 . 637 [RFC4035] Arends, R., Austein, R., Larson, M., Massey, D., and S. 638 Rose, "Protocol Modifications for the DNS Security 639 Extensions", RFC 4035, DOI 10.17487/RFC4035, March 2005, 640 . 642 [RFC4592] Lewis, E., "The Role of Wildcards in the Domain Name 643 System", RFC 4592, DOI 10.17487/RFC4592, July 2006, 644 . 646 [RFC5155] Laurie, B., Sisson, G., Arends, R., and D. Blacka, "DNS 647 Security (DNSSEC) Hashed Authenticated Denial of 648 Existence", RFC 5155, DOI 10.17487/RFC5155, March 2008, 649 . 651 [RFC7129] Gieben, R. and W. Mekking, "Authenticated Denial of 652 Existence in the DNS", RFC 7129, DOI 10.17487/RFC7129, 653 February 2014, . 655 [RFC7719] Hoffman, P., Sullivan, A., and K. Fujiwara, "DNS 656 Terminology", RFC 7719, DOI 10.17487/RFC7719, December 657 2015, . 659 12.2. Informative References 661 [I-D.vixie-dnsext-resimprove] 662 Vixie, P., Joffe, R., and F. Neves, "Improvements to DNS 663 Resolvers for Resiliency, Robustness, and Responsiveness", 664 draft-vixie-dnsext-resimprove-00 (work in progress), June 665 2010. 667 [RFC5074] Weiler, S., "DNSSEC Lookaside Validation (DLV)", RFC 5074, 668 DOI 10.17487/RFC5074, November 2007, 669 . 671 [RFC8020] Bortzmeyer, S. and S. Huque, "NXDOMAIN: There Really Is 672 Nothing Underneath", RFC 8020, DOI 10.17487/RFC8020, 673 November 2016, . 675 [root-servers.org] 676 IANA, "Root Server Technical Operations Assn", 677 . 679 Appendix A. Detailed implementation notes 681 o Previously, cached negative responses were indexed by QNAME, 682 QCLASS, QTYPE, and the setting of the CD bit (see RFC 4035, 683 Section 4.7), and only queries matching the index key would be 684 answered from the cache. With aggressive negative caching, the 685 validator, in addition to checking to see if the answer is in its 686 cache before sending a query, checks to see whether any cached and 687 validated NSEC record denies the existence of the sought 688 record(s). Using aggressive negative caching, a validator will 689 not make queries for any name covered by a cached and validated 690 NSEC record. Furthermore, a validator answering queries from 691 clients will synthesize a negative answer (or NODATA response) 692 whenever it has an applicable validated NSEC in its cache unless 693 the CD bit was set on the incoming query. (Imported from 694 Section 6 of [RFC5074]). 696 o Implementing aggressive negative caching suggests that a validator 697 will need to build an ordered data structure of NSEC and NSEC3 698 records for each signer domain name of NSEC / NSEC3 records in 699 order to efficiently find covering NSEC / NSEC3 records. Call the 700 table as NSEC_TABLE. (Imported from Section 6.1 of [RFC5074] and 701 expanded.) 703 o The aggressive negative caching may be inserted at the cache 704 lookup part of the recursive resolvers. 706 o If errors happen in aggressive negative caching algorithm, 707 resolvers MUST fall back to resolve the query as usual. "Resolve 708 the query as usual" means that the resolver must process the query 709 as though it does not implement aggressive negative caching. 711 Appendix B. Procedure for determining ENT vs NXDOMAN with NSEC 713 This procedure outlines how to determine if a given name does not 714 exist, or is an ENT (Empty Non-Terminal, see [RFC5155] Section 1.3) 715 with NSEC. 717 If the NSEC record has not been verified as secure discard it. 719 If the given name sorts before or matches the NSEC owner name discard 720 it as it does not prove the NXDOMAIN or ENT. 722 If the given name is a subdomain of the NSEC owner name and the NS 723 bit is present and the SOA bit is absent then discard the NSEC as it 724 is from a parent zone. 726 If the next domain name sorts after the NSEC owner name and the given 727 name sorts after or matches next domain name then discard the NSEC 728 record as it does not prove the NXDOMAIN or ENT. 730 If the next domain name sorts before or matches the NSEC owner name 731 and the given name is not a subdomain of the next domain name then 732 discard the NSEC as it does not prove the NXDOMAIN or ENT. 734 You now have a NSEC record that proves the NXDOMAIN or ENT. 736 If the next domain name is a subdomain of the given name you have a 737 ENT otherwise you have a NXDOMAIN. 739 Authors' Addresses 741 Kazunori Fujiwara 742 Japan Registry Services Co., Ltd. 743 Chiyoda First Bldg. East 13F, 3-8-1 Nishi-Kanda 744 Chiyoda-ku, Tokyo 101-0065 745 Japan 747 Phone: +81 3 5215 8451 748 Email: fujiwara@jprs.co.jp 749 Akira Kato 750 Keio University/WIDE Project 751 Graduate School of Media Design, 4-1-1 Hiyoshi 752 Kohoku, Yokohama 223-8526 753 Japan 755 Phone: +81 45 564 2490 756 Email: kato@wide.ad.jp 758 Warren Kumari 759 Google 760 1600 Amphitheatre Parkway 761 Mountain View, CA 94043 762 US 764 Email: warren@kumari.net