Open PeterDaveHello opened 2 years ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I've been looking at this, and I'm a bit puzzled with this part of RFC:
If the DNS response has no records in the Answer section, and the DNS response has an SOA record in the Authority section, the response freshness lifetime MUST NOT be greater than the MINIMUM field from that SOA record (see [RFC2308]).
What should we set the cache-control
header to, if there is no records in the Answer section, as well as no SOA records in the Authority section?
This http header is currently not implemented in Blocky DoH server.
Some famous DoH servers like those:
They do return
cache-control
http header like the example mentioned in RFC 8484 (DNS Queries over HTTPS (DoH)) 4.2.2 HTTP Response ExampleMore info: 5.1 Cache Interaction.
Just FYI, Cloudflare, NextDNS and OpenDNS doesn't do that. At least, not yet.