domaindetails.com
Knowledge Base/Troubleshooting/Domain Not Resolving: Diagnose DNS Errors and Fix the Cause
Troubleshooting

Domain Not Resolving: Diagnose DNS Errors and Fix the Cause

Fix a domain not resolving by checking NXDOMAIN, SERVFAIL, DNS records, nameservers, DNSSEC and registration status before waiting for caches.

6 min
Published 2025-03-19
Updated 2026-11-26
By DomainDetails Team

Quick Answer

If your domain is not resolving, check the DNS response before changing settings. NXDOMAIN, SERVFAIL, an empty answer and a timeout point to different problems. Compare your local resolver with a public resolver, then query an authoritative nameserver. Waiting only helps when the authoritative answer is already correct and a resolver has cached an older answer.

If DNS returns the expected address but the website still fails, follow website down while the domain works. DNS, hosting and HTTPS are separate layers.

Understanding Domain Resolution

DNS returns records for a particular hostname and record type. The root domain and www can have different answers. An A record supplies an IPv4 address; an AAAA record supplies IPv6. A CNAME points to another hostname, which must also resolve.

Diagnostic Steps

Step 1: Test the exact hostname

Replace example.com with the hostname that fails. Keep the full output: +short hides the response status needed for diagnosis.

dig example.com A
dig example.com AAAA
dig www.example.com A
dig @1.1.1.1 example.com A
dig @8.8.8.8 example.com A

On Windows without dig, try nslookup example.com 1.1.1.1. Public resolver tests send the queried hostname to that resolver.

Result What it tells you Next check
NXDOMAIN The queried name is reported as nonexistent Spelling, delegation, missing hostname and negative caching
NOERROR, no requested records The query succeeded but returned no record of that type A versus AAAA, CNAME target and the exact hostname
SERVFAIL The resolver could not complete the lookup DNSSEC validation and authoritative-server health
Timeout No response arrived in time Network access and nameserver reachability
Expected IP returned Address lookup works through that resolver Hosting, TLS, redirects and application configuration

Step 2: Check nameservers

dig example.com NS
dig +trace example.com A

Compare the registrar's delegation with the nameservers assigned by your DNS host. A zone edited at a provider that is no longer authoritative will not fix public DNS. Trace queries can be blocked by some networks; a failed trace alone is not proof of a broken domain.

Query one of the assigned authoritative servers directly:

dig @ns1.example.net example.com A

Use the actual nameserver hostname from your provider in place of ns1.example.net.

Step 3: Check domain status

Check the registration and registrar in Domain Details, then open the registrar account. clientHold or serverHold can stop DNS publication. Resolve the registrar's stated cause, such as an outstanding verification requirement. If registration expired, use the expired-domain recovery guide promptly.

Common Causes

1. Incorrect or Missing DNS Records

Compare the authoritative A, AAAA and CNAME answers with the values supplied by your host. Check both the root domain and www. An old AAAA record can send IPv6 visitors to the wrong server even when the A record is correct. Preserve unrelated MX and TXT records when repairing website records.

2. Misconfigured Nameservers

Correct the delegation at the registrar and make sure the intended DNS provider has an active zone containing your records. Follow how to change nameservers when moving providers; copy needed website and email records before the switch.

3. DNS Propagation Delays

DNS caches expire according to TTLs; there is no universal waiting period that repairs every DNS problem. A missing record can also remain negatively cached after you add it. If authoritative answers are correct but recursive answers differ, use slow DNS propagation troubleshooting. Flushing your device cache does not clear caches at your ISP or a public resolver.

4. Expired or Suspended Domain

Renew or restore through the current registrar if still eligible. For a hold, ask support what must be resolved. Renewing registration does not by itself restore deleted hosting files or a missing DNS zone.

5. DNSSEC Misconfiguration

A stale DS record after a DNS-provider change can cause validating resolvers to return SERVFAIL. Compare:

dig @8.8.8.8 example.com A +dnssec
dig @8.8.8.8 example.com A +dnssec +cd

If the second succeeds while the first fails, investigate the DNSSEC chain. +cd disables validation for that diagnostic query; it does not fix the domain. Coordinate DS and DNSKEY changes with your registrar and DNS host rather than blindly disabling DNSSEC.

Key Takeaways

Start with the response status, verify authoritative answers, then investigate caching. If you contact support, include the failing hostname, record type, timestamp, resolver used and full diagnostic output. Never include account passwords or API keys.

Sources

Reviewed 26 November 2026: