1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173
|
<pre>Internet Engineering Task Force (IETF) S. Weiler, Ed.
Request for Comments: 6840 SPARTA, Inc.
Updates: <a href="./rfc4033">4033</a>, <a href="./rfc4034">4034</a>, <a href="./rfc4035">4035</a>, <a href="./rfc5155">5155</a> D. Blacka, Ed.
Category: Standards Track Verisign, Inc.
ISSN: 2070-1721 February 2013
<span class="h1">Clarifications and Implementation Notes for DNS Security (DNSSEC)</span>
Abstract
This document is a collection of technical clarifications to the DNS
Security (DNSSEC) document set. It is meant to serve as a resource
to implementors as well as a collection of DNSSEC errata that existed
at the time of writing.
This document updates the core DNSSEC documents (<a href="./rfc4033">RFC 4033</a>, <a href="./rfc4034">RFC 4034</a>,
and <a href="./rfc4035">RFC 4035</a>) as well as the NSEC3 specification (<a href="./rfc5155">RFC 5155</a>). It also
defines NSEC3 and SHA-2 (<a href="./rfc4509">RFC 4509</a> and <a href="./rfc5702">RFC 5702</a>) as core parts of the
DNSSEC specification.
Status of This Memo
This 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 <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6840">http://www.rfc-editor.org/info/rfc6840</a>.
<span class="grey">Weiler & Blacka Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
Copyright Notice
Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
<span class="grey">Weiler & Blacka Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
Table of Contents
<a href="#section-1">1</a>. Introduction and Terminology ....................................<a href="#page-4">4</a>
<a href="#section-1.1">1.1</a>. Structure of This Document .................................<a href="#page-4">4</a>
<a href="#section-1.2">1.2</a>. Terminology ................................................<a href="#page-4">4</a>
<a href="#section-2">2</a>. Important Additions to DNSSEC ...................................<a href="#page-4">4</a>
<a href="#section-2.1">2.1</a>. NSEC3 Support ..............................................<a href="#page-4">4</a>
<a href="#section-2.2">2.2</a>. SHA-2 Support ..............................................<a href="#page-5">5</a>
<a href="#section-3">3</a>. Scaling Concerns ................................................<a href="#page-5">5</a>
<a href="#section-3.1">3.1</a>. Implement a BAD Cache ......................................<a href="#page-5">5</a>
<a href="#section-4">4</a>. Security Concerns ...............................................<a href="#page-5">5</a>
<a href="#section-4.1">4.1</a>. Clarifications on Nonexistence Proofs ......................<a href="#page-5">5</a>
<a href="#section-4.2">4.2</a>. Validating Responses to an ANY Query .......................<a href="#page-6">6</a>
<a href="#section-4.3">4.3</a>. Check for CNAME ............................................<a href="#page-6">6</a>
<a href="#section-4.4">4.4</a>. Insecure Delegation Proofs .................................<a href="#page-7">7</a>
<a href="#section-5">5</a>. Interoperability Concerns .......................................<a href="#page-7">7</a>
<a href="#section-5.1">5.1</a>. Errors in Canonical Form Type Code List ....................<a href="#page-7">7</a>
<a href="#section-5.2">5.2</a>. Unknown DS Message Digest Algorithms .......................<a href="#page-7">7</a>
<a href="#section-5.3">5.3</a>. Private Algorithms .........................................<a href="#page-8">8</a>
<a href="#section-5.4">5.4</a>. Caution about Local Policy and Multiple RRSIGs .............<a href="#page-9">9</a>
<a href="#section-5.5">5.5</a>. Key Tag Calculation ........................................<a href="#page-9">9</a>
<a href="#section-5.6">5.6</a>. Setting the DO Bit on Replies ..............................<a href="#page-9">9</a>
<a href="#section-5.7">5.7</a>. Setting the AD Bit on Queries .............................<a href="#page-10">10</a>
<a href="#section-5.8">5.8</a>. Setting the AD Bit on Replies .............................<a href="#page-10">10</a>
<a href="#section-5.9">5.9</a>. Always Set the CD Bit on Queries ..........................<a href="#page-10">10</a>
<a href="#section-5.10">5.10</a>. Nested Trust Anchors .....................................<a href="#page-11">11</a>
<a href="#section-5.11">5.11</a>. Mandatory Algorithm Rules ................................<a href="#page-11">11</a>
<a href="#section-5.12">5.12</a>. Ignore Extra Signatures from Unknown Keys ................<a href="#page-12">12</a>
<a href="#section-6">6</a>. Minor Corrections and Clarifications ...........................<a href="#page-12">12</a>
<a href="#section-6.1">6.1</a>. Finding Zone Cuts .........................................<a href="#page-12">12</a>
<a href="#section-6.2">6.2</a>. Clarifications on DNSKEY Usage ............................<a href="#page-12">12</a>
<a href="#section-6.3">6.3</a>. Errors in Examples ........................................<a href="#page-13">13</a>
<a href="#section-6.4">6.4</a>. Errors in <a href="./rfc5155">RFC 5155</a> ........................................<a href="#page-13">13</a>
<a href="#section-7">7</a>. Security Considerations ........................................<a href="#page-13">13</a>
<a href="#section-8">8</a>. References .....................................................<a href="#page-14">14</a>
<a href="#section-8.1">8.1</a>. Normative References ......................................<a href="#page-14">14</a>
<a href="#section-8.2">8.2</a>. Informative References ....................................<a href="#page-15">15</a>
<a href="#appendix-A">Appendix A</a>. Acknowledgments .......................................<a href="#page-16">16</a>
<a href="#appendix-B">Appendix B</a>. Discussion of Setting the CD Bit ......................<a href="#page-16">16</a>
<a href="#appendix-C">Appendix C</a>. Discussion of Trust Anchor Preference Options .........<a href="#page-19">19</a>
<a href="#appendix-C.1">C.1</a>. Closest Encloser ..........................................<a href="#page-19">19</a>
<a href="#appendix-C.2">C.2</a>. Accept Any Success ........................................<a href="#page-20">20</a>
<a href="#appendix-C.3">C.3</a>. Preference Based on Source ................................<a href="#page-20">20</a>
<span class="grey">Weiler & Blacka Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction and Terminology</span>
This document lists some additions, clarifications, and corrections
to the core DNSSEC specification, as originally described in
[<a href="./rfc4033" title=""DNS Security Introduction and Requirements"">RFC4033</a>], [<a href="./rfc4034" title=""Resource Records for the DNS Security Extensions"">RFC4034</a>], and [<a href="./rfc4035" title=" however">RFC4035</a>], and later amended by [<a href="./rfc5155" title=""DNS Security (DNSSEC) Hashed Authenticated Denial of Existence"">RFC5155</a>].
(See <a href="#section-2">Section 2</a> for more recent additions to that core document set.)
It is intended to serve as a resource for implementors and as a
repository of items existing at the time of writing that need to be
addressed when advancing the DNSSEC documents along the Standards
Track.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Structure of This Document</span>
The clarifications and changes to DNSSEC are sorted according to
their importance, starting with ones which could, if ignored, lead to
security problems and progressing down to clarifications that are
expected to have little operational impact.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Terminology</span>
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
[<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Important Additions to DNSSEC</span>
This section lists some documents that are now considered core DNSSEC
protocol documents in addition to those originally specified in
<a href="./rfc4033#section-10">Section 10 of [RFC4033]</a>.
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. NSEC3 Support</span>
[<a id="ref-RFC5155">RFC5155</a>] describes the use and behavior of the NSEC3 and NSEC3PARAM
records for hashed denial of existence. Validator implementations
are strongly encouraged to include support for NSEC3 because a number
of highly visible zones use it. Validators that do not support
validation of responses using NSEC3 will be hampered in validating
large portions of the DNS space.
[<a id="ref-RFC5155">RFC5155</a>] is now considered part of the DNS Security Document Family
as described by <a href="./rfc4033#section-10">Section 10 of [RFC4033]</a>.
<span class="grey">Weiler & Blacka Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
Note that the algorithm identifiers defined in [<a href="./rfc5155" title=""DNS Security (DNSSEC) Hashed Authenticated Denial of Existence"">RFC5155</a>] (DSA-NSEC3-
SHA1 and RSASHA1-NSEC3-SHA1) and [<a href="./rfc5702" title=""Use of SHA-2 Algorithms with RSA in DNSKEY and RRSIG Resource Records for DNSSEC"">RFC5702</a>] (RSASHA256 and RSASHA512)
signal that a zone might be using NSEC3, rather than NSEC. The zone
may be using either, and validators supporting these algorithms MUST
support both NSEC3 and NSEC responses.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. SHA-2 Support</span>
[<a id="ref-RFC4509">RFC4509</a>] describes the use of SHA-256 as a digest algorithm in
Delegation Signer (DS) RRs. [<a href="./rfc5702" title=""Use of SHA-2 Algorithms with RSA in DNSKEY and RRSIG Resource Records for DNSSEC"">RFC5702</a>] describes the use of the
RSASHA256 and RSASHA512 algorithms in DNSKEY and RRSIG RRs.
Validator implementations are strongly encouraged to include support
for these algorithms for DS, DNSKEY, and RRSIG records.
Both [<a href="./rfc4509" title=""Use of SHA-256 in DNSSEC Delegation Signer (DS) Resource Records (RRs)"">RFC4509</a>] and [<a href="./rfc5702" title=""Use of SHA-2 Algorithms with RSA in DNSKEY and RRSIG Resource Records for DNSSEC"">RFC5702</a>] are now considered part of the DNS
Security Document Family as described by <a href="./rfc4033#section-10">Section 10 of [RFC4033]</a>.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Scaling Concerns</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Implement a BAD Cache</span>
<a href="./rfc4035#section-4.7">Section 4.7 of [RFC4035]</a> permits security-aware resolvers to
implement a BAD cache. That guidance has changed: security-aware
resolvers SHOULD implement a BAD cache as described in [<a href="./rfc4035" title=" however">RFC4035</a>].
This change in guidance is based on operational experience with
DNSSEC administrative errors leading to significant increases in DNS
traffic, with an accompanying realization that such events are more
likely and more damaging than originally supposed. An example of one
such event is documented in "Rolling Over DNSSEC Keys" [<a href="#ref-Huston" title=""Rolling Over DNSSEC Keys"">Huston</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Concerns</span>
This section provides clarifications that, if overlooked, could lead
to security issues.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Clarifications on Nonexistence Proofs</span>
<a href="./rfc4035#section-5.4">Section 5.4 of [RFC4035]</a> under-specifies the algorithm for checking
nonexistence proofs. In particular, the algorithm as presented would
allow a validator to interpret an NSEC or NSEC3 RR from an ancestor
zone as proving the nonexistence of an RR in a child zone.
An "ancestor delegation" NSEC RR (or NSEC3 RR) is one with:
o the NS bit set,
o the Start of Authority (SOA) bit clear, and
<span class="grey">Weiler & Blacka Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
o a signer field that is shorter than the owner name of the NSEC RR,
or the original owner name for the NSEC3 RR.
Ancestor delegation NSEC or NSEC3 RRs MUST NOT be used to assume
nonexistence of any RRs below that zone cut, which include all RRs at
that (original) owner name other than DS RRs, and all RRs below that
owner name regardless of type.
Similarly, the algorithm would also allow an NSEC RR at the same
owner name as a DNAME RR, or an NSEC3 RR at the same original owner
name as a DNAME, to prove the nonexistence of names beneath that
DNAME. An NSEC or NSEC3 RR with the DNAME bit set MUST NOT be used
to assume the nonexistence of any subdomain of that NSEC/NSEC3 RR's
(original) owner name.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Validating Responses to an ANY Query</span>
[<a id="ref-RFC4035">RFC4035</a>] does not address how to validate responses when QTYPE=*.
As described in <a href="./rfc1034#section-6.2.2">Section 6.2.2 of [RFC1034]</a>, a proper response to
QTYPE=* may include a subset of the RRsets at a given name. That is,
it is not necessary to include all RRsets at the QNAME in the
response.
When validating a response to QTYPE=*, all received RRsets that match
QNAME and QCLASS MUST be validated. If any of those RRsets fail
validation, the answer is considered Bogus. If there are no RRsets
matching QNAME and QCLASS, that fact MUST be validated according to
the rules in <a href="./rfc4035#section-5.4">Section 5.4 of [RFC4035]</a> (as clarified in this
document). To be clear, a validator must not expect to receive all
records at the QNAME in response to QTYPE=*.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Check for CNAME</span>
<a href="./rfc4035#section-5">Section 5 of [RFC4035]</a> says nothing explicit about validating
responses based on (or that should be based on) CNAMEs. When
validating a NOERROR/NODATA response, validators MUST check the CNAME
bit in the matching NSEC or NSEC3 RR's type bitmap in addition to the
bit for the query type.
Without this check, an attacker could successfully transform a
positive CNAME response into a NOERROR/NODATA response by (for
example) simply stripping the CNAME RRset from the response. A naive
validator would then note that the QTYPE was not present in the
matching NSEC/NSEC3 RR, but fail to notice that the CNAME bit was
set; thus, the response should have been a positive CNAME response.
<span class="grey">Weiler & Blacka Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Insecure Delegation Proofs</span>
<a href="./rfc4035#section-5.2">Section 5.2 of [RFC4035]</a> specifies that a validator, when proving a
delegation is not secure, needs to check for the absence of the DS
and SOA bits in the NSEC (or NSEC3) type bitmap. The validator also
MUST check for the presence of the NS bit in the matching NSEC (or
NSEC3) RR (proving that there is, indeed, a delegation), or
alternately make sure that the delegation is covered by an NSEC3 RR
with the Opt-Out flag set.
Without this check, an attacker could reuse an NSEC or NSEC3 RR
matching a non-delegation name to spoof an unsigned delegation at
that name. This would claim that an existing signed RRset (or set of
signed RRsets) is below an unsigned delegation, thus not signed and
vulnerable to further attack.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Interoperability Concerns</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Errors in Canonical Form Type Code List</span>
When canonicalizing DNS names (for both ordering and signing), DNS
names in the RDATA section of NSEC resource records are not converted
to lowercase. DNS names in the RDATA section of RRSIG resource
records are converted to lowercase.
The guidance in the above paragraph differs from what has been
published before but is consistent with current common practice.
Item 3 of <a href="./rfc4034#section-6.2">Section 6.2 of [RFC4034]</a> says that names in both of these
RR types should be converted to lowercase. The earlier [<a href="./rfc3755" title=""Legacy Resolver Compatibility for Delegation Signer (DS)"">RFC3755</a>]
says that they should not. Current practice follows neither document
fully.
<a href="./rfc4034#section-6.2">Section 6.2 of [RFC4034]</a> also erroneously lists HINFO as a record
that needs conversion to lowercase, and twice at that. Since HINFO
records contain no domain names, they are not subject to case
conversion.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Unknown DS Message Digest Algorithms</span>
<a href="./rfc4035#section-5.2">Section 5.2 of [RFC4035]</a> includes rules for how to handle delegations
to zones that are signed with entirely unsupported public key
algorithms, as indicated by the key algorithms shown in those zones'
DS RRsets. It does not explicitly address how to handle DS records
that use unsupported message digest algorithms. In brief, DS records
using unknown or unsupported message digest algorithms MUST be
treated the same way as DS records referring to DNSKEY RRs of unknown
or unsupported public key algorithms.
<span class="grey">Weiler & Blacka Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
The existing text says:
If the validator does not support any of the algorithms listed in
an authenticated DS RRset, then the resolver has no supported
authentication path leading from the parent to the child. The
resolver should treat this case as it would the case of an
authenticated NSEC RRset proving that no DS RRset exists, as
described above.
In other words, when determining the security status of a zone, a
validator disregards any authenticated DS records that specify
unknown or unsupported DNSKEY algorithms. If none are left, the zone
is treated as if it were unsigned.
This document modifies the above text to additionally disregard
authenticated DS records using unknown or unsupported message digest
algorithms.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Private Algorithms</span>
As discussed above, <a href="./rfc4035#section-5.2">Section 5.2 of [RFC4035]</a> requires that validators
make decisions about the security status of zones based on the public
key algorithms shown in the DS records for those zones. In the case
of private algorithms, as described in <a href="./rfc4034#appendix-A.1.1">Appendix A.1.1 of [RFC4034]</a>,
the eight-bit algorithm field in the DS RR is not conclusive about
what algorithm(s) is actually in use.
If no private algorithms appear in the DS RRset, or if any supported
algorithm appears in the DS RRset, no special processing is needed.
Furthermore, if the validator implementation does not support any
private algorithms, or only supports private algorithms using an
algorithm number not present in the DS RRset, no special processing
is needed.
In the remaining cases, the security status of the zone depends on
whether or not the resolver supports any of the private algorithms in
use (provided that these DS records use supported message digest
algorithms, as discussed in <a href="#section-5.2">Section 5.2</a> of this document). In these
cases, the resolver MUST retrieve the corresponding DNSKEY for each
private algorithm DS record and examine the public key field to
determine the algorithm in use. The security-aware resolver MUST
ensure that the hash of the DNSKEY RR's owner name and RDATA matches
the digest in the DS RR as described in <a href="./rfc4035#section-5.2">Section 5.2 of [RFC4035]</a>,
authenticating the DNSKEY. If all of the retrieved and authenticated
DNSKEY RRs use unknown or unsupported private algorithms, then the
zone is treated as if it were unsigned.
<span class="grey">Weiler & Blacka Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
Note that if none of the private algorithm DS RRs can be securely
matched to DNSKEY RRs and no other DS establishes that the zone is
secure, the referral should be considered Bogus data as discussed in
[<a href="./rfc4035" title=" however">RFC4035</a>].
This clarification facilitates the broader use of private algorithms,
as suggested by [<a href="./rfc4955" title=""DNS Security (DNSSEC) Experiments"">RFC4955</a>].
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Caution about Local Policy and Multiple RRSIGs</span>
When multiple RRSIGs cover a given RRset, <a href="./rfc4035#section-5.3.3">Section 5.3.3 of [RFC4035]</a>
suggests that "the local resolver security policy determines whether
the resolver also has to test these RRSIG RRs and how to resolve
conflicts if these RRSIG RRs lead to differing results".
This document specifies that a resolver SHOULD accept any valid RRSIG
as sufficient, and only determine that an RRset is Bogus if all
RRSIGs fail validation.
If a resolver adopts a more restrictive policy, there's a danger that
properly signed data might unnecessarily fail validation due to cache
timing issues. Furthermore, certain zone management techniques, like
the Double Signature Zone Signing Key Rollover method described in
<a href="./rfc6781#section-4.2.1.2">Section 4.2.1.2 of [RFC6781]</a>, will not work reliably. Such a
resolver is also vulnerable to malicious insertion of gibberish
signatures.
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. Key Tag Calculation</span>
<a href="./rfc4034#appendix-B.1">Appendix B.1 of [RFC4034]</a> incorrectly defines the Key Tag field
calculation for algorithm 1. It correctly says that the Key Tag is
the most significant 16 of the least significant 24 bits of the
public key modulus. However, [<a href="./rfc4034" title=""Resource Records for the DNS Security Extensions"">RFC4034</a>] then goes on to incorrectly
say that this is fourth-to-last and third-to-last octets of the
public key modulus. It is, in fact, the third-to-last and second-to-
last octets.
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>. Setting the DO Bit on Replies</span>
As stated in <a href="./rfc3225#section-3">Section 3 of [RFC3225]</a>, the DNSSEC OK (DO) bit of the
query MUST be copied in the response. However, in order to
interoperate with implementations that ignore this rule on sending,
resolvers MUST ignore the DO bit in responses.
<span class="grey">Weiler & Blacka Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h3"><a class="selflink" id="section-5.7" href="#section-5.7">5.7</a>. Setting the AD Bit on Queries</span>
The semantics of the Authentic Data (AD) bit in the query were
previously undefined. <a href="./rfc4035#section-4.6">Section 4.6 of [RFC4035]</a> instructed resolvers
to always clear the AD bit when composing queries.
This document defines setting the AD bit in a query as a signal
indicating that the requester understands and is interested in the
value of the AD bit in the response. This allows a requester to
indicate that it understands the AD bit without also requesting
DNSSEC data via the DO bit.
<span class="h3"><a class="selflink" id="section-5.8" href="#section-5.8">5.8</a>. Setting the AD Bit on Replies</span>
<a href="./rfc4035#section-3.2.3">Section 3.2.3 of [RFC4035]</a> describes under which conditions a
validating resolver should set or clear the AD bit in a response. In
order to interoperate with legacy stub resolvers and middleboxes that
neither understand nor ignore the AD bit, validating resolvers SHOULD
only set the AD bit when a response both meets the conditions listed
in <a href="./rfc4035#section-3.2.3">Section 3.2.3 of [RFC4035]</a>, and the request contained either a set
DO bit or a set AD bit.
<span class="h3"><a class="selflink" id="section-5.9" href="#section-5.9">5.9</a>. Always Set the CD Bit on Queries</span>
When processing a request with the Checking Disabled (CD) bit set, a
resolver SHOULD attempt to return all response data, even data that
has failed DNSSEC validation. <a href="./rfc4035#section-3.2.2">Section 3.2.2 of [RFC4035]</a> requires a
resolver processing a request with the CD bit set to set the CD bit
on its upstream queries.
This document further specifies that validating resolvers SHOULD set
the CD bit on every upstream query. This is regardless of whether
the CD bit was set on the incoming query or whether it has a trust
anchor at or above the QNAME.
[<a id="ref-RFC4035">RFC4035</a>] is ambiguous about what to do when a cached response was
obtained with the CD bit unset, a case that only arises when the
resolver chooses not to set the CD bit on all upstream queries, as
specified above. In the typical case, no new query is required, nor
does the cache need to track the state of the CD bit used to make a
given query. The problem arises when the cached response is a server
failure (RCODE 2), which may indicate that the requested data failed
DNSSEC validation at an upstream validating resolver. ([<a href="./rfc2308" title=""Negative Caching of DNS Queries (DNS NCACHE)"">RFC2308</a>]
permits caching of server failures for up to five minutes.) In these
cases, a new query with the CD bit set is required.
<a href="#appendix-B">Appendix B</a> discusses more of the logic behind the recommendation
presented in this section.
<span class="grey">Weiler & Blacka Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h3"><a class="selflink" id="section-5.10" href="#section-5.10">5.10</a>. Nested Trust Anchors</span>
A DNSSEC validator may be configured such that, for a given response,
more than one trust anchor could be used to validate the chain of
trust to the response zone. For example, imagine a validator
configured with trust anchors for "example." and "zone.example."
When the validator is asked to validate a response to
"www.sub.zone.example.", either trust anchor could apply.
When presented with this situation, DNSSEC validators have a choice
of which trust anchor(s) to use. Which to use is a matter of
implementation choice. <a href="#appendix-C">Appendix C</a> discusses several possible
algorithms.
It is possible and advisable to expose the choice of policy as a
configuration option. As a default, it is suggested that validators
implement the "Accept Any Success" policy described in <a href="#appendix-C.2">Appendix C.2</a>
while exposing other policies as configuration options.
The "Accept Any Success" policy is to try all applicable trust
anchors until one gives a validation result of Secure, in which case
the final validation result is Secure. If and only if all applicable
trust anchors give a result of Insecure, the final validation result
is Insecure. If one or more trust anchors lead to a Bogus result and
there is no Secure result, then the final validation result is Bogus.
<span class="h3"><a class="selflink" id="section-5.11" href="#section-5.11">5.11</a>. Mandatory Algorithm Rules</span>
The last paragraph of <a href="./rfc4035#section-2.2">Section 2.2 of [RFC4035]</a> includes rules
describing which algorithms must be used to sign a zone. Since these
rules have been confusing, they are restated using different language
here:
The DS RRset and DNSKEY RRset are used to signal which algorithms
are used to sign a zone. The presence of an algorithm in either a
zone's DS or DNSKEY RRset signals that that algorithm is used to
sign the entire zone.
A signed zone MUST include a DNSKEY for each algorithm present in
the zone's DS RRset and expected trust anchors for the zone. The
zone MUST also be signed with each algorithm (though not each key)
present in the DNSKEY RRset. It is possible to add algorithms at
the DNSKEY that aren't in the DS record, but not vice versa. If
more than one key of the same algorithm is in the DNSKEY RRset, it
is sufficient to sign each RRset with any subset of these DNSKEYs.
It is acceptable to sign some RRsets with one subset of keys (or
key) and other RRsets with a different subset, so long as at least
<span class="grey">Weiler & Blacka Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
one DNSKEY of each algorithm is used to sign each RRset.
Likewise, if there are DS records for multiple keys of the same
algorithm, any subset of those may appear in the DNSKEY RRset.
This requirement applies to servers, not validators. Validators
SHOULD accept any single valid path. They SHOULD NOT insist that all
algorithms signaled in the DS RRset work, and they MUST NOT insist
that all algorithms signaled in the DNSKEY RRset work. A validator
MAY have a configuration option to perform a signature completeness
test to support troubleshooting.
<span class="h3"><a class="selflink" id="section-5.12" href="#section-5.12">5.12</a>. Ignore Extra Signatures from Unknown Keys</span>
Validating resolvers MUST disregard RRSIGs in a zone that do not
(currently) have a corresponding DNSKEY in the zone. Similarly, a
validating resolver MUST disregard RRSIGs with algorithm types that
don't exist in the DNSKEY RRset.
Good key rollover and algorithm rollover practices, as discussed in
<a href="./rfc6781">RFC 6781</a> and its successor documents and as suggested by the rules in
the previous section, may require that such RRSIGs be present in a
zone.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Minor Corrections and Clarifications</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Finding Zone Cuts</span>
<a href="./rfc4035#appendix-C.8">Appendix C.8 of [RFC4035]</a> discusses sending DS queries to the servers
for a parent zone but does not state how to find those servers.
Specific instructions can be found in <a href="./rfc4035#section-4.2">Section 4.2 of [RFC4035]</a>.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Clarifications on DNSKEY Usage</span>
It is possible to use different DNSKEYs to sign different subsets of
a zone, constrained only by the rules in <a href="#section-5.11">Section 5.11</a>. It is even
possible to use a different DNSKEY for each RRset in a zone, subject
only to practical limits on the size of the DNSKEY RRset and the
above rules. However, be aware that there is no way to tell
resolvers what a particular DNSKEY is supposed to be used for -- any
DNSKEY in the zone's signed DNSKEY RRset may be used to authenticate
any RRset in the zone. For example, if a weaker or less trusted
DNSKEY is being used to authenticate NSEC RRsets or all dynamically
updated records, that same DNSKEY can also be used to sign any other
RRsets from the zone.
Furthermore, note that the SEP bit setting has no effect on how a
DNSKEY may be used -- the validation process is specifically
prohibited from using that bit by <a href="./rfc4034#section-2.1.2">Section 2.1.2 of [RFC4034]</a>. It is
<span class="grey">Weiler & Blacka Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
possible to use a DNSKEY without the SEP bit set as the sole secure
entry point to the zone, yet use a DNSKEY with the SEP bit set to
sign all RRsets in the zone (other than the DNSKEY RRset). It is
also possible to use a single DNSKEY, with or without the SEP bit
set, to sign the entire zone, including the DNSKEY RRset itself.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Errors in Examples</span>
The text in <a href="./rfc4035#appendix-C.1">Appendix C.1 of [RFC4035]</a> refers to the examples in
<a href="#appendix-B.1">Appendix B.1</a> as "x.w.example.com" while B.1 uses "x.w.example". This
is painfully obvious in the second paragraph where it states that the
RRSIG labels field value of 3 indicates that the answer was not the
result of wildcard expansion. This is true for "x.w.example" but not
for "x.w.example.com", which of course has a label count of 4
(antithetically, a label count of 3 would imply the answer was the
result of a wildcard expansion).
The first paragraph of <a href="./rfc4035#appendix-C.6">Appendix C.6 of [RFC4035]</a> also has a minor
error: the reference to "a.z.w.w.example" should instead be
"a.z.w.example", as in the previous line.
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Errors in <a href="./rfc5155">RFC 5155</a></span>
An NSEC3 record that matches an Empty Non-Terminal effectively has no
type associated with it. This NSEC3 record has an empty type bit
map. <a href="./rfc5155#section-3.2.1">Section 3.2.1 of [RFC5155]</a> contains the statement:
Blocks with no types present MUST NOT be included.
However, the same section contains a regular expression:
Type Bit Maps Field = ( Window Block # | Bitmap Length | Bitmap )+
The plus sign in the regular expression indicates that there is one
or more of the preceding element. This means that there must be at
least one window block. If this window block has no types, it
contradicts with the first statement. Therefore, the correct text in
<a href="./rfc5155#section-3.2.1">Section 3.2.1 of [RFC5155]</a> should be:
Type Bit Maps Field = ( Window Block # | Bitmap Length | Bitmap )*
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
This document adds SHA-2 and NSEC3 support to the core DNSSEC
protocol. Security considerations for those features are discussed
in the documents defining them. Additionally, this document
addresses some ambiguities and omissions in the core DNSSEC documents
that, if not recognized and addressed in implementations, could lead
<span class="grey">Weiler & Blacka Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
to security failures. In particular, the validation algorithm
clarifications in <a href="#section-4">Section 4</a> are critical for preserving the security
properties DNSSEC offers. Furthermore, failure to address some of
the interoperability concerns in <a href="#section-5">Section 5</a> could limit the ability to
later change or expand DNSSEC, including adding new algorithms.
The recommendation in <a href="#section-5.9">Section 5.9</a> to always set the CD bit has
security implications. By setting the CD bit, a resolver will not
benefit from more stringent validation rules or a more complete set
of trust anchors at an upstream validator.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
[<a id="ref-RFC1034">RFC1034</a>] Mockapetris, P., "Domain names - concepts and facilities",
STD 13, <a href="./rfc1034">RFC 1034</a>, November 1987.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC3225">RFC3225</a>] Conrad, D., "Indicating Resolver Support of DNSSEC",
<a href="./rfc3225">RFC 3225</a>, December 2001.
[<a id="ref-RFC4033">RFC4033</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "DNS Security Introduction and Requirements",
<a href="./rfc4033">RFC 4033</a>, March 2005.
[<a id="ref-RFC4034">RFC4034</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "Resource Records for the DNS Security Extensions",
<a href="./rfc4034">RFC 4034</a>, March 2005.
[<a id="ref-RFC4035">RFC4035</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "Protocol Modifications for the DNS Security
Extensions", <a href="./rfc4035">RFC 4035</a>, March 2005.
[<a id="ref-RFC4509">RFC4509</a>] Hardaker, W., "Use of SHA-256 in DNSSEC Delegation Signer
(DS) Resource Records (RRs)", <a href="./rfc4509">RFC 4509</a>, May 2006.
[<a id="ref-RFC5155">RFC5155</a>] Laurie, B., Sisson, G., Arends, R., and D. Blacka, "DNS
Security (DNSSEC) Hashed Authenticated Denial of
Existence", <a href="./rfc5155">RFC 5155</a>, March 2008.
[<a id="ref-RFC5702">RFC5702</a>] Jansen, J., "Use of SHA-2 Algorithms with RSA in DNSKEY
and RRSIG Resource Records for DNSSEC", <a href="./rfc5702">RFC 5702</a>,
October 2009.
<span class="grey">Weiler & Blacka Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-Huston">Huston</a>] Michaelson, G., Wallstrom, P., Arends, R., and G. Huston,
"Rolling Over DNSSEC Keys", Internet Protocol
Journal, Vol. 13, No.1, pp. 2-16, March 2010.
[<a id="ref-RFC2308">RFC2308</a>] Andrews, M., "Negative Caching of DNS Queries (DNS
NCACHE)", <a href="./rfc2308">RFC 2308</a>, March 1998.
[<a id="ref-RFC3755">RFC3755</a>] Weiler, S., "Legacy Resolver Compatibility for Delegation
Signer (DS)", <a href="./rfc3755">RFC 3755</a>, May 2004.
[<a id="ref-RFC4955">RFC4955</a>] Blacka, D., "DNS Security (DNSSEC) Experiments", <a href="./rfc4955">RFC 4955</a>,
July 2007.
[<a id="ref-RFC5011">RFC5011</a>] StJohns, M., "Automated Updates of DNS Security (DNSSEC)
Trust Anchors", STD 74, <a href="./rfc5011">RFC 5011</a>, September 2007.
[<a id="ref-RFC5074">RFC5074</a>] Weiler, S., "DNSSEC Lookaside Validation (DLV)", <a href="./rfc5074">RFC 5074</a>,
November 2007.
[<a id="ref-RFC6781">RFC6781</a>] Kolkman, O., Mekking, W., and R. Gieben, "DNSSEC
Operational Practices, Version 2", <a href="./rfc6781">RFC 6781</a>,
December 2012.
<span class="grey">Weiler & Blacka Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Acknowledgments</span>
The editors would like the thank Rob Austein for his previous work as
an editor of this document.
The editors are extremely grateful to those who, in addition to
finding errors and omissions in the DNSSEC document set, have
provided text suitable for inclusion in this document.
The lack of specificity about handling private algorithms, as
described in <a href="#section-5.3">Section 5.3</a>, and the lack of specificity in handling ANY
queries, as described in <a href="#section-4.2">Section 4.2</a>, were discovered by David
Blacka.
The error in algorithm 1 key tag calculation, as described in
<a href="#section-5.5">Section 5.5</a>, was found by Abhijit Hayatnagarkar. Donald Eastlake
contributed text for <a href="#section-5.5">Section 5.5</a>.
The bug relating to delegation NSEC RR's in <a href="#section-4.1">Section 4.1</a> was found by
Roy Badami. Roy Arends found the related problem with DNAME.
The errors in the [<a href="./rfc4035" title=" however">RFC4035</a>] examples were found by Roy Arends, who
also contributed text for <a href="#section-6.3">Section 6.3</a> of this document.
Text on the mandatory algorithm rules was derived from suggestions by
Matthijs Mekking and Ed Lewis.
The CD bit logic was analyzed in depth by David Blacka, Olafur
Gudmundsson, Mike St. Johns, and Andrew Sullivan.
The editors would like to thank Alfred Hoenes, Ed Lewis, Danny Mayer,
Olafur Gudmundsson, Suzanne Woolf, Rickard Bellgrim, Mike St. Johns,
Mark Andrews, Wouter Wijngaards, Matthijs Mekking, Andrew Sullivan,
Jeremy Reed, Paul Hoffman, Mohan Parthasarathy, Florian Weimer,
Warren Kumari and Scott Rose for their contributions to this
document.
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. Discussion of Setting the CD Bit</span>
[<a id="ref-RFC4035">RFC4035</a>] may be read as relying on the implicit assumption that
there is at most one validating system between the stub resolver and
the authoritative server for a given zone. It is entirely possible,
however, for more than one validator to exist between a stub resolver
and an authoritative server. If these different validators have
disjoint trust anchors configured, then it is possible that each
would be able to validate some portion of the DNS tree, but neither
<span class="grey">Weiler & Blacka Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
is able to validate all of it. Accordingly, it might be argued that
it is desirable not to set the CD bit on upstream queries, because
that allows for maximal validation.
In <a href="#section-5.9">Section 5.9</a> of this document, it is recommended to set the CD bit
on an upstream query even when the incoming query arrives with CD=0.
This is for two reasons: it encourages a more predictable validation
experience as only one validator is always doing the validation, and
it ensures that all DNSSEC data that exists may be available from the
local cache should a query with CD=1 arrive.
As a matter of policy, it is possible to set the CD bit differently
than suggested in <a href="#section-5.9">Section 5.9</a>. A different choice will, of course,
not always yield the benefits listed above. It is beyond the scope
of this document to outline all of the considerations and counter
considerations for all possible policies. Nevertheless, it is
possible to describe three approaches and their underlying philosophy
of operation. These are laid out in the tables below.
The table that describes each model has five columns. The first
column indicates the value of the CD bit that the resolver receives
(for instance, on the name server side in an iterative resolver, or
as local policy or from the API in the case of a stub). The second
column indicates whether the query needs to be forwarded for
resolution (F) or can be satisfied from a local cache (C). The third
column is a line number, so that it can be referred to later in the
table. The fourth column indicates any relevant conditions at the
resolver, for example, whether the resolver has a covering trust
anchor, and so on. If there are no parameters here, the column is
empty. The fifth and final column indicates what action the resolver
takes.
The tables differentiate between "cached data" and "cached RCODE=2".
This is a shorthand; the point is that one has to treat RCODE=2
(server failure) as special, because it might indicate a validation
failure somewhere upstream. The distinction is really between
"cached RCODE=2" and "cached everything else".
The tables are probably easiest to think of in terms of describing
what happens when a stub resolver sends a query to an intermediate
resolver, but they are perfectly general and can be applied to any
validating resolver.
Model 1: "always set"
This model is so named because the validating resolver sets the CD
bit on queries it makes regardless of whether it has a covering trust
anchor for the query. The general philosophy represented by this
<span class="grey">Weiler & Blacka Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
table is that only one resolver should be responsible for validation
irrespective of the possibility that an upstream resolver may be
present with trust anchors that cover different or additional QNAMEs.
It is the model recommended in <a href="#section-5.9">Section 5.9</a> of this document.
CD F/C line conditions action
====================================================================
1 F A1 Set CD=1 on upstream query
0 F A2 Set CD=1 on upstream query
1 C A3 Return the cache contents
(data or RCODE=2)
0 C A4 no covering TA Return cache contents
(data or RCODE=2)
0 C A5 covering TA Validate cached result and
return it
Model 2: "never set when receiving CD=0"
This model is so named because it sets CD=0 on upstream queries for
all received CD=0 queries, even if it has a covering trust anchor.
The general philosophy represented by this table is that more than
one resolver may take responsibility for validating a QNAME and that
a validation failure for a QNAME by any resolver in the chain is a
validation failure for the query. Using this model is NOT
RECOMMENDED.
CD F/C line conditions action
====================================================================
1 F N1 Set CD=1 on upstream query
0 F N2 Set CD=0 on upstream query
1 C N3 cached data Return cached data
1 C N4 cached RCODE=2 Treat as line N1
0 C N5 no covering TA Return cache contents
(data or RCODE=2)
0 C N6 covering TA & Treat as line N2
cached data was
generated with CD=1
0 C N7 covering TA & Validate and return
cached data was
generated with CD=0
Model 3: "sometimes set"
This model is so named because it sets the CD bit on upstream queries
triggered by received CD=0 queries, based on whether the validator
has a trust anchor configured that covers the query. If there is no
covering trust anchor, the resolver clears the CD bit in the upstream
<span class="grey">Weiler & Blacka Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
query. If there is a covering trust anchor, the resolver sets CD=1
and performs validation itself. The general philosophy represented
by this table is that a resolver should try and validate QNAMEs for
which it has trust anchors and should not preclude validation by
other resolvers for QNAMEs for which it does not have covering trust
anchors. Using this model is NOT RECOMMENDED.
CD F/C line conditions action
====================================================================
1 F S1 Set CD=1 on upstream query
0 F S2 covering TA Set CD=1 on upstream query
0 F S3 no covering TA Set CD=0 on upstream query
1 C S4 cached data Return cached data
1 C S5 cached RCODE=2 Treat as line S1
0 C S6 cached data was Return cache contents
generated with
CD=0
0 C S7 cached data was Validate & return cache
generated with contents
CD=1 &
covering TA
0 C S8 cached RCODE=2 Return cache contents
0 C S9 cached data Treat as line S3
was generated
with CD=1 &
no covering
TA
<span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. Discussion of Trust Anchor Preference Options</span>
This section presents several different policies for validating
resolvers to use when they have a choice of trust anchors available
for validating a given answer.
<span class="h3"><a class="selflink" id="appendix-C.1" href="#appendix-C.1">C.1</a>. Closest Encloser</span>
One policy is to choose the trust anchor closest to the QNAME of the
response. For example, consider a validator configured with trust
anchors for "example." and "zone.example." When asked to validate a
response for "www.sub.zone.example.", a validator using the "Closest
Encloser" policy would choose the "zone.example." trust anchor.
This policy has the advantage of allowing the operator to trivially
override a parent zone's trust anchor with one that the operator can
validate in a stronger way, perhaps because the resolver operator is
<span class="grey">Weiler & Blacka Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
affiliated with the zone in question. This policy also minimizes the
number of public key operations needed, which is of benefit in
resource-constrained environments.
This policy has the disadvantage of giving the user some unexpected
and unnecessary validation failures when sub-zone trust anchors are
neglected. As a concrete example, consider a validator that
configured a trust anchor for "zone.example." in 2009 and one for
"example." in 2011. In 2012, "zone.example." rolls its Key Signing
Key (KSK) and updates its DS records, but the validator operator
doesn't update its trust anchor. With the "Closest Encloser" policy,
the validator gets validation failures.
<span class="h3"><a class="selflink" id="appendix-C.2" href="#appendix-C.2">C.2</a>. Accept Any Success</span>
Another policy is to try all applicable trust anchors until one gives
a validation result of Secure, in which case the final validation
result is Secure. If and only if all applicable trust anchors give a
result of Insecure, the final validation result is Insecure. If one
or more trust anchors lead to a Bogus result and there is no Secure
result, then the final validation result is Bogus.
This has the advantage of causing the fewest validation failures,
which may deliver a better user experience. If one trust anchor is
out of date (as in our above example), the user may still be able to
get a Secure validation result (and see DNS responses).
This policy has the disadvantage of making the validator subject to
the compromise of the weakest of these trust anchors, while making it
relatively painless to keep old trust anchors configured in
perpetuity.
<span class="h3"><a class="selflink" id="appendix-C.3" href="#appendix-C.3">C.3</a>. Preference Based on Source</span>
When the trust anchors have come from different sources (e.g.,
automated updates ([<a href="./rfc5011" title=""Automated Updates of DNS Security (DNSSEC) Trust Anchors"">RFC5011</a>]), one or more DNSSEC Lookaside
Validation (DLV) registries ([<a href="./rfc5074" title=""DNSSEC Lookaside Validation (DLV)"">RFC5074</a>]), and manual configuration), a
validator may wish to choose between them based on the perceived
reliability of those sources. The order of precedence might be
exposed as a configuration option.
For example, a validator might choose to prefer trust anchors found
in a DLV registry over those manually configured on the theory that
the manually configured ones will not be as aggressively maintained.
<span class="grey">Weiler & Blacka Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc6840">RFC 6840</a> DNSSEC Implementation Notes February 2013</span>
Conversely, a validator might choose to prefer manually configured
trust anchors over those obtained from a DLV registry on the theory
that the manually configured ones have been more carefully
authenticated.
Or the validator might do something more complex: prefer a sub-set of
manually configured trust anchors (based on a configuration option),
then trust anchors that have been updated using the mechanism in
[<a href="./rfc5011" title=""Automated Updates of DNS Security (DNSSEC) Trust Anchors"">RFC5011</a>], then trust anchors from one DLV registry, then trust
anchors from a different DLV registry, then the rest of the manually
configured trust anchors.
Authors' Addresses
Samuel Weiler (editor)
SPARTA, Inc.
7110 Samuel Morse Drive
Columbia, MD 21046
US
EMail: weiler@tislabs.com
David Blacka (editor)
Verisign, Inc.
12061 Bluemont Way
Reston, VA 20190
US
EMail: davidb@verisign.com
Weiler & Blacka Standards Track [Page 21]
</pre>
|