Skip to content
MtrXTools

FORMERR

The DNS server could not parse the query

Seen in dig (status: FORMERR), BIND and Unbound logs

The server replied "format error", meaning it rejected the query as malformed or did not understand part of it.

Common causes

  • An old server, load balancer or firewall does not understand EDNS options (such as DNS cookies) and rejects the query.
  • A middlebox rewrote or truncated the packet in transit.
  • The client sent a genuinely malformed query.

How to fix it

  1. Test without EDNS options: `dig +noedns example.com @server` and `dig +nocookie example.com @server`; if those work, the server or a device in front of it needs updating.
  2. Upgrade the DNS software, or fix the firewall or load balancer that inspects DNS.
  3. Compare against another resolver to see whether only one server is affected.
Query the authoritative servers

Got a different message? Paste it into the error explainer.

Related errors

All 22 DNS errors