Summary

  • RFC 9953 lets a DoC client zero out the DNS header ID so equivalent body-carried queries share a single CoAP Cache-Key.
  • But the cacheable representation stays bounded by a time calculation and by separate evidence for DNS status, responder role, validation, local policy, and actual use.

A small controller wakes after a long sleep, asks a resolver for one name, and an en-route CoAP cache already holds a representation that matches the request. The answer comes back cheap. That is a good day for the battery. It is not yet a verdict that the answer is authoritative, DNSSEC-validated, still permitted by local policy, or the reason an actuator safely changed state.

RFC 9953, published in March 2026, defines DNS over CoAP — DoC — for ordinary DNS queries using OPCODE 0. One DNS query-response pair becomes one CoAP request-response operation. The DNS wire message rides in the body of a CoAP FETCH, with application/dns-message registered as Content-Format 553. The design targets constrained environments where a body-carrying request, block-wise transfer, and CoAP caching earn their keep. It does not erase the older distinctions inside DNS.

The compact detail that matters most is the DNS header ID. A DoC client SHOULD set it to zero so repeated requests for the same DNS data do not spawn different CoAP Cache-Keys merely because the traditional DNS transaction identifier moved. A cache — including an en-route proxy — can then reuse its representation. The DoC server MUST copy the query ID into the response. Zero is not a security assertion and it is not a resolver identity. It is a controlled normalization of one cache-key input.

That normalization is deliberately chained to a clock. RFC 9953 says a DoC server MUST ensure the Max-Age of a CoAP response plus every DNS TTL carried in it is no greater than the corresponding TTL it received upstream. The rule includes CoAP's default 60-second Max-Age when the option is absent. A DoC client, on receiving the response, MUST add the response's Max-Age to each DNS TTL and use the calculated values. The two numbers are not duplicate decoration. Together they preserve the lifetime budget across a transport cache and the DNS representation inside it.

The recommended server algorithm makes the intent plain. Set Max-Age to the smallest DNS TTL in the response and subtract that same value from every DNS TTL in the body. An intermediate cache can then retain the representation without accidentally extending an expired DNS record, while a content-based CoAP ETag need not change merely because an upstream cache refreshed its remaining TTL. A short-lived error may need a smaller Max-Age — even zero. This is a mechanism against unjustified extension of time. It is not a promise that every error is equivalent or every answer is safe to act on.

The response code supplies a second discipline. A parsable DNS response is recommended to arrive in CoAP 2.05 Content even when DNS itself says NXDOMAIN or another RCODE failure. Non-successful CoAP codes are reserved for a CoAP-layer error or a request that fails the DoC protocol requirements, such as an unsupported content format. Read the outer 2.05 as “the DNS answer succeeded” and you throw away the DNS outcome. Read a DNS RCODE as “the transport failed” and you throw away the transport outcome. Operations need both coordinates.

The server role is not settled by the cache either. RFC 9953 allows a DoC server to be an authoritative server or a stub or recursive resolver that uses other upstream DNS transports, and it says the server MAY be a DNSSEC validator for constrained clients. The word “may” matters. A protected (D)TLS or OSCORE exchange can establish properties of the channel or object protection. It does not silently identify the upstream source, prove universal DNSSEC validation, decide a client's local policy, or record what a later application did.

Daniel Kade's use of Heng Lu's running-code lens is editorial, not a new protocol rule: cacheability, source, validation, time, authorization, and observed effect are different facts. RFC 9953 gives them a clean place to be recorded. It is strongest when an operator refuses to let one efficient cache hit stand in for all of them.

The cache hit is the cheap part. The clock is the part that keeps it honest. RFC 9953 writes both down — and dares the operator to confuse them.

Sources