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
- 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.
- Upgrade the DNS software, or fix the firewall or load balancer that inspects DNS.
- Compare against another resolver to see whether only one server is affected.
Got a different message? Paste it into the error explainer.
Related errors
- DNS_PROBE_FINISHED_NXDOMAIN · The domain name doesn't exist
- SERVFAIL · The DNS server failed to answer
- REFUSED · The DNS server refused the query
- ERR_NAME_NOT_RESOLVED · The browser couldn't resolve the hostname
- DNS_PROBE_FINISHED_BAD_CONFIG · The configured DNS server is not working
- ** server can't find example.com: NXDOMAIN · nslookup says the name doesn't exist
- *** UnKnown can't find · nslookup couldn't name the DNS server, then the lookup failed
- Non-authoritative answer: · The answer came from a resolver cache, which is normal
- ;; connection timed out; no servers could be reached · No DNS server answered the query
- status: NOERROR, ANSWER: 0 · The name exists but has no record of that type
- NOTIMP · The DNS server does not support that kind of query
- ;; Truncated, retrying in TCP mode. · The answer was too big for UDP, so dig retried over TCP