Pcornel
Networking · Network & Protocols › DNS Protocol Reference

DNS EDNS(0) Evidence

Cheat sheet · https://pcornel.dk/topic.php?topic=307

Back to the Topic

Answer

EDNS extends DNS through an OPT record added to a message: it lets the sender state how large a UDP reply it accepts, carries the flag that requests DNSSEC data, and holds optional extras.

Remember

The advertised UDP size decides how big an answer may be; 1232 bytes avoids fragmentation, larger values invite lost replies. Old firewalls and servers sometimes mishandle queries that carry the extension — dig +noedns shows whether that is the problem.

First checks

  • dig <name> — the OPT pseudosection: version, flags, udp: size.
  • dig <name> +noedns — a plain query without the extension.
  • dig <name> +bufsize=1232 — set the size offered.
  • dig <name> +nsid @<server> — which machine answered.
  • dig <name> +dnssec — sets the DO flag.

Commands

dig

Verify in this order

query carries OPT with the UDP size and flags → server answers with OPT → answer within the advertised size, or truncated → no fragmentation on the path

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=307

Confirmation

Confirm action

Continue?