Get a detailed answer to nxdomain error fix along with step-by-step troubleshooting instructions and related DNS resources.
ReviewMyDNS is a free DNS propagation checker that queries 50+ global DNS servers to verify your DNS records. Check A, AAAA, MX, CNAME, TXT, NS, and SOA records instantly.
NXDOMAIN stands for "Non-Existent Domain." It is the DNS response code returned when a resolver queried for a hostname and found definitively that no records exist for it in the DNS hierarchy. This is distinct from other DNS errors like SERVFAIL (server encountered an error) or REFUSED (resolver declined the query) — NXDOMAIN specifically means the authoritative nameserver confirmed the domain or record does not exist.
From a user's perspective, NXDOMAIN typically manifests as a browser "This site can't be reached" or "DNS_PROBE_FINISHED_NXDOMAIN" error, or a command-line output showing ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN.
NXDOMAIN can occur at the full domain level (e.g., example.com returning NXDOMAIN) or at the subdomain level (e.g., app.example.com returning NXDOMAIN while example.com resolves fine). The cause depends on where in the DNS hierarchy the failure occurs:
example.com resolves but app.example.com returns NXDOMAIN, the specific A, CNAME, or other record for app is missing in the DNS zone. Add the record at your DNS provider.Use dig to trace the resolution path and identify where the failure occurs:
# Check if the root domain resolves
dig A example.com
# Check a specific subdomain
dig A app.example.com
# Trace the full resolution path to see where NXDOMAIN originates
dig +trace example.com
# Query the authoritative nameserver directly
dig A example.com @ns1.yourprovider.com
If dig +trace returns NXDOMAIN from the TLD nameservers, the issue is at the domain registration level (expired or no NS delegation). If NXDOMAIN comes from your authoritative nameserver, the specific DNS record is missing.
ipconfig /flushdns. On macOS: sudo dscacheutil -flushcache. On Linux: sudo systemd-resolve --flush-caches.For subdomains returning NXDOMAIN, see the Subdomain Not Working guide for a detailed checklist. For NXDOMAIN caused by nameserver changes, see Why DNS Is Not Updating After 24 Hours. The NXDOMAIN error reference covers the technical details of how resolvers produce this response code.