Troubleshooting DNS with Extended DNS Errors
How EDE provides extra diagnostics for DNS anomalies.
The responses produced by DNS resolvers include a status code (RCODE). The most common are:
NOERRORindicates the resolver processed the query successfully without an error condition.SERVFAILindicates the resolver couldn’t complete the lookup due to a failure or timeout upstream or during validation.NXDOMAINindicates the queried name does not exist, as far as the resolver can tell.REFUSEDindicates the resolver explicitly rejected the query.
These codes alone don’t provide any more information as to what happened to the query, so if several things could have led to the same result, they give you very little to go on.
Extension Mechanisms for DNS (EDNS(0))
EDNS(0) allows DNS messages to carry extra capabilities and metadata inside an OPT pseudo-record. Not dissimilar to a regular DNS record, an OPT pseudo-record is a flexible container of key-value options.
The IANA DNS EDNS(0) Option Codes registry maintains a range of option codes that sit inside OPT. Some of the notable options are:
| Code | Name | Purpose |
|---|---|---|
| 3 | NSID (Name Server Identifier) | Letting a client to obtain the identity of the name server that responded to a particular query. Helpful in DNS anycast or load balancing. |
| 8 | ECS (EDNS Client Subnet) | Sending the subnet of the client on whose behalf the query is being made. Useful for geo-location-aware answers. |
Extended DNS Errors (EDE) uses EDNS(0) option code 15 to attach structured diagnostics to a DNS response:
INFO-CODE(16-bit integer) identifies the specific error or condition category from the IANA Extended DNS Error registry.EXTRA-TEXT(optional UTF-8 string) provides free-form human-readable context.
To maintain compatibility with legacy clients, the capability negotiation happens by clients including an
OPTrecord in the request. If the client sendsOPT, the server must includeOPT; if the client does not sendOPT, the server will not sendOPT.
What does it look like?
Suppose you add example.com to your dúndns profile’s Deny List. Here’s what the relevant lines of a dig response would look like:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR
;; OPT PSEUDOSECTION:
; EDE: 17 (Filtered): (Blocked by dundns: denylist)
;; ANSWER SECTION:
example.com. 300 IN A 0.0.0.0
The resolver has applied your profile’s rule and supplied an answer, so the DNS status is NOERROR. The answer contains 0.0.0.0, the unspecified IPv4 address, which gives your device no meaningful remote destination for reaching this site.
Or suppose you have enabled one of the third-party privacy blocklists, the OPT PSEUDOSECTION of your dig response may contain:
; EDE: 17 (Filtered): (Blocked by dundns: blocklist:HaGeZi - Multi PRO)
dúndns reports these blocks as EDE 17 (Filtered) rather than 15 (Blocked) or 16 (Censored) because the rule comes from a list you chose for your own profile, not from the resolver operator’s policy (15) or an requirement imposed by an external entity (16).
Or suppose a query that’s meant for your local network crosses the boundary and reaches dúndns. A device might have asked for printer.home.arpa. The home.arpa domain is reserved for names on home networks. A public lookup of such names can never return a meaningful response. If your profile does not have a rewrite or filtering rule in place for that name, dúndns will return NXDOMAIN with EDE 29 (Synthesized), telling the client that the resolver generated the response.
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN
;; OPT PSEUDOSECTION:
; EDE: 29 (Synthesized): (private namespace; answered locally)
Beyond local filtering and policy feedback, EDE is also extensively used to identify DNSSEC validation failures, for examply by reporting 7 (Signature Expired) or 9 (DNSKEY Missing).