From 410be58f367f00d399222574b3a2be8913396dc0 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 25 Oct 2023 10:54:31 +0200 Subject: [PATCH 1/2] gcoap_dns: Update draft URL The DoC draft is a working group draft since September 2022 --- sys/include/net/gcoap/dns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/gcoap/dns.h b/sys/include/net/gcoap/dns.h index 3c0fe3600136..30cd9f1d621c 100644 --- a/sys/include/net/gcoap/dns.h +++ b/sys/include/net/gcoap/dns.h @@ -13,7 +13,7 @@ * @brief A DNS over CoAP client prototype based on gCoAP. * * DNS over CoAP allows a node to use a CoAP server to resolve DNS request, following - * [draft-lenders-dns-over-coap](https://datatracker.ietf.org/doc/draft-lenders-dns-over-coap/). + * [draft-ietf-core-dns-over-coap](https://datatracker.ietf.org/doc/draft-ietf-core-dns-over-coap/). * * The `gcoap_dns` module does not replace the @ref sock_dns_query function when built, and is not * used as a back-end to @ref netutils_get_ipv6 automatically. It does, however, provide a drop-in From 63fd5643e47ed0599a8a6d01470ab025b14251e4 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 25 Oct 2023 10:57:28 +0200 Subject: [PATCH 2/2] coap: Set COAP_FORMAT_DNS_MESSAGE to 553 Set since draft-ietf-core-dns-over-coap-03 --- sys/include/net/coap.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index dca1f4bae0fd..b675f653b13b 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -443,6 +443,11 @@ extern "C" { * @see [Web of Things (WoT) Thing Description 1.1](https://www.w3.org/TR/wot-thing-description11/) */ #define COAP_FORMAT_TM_JSON (433) +/** + * @brief Content-Type `application/dns-message` + * @see [draft-ietf-core-dns-over-coap](https://datatracker.ietf.org/doc/draft-ietf-core-dns-over-coap/) + */ +#define COAP_FORMAT_DNS_MESSAGE (553) /** * @brief Content-Type `application/voucher-cose+cbor` * @see [draft-ietf-anima-constrained-voucher](https://datatracker.ietf.org/doc/draft-ietf-anima-constrained-voucher/) @@ -500,7 +505,6 @@ extern "C" { * @see [RFC 2318](https://www.w3.org/TR/SVG/mimereg.html) */ #define COAP_FORMAT_IMAGE_SVG_XML (30000) -#define COAP_FORMAT_DNS_MESSAGE (65053) /**< NON STANDARD! */ /** @} */ /**