]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add missing EDNS option mnemonics to dig
authorEvan Hunt <each@isc.org>
Thu, 24 Oct 2024 21:51:58 +0000 (14:51 -0700)
committerEvan Hunt <each@isc.org>
Wed, 7 May 2025 07:00:10 +0000 (00:00 -0700)
Report-Channel and ZONEVERSION EDNS options can now be sent
using `dig +ednsopt=report-channel` (or `dig +ednsopt=rc` for
short), and `dig +ednsopt=zoneversion`.

(cherry picked from commit c30754f28b82cec4467c05452aae62ab56198830)

bin/dig/dighost.c

index ebd796ec6590a925b2467b48a6532750d594996f..3cd19f11ce98f015c1fda2e4db6bf58e33d0f858 100644 (file)
@@ -1390,24 +1390,27 @@ typedef struct dig_ednsoptname {
 } dig_ednsoptname_t;
 
 dig_ednsoptname_t optnames[] = {
-       { 1, "LLQ" },          /* draft-sekar-dns-llq */
-       { 2, "UL" },           /* draft-ietf-dnssd-update-lease */
-       { 3, "NSID" },         /* RFC 5001 */
-       { 5, "DAU" },          /* RFC 6975 */
-       { 6, "DHU" },          /* RFC 6975 */
-       { 7, "N3U" },          /* RFC 6975 */
-       { 8, "ECS" },          /* RFC 7871 */
-       { 9, "EXPIRE" },       /* RFC 7314 */
-       { 10, "COOKIE" },      /* RFC 7873 */
-       { 11, "KEEPALIVE" },   /* RFC 7828 */
-       { 12, "PADDING" },     /* RFC 7830 */
-       { 12, "PAD" },         /* shorthand */
-       { 13, "CHAIN" },       /* RFC 7901 */
-       { 14, "KEY-TAG" },     /* RFC 8145 */
-       { 15, "EDE" },         /* ietf-dnsop-extended-error-16 */
-       { 16, "CLIENT-TAG" },  /* draft-bellis-dnsop-edns-tags */
-       { 17, "SERVER-TAG" },  /* draft-bellis-dnsop-edns-tags */
-       { 26946, "DEVICEID" }, /* Brian Hartvigsen */
+       { 1, "LLQ" },             /* draft-sekar-dns-llq */
+       { 2, "UL" },              /* draft-ietf-dnssd-update-lease */
+       { 3, "NSID" },            /* RFC 5001 */
+       { 5, "DAU" },             /* RFC 6975 */
+       { 6, "DHU" },             /* RFC 6975 */
+       { 7, "N3U" },             /* RFC 6975 */
+       { 8, "ECS" },             /* RFC 7871 */
+       { 9, "EXPIRE" },          /* RFC 7314 */
+       { 10, "COOKIE" },         /* RFC 7873 */
+       { 11, "KEEPALIVE" },      /* RFC 7828 */
+       { 12, "PADDING" },        /* RFC 7830 */
+       { 12, "PAD" },            /* shorthand */
+       { 13, "CHAIN" },          /* RFC 7901 */
+       { 14, "KEY-TAG" },        /* RFC 8145 */
+       { 15, "EDE" },            /* ietf-dnsop-extended-error-16 */
+       { 16, "CLIENT-TAG" },     /* draft-bellis-dnsop-edns-tags */
+       { 17, "SERVER-TAG" },     /* draft-bellis-dnsop-edns-tags */
+       { 18, "REPORT-CHANNEL" }, /* RFC 9567 */
+       { 18, "RC" },             /* shorthand */
+       { 19, "ZONEVERSION" },    /* RFC 9660 */
+       { 26946, "DEVICEID" },    /* Brian Hartvigsen */
 };
 
 #define N_EDNS_OPTNAMES (sizeof(optnames) / sizeof(optnames[0]))