DNS Error Code FORMERR
The DNS server could not interpret the query.
The DNS server could not interpret the query.
| Code | FORMERR |
| Product | DNS |
| Company / origin | IANA / IETF · International standard |
| Category | Protocols & Standards |
| Platform / versions | Recursive and authoritative DNS servers · RFC 1035 and later |
| Severity | warning |
| Official source | IANA DNS Parameters ↗ |
| Last verified | 2026-11-08 |
What does DNS error FORMERR mean?
FORMERR means the query packet is malformed or uses a format the server cannot parse. It is usually a client, library, or middlebox problem rather than a domain configuration problem.
Common causes
- A broken DNS client or library generated an invalid packet.
- A middlebox modified the DNS packet incorrectly.
- The query uses an unsupported format or malformed EDNS option.
How to fix it
- Step 1
Retry with a standard DNS client such as dig or nslookup.
- Step 2
Disable unusual EDNS options or middlebox DNS inspection.
- Step 3
Update the client library or resolver if the problem is reproducible.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
BADVERS | BADVERS | The server does not support the EDNS version used in the query. |
NOTIMP | NOTIMP | The DNS server does not implement the requested operation. |
NODATA | NODATA | The name exists, but it has no record of the requested type. |
NOTAUTH | Not Authoritative | The DNS server is not authoritative for the zone in the query. |
NXDOMAIN | NXDOMAIN | The domain name does not exist. |
Source & verification
This page was checked against IANA DNS Parameters on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IANA / IETF. Always confirm destructive or security-sensitive steps with the official documentation.