# What is the difference between NXDOMAIN and SERVFAIL?

Canonical: https://www.namesilo.com/questions/dns-and-email/what-is-the-difference-between-nxdomain-and-servfail

Published: 2026-11-17

Last updated: 2026-11-19

Topic: DNS & email

NXDOMAIN is DNS response code 3, meaning the queried name does not exist; SERVFAIL is code 2, meaning the server failed to process the query. RFC 1035 defines those codes. A name-existence problem and a resolution-processing failure need different investigations, so record the code and exact query before changing website records.

Follow the actual DNS error

Compare the authoritative answer and the affected recursive resolver. For SERVFAIL, include delegation, server reachability and DNSSEC validation in the investigation: RFC 4035 describes validation failures as bogus when an expected chain cannot be established. For NXDOMAIN, confirm the owner name and the zone you edited.

Your next steps

Record the full owner name, type and response code

Query the intended authoritative servers

Investigate missing name or failed resolution accordingly

Retest the original affected query

Follow the actual DNS error

Compare the authoritative answer and the affected recursive resolver. For SERVFAIL, include delegation, server reachability and DNSSEC validation in the investigation: RFC 4035 describes validation failures as bogus when an expected chain cannot be established. For NXDOMAIN, confirm the owner name and the zone you edited.

Verified detail: DNS header Name Error3 and Server Failure2.

Your next step: Retest the original affected query.

## Sources

- [IETF RFC 1035 §4.1.1](https://www.rfc-editor.org/rfc/rfc1035.txt#section-4.1.1)

- [IETF RFC 4035 §4.3](https://www.rfc-editor.org/rfc/rfc4035.txt#section-4.3)
