From 818bb6f4825b57c2cd2783fbffe2b2ef82a31573 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 27 Dec 2023 18:27:00 -0700 Subject: [PATCH] dns: update record type enum to match iana MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds some new dns record types. Also, some types were inserted into the middle of the enum — this corrects an error where the enum constants for some of the record types previously held an incorrect value. --- src/resolve/dns-type.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/resolve/dns-type.h b/src/resolve/dns-type.h index 9c294f4e5fd..b27ed130566 100644 --- a/src/resolve/dns-type.h +++ b/src/resolve/dns-type.h @@ -60,6 +60,7 @@ enum { DNS_TYPE_NSEC3, DNS_TYPE_NSEC3PARAM, DNS_TYPE_TLSA, + DNS_TYPE_SMIMEA, /* RFC 8162 */ DNS_TYPE_HIP = 0x37, DNS_TYPE_NINFO, @@ -68,8 +69,16 @@ enum { DNS_TYPE_CDS, DNS_TYPE_CDNSKEY, DNS_TYPE_OPENPGPKEY, + DNS_TYPE_CSYNC, + DNS_TYPE_ZONEMD, + DNS_TYPE_SVCB, /* RFC 9460 */ + DNS_TYPE_HTTPS, /* RFC 9460 */ DNS_TYPE_SPF = 0x63, + DNS_TYPE_UINFO, + DNS_TYPE_UID, + DNS_TYPE_GID, + DNS_TYPE_UNSPEC, DNS_TYPE_NID, DNS_TYPE_L32, DNS_TYPE_L64, @@ -86,6 +95,10 @@ enum { DNS_TYPE_ANY, DNS_TYPE_URI, DNS_TYPE_CAA, + DNS_TYPE_AVC, + DNS_TYPE_DOA, + DNS_TYPE_AMTRELAY, + DNS_TYPE_RESINFO, DNS_TYPE_TA = 0x8000, DNS_TYPE_DLV,