SecDNS

QNAME minimisation

QNAME minimisation is a privacy technique where a recursive resolver sends only the minimum necessary portion of a query name at each step of the DNS hierarchy.

QNAME minimisation

QNAME minimisation is a recursive-resolver behaviour where each upstream query carries only as much of the queried name as the receiving server actually needs, instead of the full original QNAME. It is a privacy improvement, not a security fix.

In plain English

Without QNAME min, when you look up secret-app.example.com your resolver asks the root, the TLD, and the zone's authoritative server for the full name — even though the root only needs to know .com and the TLD only needs example.com. QNAME min sends each server only what it needs to give you the next referral.

How it works

QNAME minimisation was introduced as experimental in RFC 7816 (2016) and refined into best current practice in RFC 9156 (2021). On a cold cache, the resolver sends a query for the right-most undelegated label only — for example com NS to the root, then example.com NS to the .com servers — using NS as the qtype to avoid revealing the originally requested record type. As it works down the tree it adds one label at a time until it reaches the authoritative server for the final zone, where it issues the original query. RFC 9156 also addresses NXDOMAIN behaviour at intermediate labels (NXDOMAIN cut) so resolvers do not stall when a midpoint reports the name does not exist. Unbound, BIND, Knot, and PowerDNS all enable QNAME min by default.

  • DNS — protocol context
  • Recursive DNS — where QNAME min is implemented
  • DoH — pairs naturally for end-to-end privacy
  • NXDOMAIN — handled specially under QNAME min
  • EDNS — neighbouring privacy considerations like padding
  • GDPR and DNS — a technical safeguard that helps compliance

SecDNS perspective

SecDNS recursive resolvers run QNAME minimisation by default per RFC 9156, so even our own authoritative platform only sees the labels it strictly needs to answer.

Frequently asked questions

Does QNAME min slow things down?

Slightly, because it can take an extra round trip on cold caches. In practice the difference is invisible and most modern resolvers enable it by default.

Is QNAME min the same as encryption?

No. QNAME min reduces what each upstream server can see in cleartext; DoH, DoT, and DoQ encrypt the stub-to-resolver hop. The two are complementary.