Summary

  • RFC 8482, January 2019, starts from a right most protocol documents never bother to write down: a name server "might choose not to respond to such queries for reasons of local policy, motivated by security, performance, or other reasons".
  • The reason is arithmetic. "ANY queries are frequently used to exploit the amplification potential of DNS servers and resolvers using spoofed source addresses and UDP transport", and a server that answers small is one of the "less attractive amplifiers" on the Internet.
  • The mechanism is a licensed under-answer: reply "with a Subset of Available RRsets" or "with a Synthesized HINFO RRset", and the client learns that ordinary ANY is not on the menu.

A query that asks for everything

Type 255 — ANY, in the shorthand everyone actually uses — asks a name server for whatever it has under one name. On a modest host that is a handful of records. On a busy one it is a wall: addresses, mail configuration, verification strings, service hints, and whatever else has accumulated since somebody last tidied the zone.

That asymmetry is the whole problem. A question is small and cheap to forge. An answer is large and expensive to receive. Put a fake return address on the envelope and the bill lands somewhere else.

The economics of being useful

Any server that answers a small question with a large answer is a multiplier, and the Internet is full of them. An attacker sends a few dozen bytes pretending to be the victim; the victim receives a few thousand. Repeat at scale and the victim's uplink does the work of the attack.

DNS over UDP was the perfect host for this: no handshake, no proof of origin, and a global population of open resolvers and authoritative servers willing to answer strangers. ANY was the cheapest lever available, because it required no knowledge of the target's zone — just a name.

Answering with less, on purpose

RFC 8482 does something unusual for a protocol document. It does not tighten the definition of a correct answer. It standardises a partial one, and gives the server a way to say "this is all you get" without returning an error.

Two shapes are permitted. Return one RRset — a subset of what is actually there — or return a synthetic HINFO record that says, in effect, ANY is not supported here. Either way the client learns that a conventional ANY response is not coming, and the information loss is not a bug. It is the product.

The costs it admits

The document is honest about what it breaks. A synthesised HINFO answer can be cached by a resolver, and that cached record may then swallow later, genuine HINFO queries from the same client. Operators who actually publish HINFO are told to pick a different method.

Clients that expected the old behaviour are told to keep a fallback, because a server that answers minimally is under no obligation to explain itself further. Diagnostics and auditors, who used ANY to see a name at a glance, lose the glance. The network gets cheaper to run and harder to inspect, and the document chooses cheaper.

Why this pattern is worth naming

Most protocol design assumes that more information is better and that a complete answer is the honest one. This one prices the answer against the risk of sending it, and hands the sender the cheaper option.

That is a small correction with a large general shape: when a feature's cost falls on someone other than the party who triggers it, the specification should give the payer a dial — and a way to signal that the dial is turned. RFC 8482 does both, without inventing a registry, a policy process, or a committee to decide who may turn it.

The lesson about restricting generosity

When a mechanism becomes a target precisely because it is generous, the fix is not to make it less useful. The fix is to make generosity configurable and to publish the shape of the refusal.

Any answer whose size is set by the responder rather than the asker is an amplifier. Give the responder a defined way to say "less", give the asker a defined way to notice, and the argument stops being about virtue and starts being about settings.