NO ADDRESS, NO WEBSITE

Domain not resolving: NXDOMAIN versus SERVFAIL, delegation and DNSSEC mistakes, expired domains and how to diagnose it with dig

When a domain does not resolve, no browser, crawler or API client can reach anything on it. This guide shows how to tell NXDOMAIN from SERVFAIL, find broken delegation, failed DNSSEC validation and expired registrations with dig and public resolvers, and why waiting for propagation rarely fixes it.

Concept illustration of a three-tier ivory ceramic sorting cabinet linked by a glowing mint thread that passes through two tiers and stops at an empty glass pigeonhole, with a small copper loupe resting beside it.
Concept illustration

When a browser shows "This site can't be reached" with DNS_PROBE_FINISHED_NXDOMAIN, or a monitoring tool reports that a domain does not resolve, the problem sits in front of every web server, certificate and CDN you run: nothing returned an IP address for the name. Without an address there is no connection, so the website, the API and anything else on that hostname is unreachable for whoever hit the failure.

"Does not resolve" covers several different faults. The name may not exist at all (NXDOMAIN), a resolver may have failed to get a trustworthy answer (SERVFAIL), the name may exist without address records, the delegation from the parent zone may point to the wrong nameservers, DNSSEC validation may be failing, or the registry may have pulled the domain from its zone after an expiry or suspension. Each fault leaves a distinct signature in dig output, and the fix usually lives in a different place: your DNS provider, your registrar, or your own machine.

This guide explains how to tell these cases apart with dig and public resolvers, how to fix each one on common setups, why "waiting for propagation" is usually the wrong explanation, and how to verify the result. All examples use example.com and placeholder nameserver names; substitute your own.

Scope of this guide

This guide covers public DNS as seen from outside: resolver answers, delegation, DNSSEC and registration status. Sitelemetry's check is one address lookup from its own resolver at scan time; it cannot see internal or split-horizon DNS and is not a pentest.

1. What "does not resolve" actually means

Your browser hands the name to the operating system's stub resolver, which forwards the question to a recursive resolver: the one on your router, your ISP, your company network, or a public service such as 8.8.8.8, 1.1.1.1 or 9.9.9.9. As described in RFC 1034, the recursive resolver walks the hierarchy. The root servers refer it to the servers for .com, those refer it to the nameservers delegated for example.com, and those authoritative servers return the answer. Every step is cached for the time-to-live (TTL) of the records involved.

That gives three places where resolution can break:

  • The delegation in the parent zone. The NS records for your domain in the TLD zone, which you control through your registrar. If the registry stops publishing them, or they point to servers that do not host your zone, nothing below works.
  • The zone itself. The records on your authoritative nameservers, usually managed in your DNS provider or CDN dashboard: missing A/AAAA records, typos, a CNAME that points nowhere, broken DNSSEC signatures.
  • The path in between. The recursive resolver, its DNSSEC validation, cached negative answers, and on your own machine the hosts file, VPN, browser DNS-over-HTTPS setting or a filtering service.

One more detail matters from the start: every hostname is looked up on its own. example.com and www.example.com are two separate names, and it is common for one to resolve while the other does not.

2. NXDOMAIN, SERVFAIL and the other answers you will see

A DNS response carries a response code (RCODE), defined in RFC 1035. dig prints it as status: in the header line, and it is the first thing to read:

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41921
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
What dig showsWhat it meansTypical causesWhere to look first
status: NXDOMAINAn authoritative source says the name does not exist (RCODE 3, Name Error)Typo in the name, record never created or deleted, domain removed from the TLD zone after expiry or a hold, CNAME pointing to a deleted targetRegistration status, then the zone at your DNS provider
status: NOERROR, ANSWER: 0The name exists but has no record of the requested type; RFC 2308 calls this NODATAOnly MX or TXT records at the apex, an A record but no AAAA (or the reverse), records created on a different nameThe zone at your DNS provider
status: SERVFAILThe resolver could not produce a valid answer (RCODE 2, Server failure)DNSSEC validation failure, nameservers that do not answer or refuse the zone, missing glueDNSSEC and delegation (sections 4 and 6)
status: REFUSEDThe server you asked will not answer this queryAsking a nameserver directly that does not host the zone (a lame delegation), or a resolver that only serves its own networkNameserver assignment at your provider
connection timed out; no servers could be reachedNo response at allFirewall or network blocking port 53, resolver down, nameserver addresses that do not existLocal network first, then nameserver addresses
status: NOERROR with an addressDNS works; the problem is elsewhereFirewall, TLS, CDN or origin errors, or a stale address in a local cacheThe connection, not DNS

Chrome's DNS_PROBE_FINISHED_NXDOMAIN page appears when the browser's lookup comes back as name not found. Confirm it with dig before changing anything, because a hosts-file entry, a VPN, a content filter or a browser-level DNS-over-HTTPS resolver can produce the same page for a name that resolves fine elsewhere. Filtering resolvers may say so explicitly: RFC 8914 Extended DNS Errors defines codes such as Blocked, Filtered and DNSSEC Bogus, and recent versions of dig print them as an EDE: line in the OPT pseudosection.

3. Diagnose it step by step with dig and public resolvers

  1. Ask your normal resolver, for both names. Use full output, not +short, which hides the status.
    dig example.com A
    dig www.example.com A
  2. Ask several public resolvers. If they all agree with you, the problem is in public DNS. If they work and your machine does not, the problem is local.
    dig @8.8.8.8 example.com A
    dig @1.1.1.1 example.com A
    dig @9.9.9.9 example.com A
  3. Follow the delegation from the root. +trace makes dig do the walk itself and prints each referral, so you see where the chain stops: at the TLD (domain not delegated), at your nameservers (zone problem), or with an error in between.
    dig +trace example.com A
  4. Ask every authoritative nameserver. +nssearch queries each listed nameserver for the SOA record. Servers that time out, or report different serial numbers, point to a delegation or synchronisation problem.
    dig +nssearch example.com
  5. Check DNSSEC if any resolver returns SERVFAIL (section 6).
  6. Check registration status if the TLD servers return NXDOMAIN for the domain itself (section 7).

On Windows without dig, PowerShell gives similar answers:

Resolve-DnsName example.com -Type A -Server 1.1.1.1
nslookup example.com 8.8.8.8

Before you blame public DNS, rule out the local machine: look for entries in /etc/hosts or C:\Windows\System32\drivers\etc\hosts, disconnect from VPNs, and check whether the browser uses its own secure DNS provider. A hosts entry can also hide a real outage, because the site keeps working on your laptop while it fails for everyone else.

4. Delegation and nameserver mistakes

The delegation is the set of NS records the registry publishes for your domain, based on the nameservers you set at your registrar. It must match the servers that actually host your zone. You can read it straight from the parent, without any cache in the way:

dig NS com +short
dig @a.gtld-servers.net example.com NS +norecurse
dig @ns1.dns-provider.example example.com SOA +norecurse

The first command lists the servers for .com (use your own TLD). The second asks one of them for your delegation; the answer arrives as a referral in the AUTHORITY section. The third asks one of your listed nameservers directly: a correct answer has status: NOERROR and the aa (authoritative answer) flag. A server that answers REFUSED or without aa is a lame delegation.

The usual mistakes:

  • Nameservers changed in one place only. You moved DNS to a new provider or CDN but the registrar still lists the old nameservers, and the old account or zone has since been deleted. Or the reverse: the registrar points to the new provider before the zone exists there.
  • Mixed nameservers. Two from the old provider, two from the new one. Resolvers pick servers somewhat at random, so the site works for some visitors and fails for others, which looks like an intermittent outage.
  • Typos in nameserver names, or nameserver hostnames that do not resolve themselves.
  • Missing or stale glue. If your nameservers live inside the domain they serve, such as ns1.example.com for example.com, the parent needs their IP addresses as glue records. Registrars call these host records or child nameservers. If you renumber those servers and forget the glue, resolvers cannot reach them and usually return SERVFAIL.
  • Zone never provisioned. Some providers assign specific nameserver names per account or per zone. Delegating to a generic set, or to the names from another account, gives REFUSED.

Fix the delegation at the registrar so it lists exactly the nameservers your provider assigned, confirm each one answers with aa, and keep the old provider's zone serving identical data until resolvers have dropped the old NS records (section 8).

5. Record mistakes inside the zone

When the delegation is fine but your hostname still fails, the zone content is the next suspect.

  • The record was created under the wrong name. In zone files, a name without a trailing dot is relative to the zone, so www.example.com inside the example.com zone becomes www.example.com.example.com. Many dashboards append the domain automatically, which causes the same doubling if you type the full name. Query the doubled name with dig to confirm.
  • No address record at the apex. Moving a site sometimes deletes the apex A record while MX and TXT records remain. The name exists, so resolvers return NODATA, and most applications report that as "not found".
  • A CNAME at the apex. RFC 1034 does not allow a CNAME to coexist with other data at the same name, and the apex always has SOA and NS records. Use A/AAAA records or your provider's ALIAS, ANAME or CNAME-flattening feature instead.
  • A CNAME that points nowhere. shop.example.com aliases a hosting, storage or SaaS hostname that was deleted when the service was cancelled, so the chain ends in NXDOMAIN. This is also a security issue: if someone else can claim that target name, they can serve content on your subdomain. Remove or repoint dangling CNAMEs as soon as a service is retired.
  • Split-horizon surprises. The name resolves inside the office from internal DNS, but the public zone never had the record.

Two cases look like DNS failures but are not: a record that points to a private address such as 10.0.0.5, and a name with only AAAA records reached from an IPv4-only network. Both resolve; the connection fails afterwards.

6. DNSSEC failures: SERVFAIL from validating resolvers

With DNSSEC, the parent zone publishes a DS record that fingerprints your zone's signing key, and your nameservers return signed answers. A validating resolver checks that chain, as specified in RFC 4035. If the chain is broken, the answer is treated as bogus and the resolver returns SERVFAIL rather than an answer it cannot trust. The major public resolvers validate, so a DNSSEC break typically shows up for many visitors at once.

The quickest test is the checking-disabled flag, which asks the resolver to skip validation:

dig @1.1.1.1 example.com A
dig @1.1.1.1 example.com A +cd
dig example.com DS +short
dig example.com DNSKEY +dnssec +multi

If the normal query returns SERVFAIL and the +cd query returns NOERROR with an address, validation is the problem. Compare the key tag in the DS output (the first number) with the key ids shown for the DNSKEY records; with +multi, dig prints them as comments. An Extended DNS Error such as DNSSEC Bogus, Signature Expired or DNSKEY Missing narrows it further. Visual tools such as DNSViz draw the whole chain.

Common causes and fixes:

  • Provider change with the DS record left behind. The new provider does not sign the zone, or signs it with different keys, while the registrar still publishes the old DS. Either enable signing at the new provider and replace the DS with the new value, or remove the DS at the registrar.
  • Expired signatures. Signatures carry an expiration time. If automated signing stopped, answers become bogus when the last signatures expire. Re-enable signing and check the expiry dates in the RRSIG records.
  • A key rollover done out of order, where the old key was removed before the new DS was visible in the parent.

After a DS change, resolvers may keep the old DS until its TTL runs out, so check the TTL in the parent's response. When moving providers, the safe order is to remove the DS first, wait out its TTL, switch nameservers, then sign again and publish the new DS.

7. Expired, suspended and on-hold domains

If dig +trace shows the TLD servers answering NXDOMAIN for the domain itself, the registry is no longer publishing a delegation. Check the registration record with an RDAP lookup at lookup.icann.org or with whois example.com, and read the expiry date and the status values. ICANN's EPP status code reference explains each one; the relevant ones here are:

  • clientHold: the registrar asked the registry not to publish the domain in the zone. Registrars commonly set it after expiry, after non-payment, or when the registrant's contact details have not been verified.
  • serverHold: the registry itself withholds the domain from the zone.
  • redemptionPeriod and pendingDelete: the registration has expired and is being deleted. Restoring from redemption is usually possible for a limited time, typically with a restore fee on top of renewal; once deletion completes, the name can be registered by anyone.

A recently expired domain does not always disappear. Some registrars point it at a parking page instead, so it resolves, but to an unrelated site. Grace periods and rules differ between registries and between generic and country-code TLDs, so check your registrar's terms. The domain expiry monitoring guide explains the lifecycle after expiry, and the guide to clientHold and serverHold covers holds in detail.

The fix is administrative: renew or restore the domain, complete any pending contact verification, and confirm with the registrar that the hold status is removed. Then verify with dig @a.gtld-servers.net example.com NS +norecurse (or your TLD's servers) that the delegation is published again. Resolvers that cached the NXDOMAIN keep it until the negative caching TTL expires.

8. Propagation myths: what TTLs and caches really do

DNS changes do not travel across the internet. When you edit a record, your authoritative nameservers serve the new data as soon as the provider publishes it. What you wait for is caches expiring:

  • Positive answers stay in a resolver's cache for the TTL of the record it received. A record with a TTL of 86400 can be served from cache for up to a day after you change it. Lower the TTL at least one old-TTL period before a planned change, and raise it again afterwards.
  • Negative answers are cached too. Under RFC 2308, an NXDOMAIN or NODATA answer is cached for the smaller of the SOA record's TTL and its MINIMUM field, the last number in dig example.com SOA. If anyone queried the name before you created it, they may keep seeing NXDOMAIN for that long.
  • Delegation changes depend on the TTL of the NS records in the parent zone, often hours to days. Read it in the parent's response rather than guessing, and keep the old nameservers serving correct data until it has passed.

Waiting only helps when the authoritative servers already return the right answer. If dig @ns1.dns-provider.example example.com A +norecurse returns the wrong data, or nothing, no amount of time will fix it. When the authoritative answer is right, you can speed things up: Google Public DNS offers a Flush Cache page, and local caches can be cleared with ipconfig /flushdns on Windows, sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS, resolvectl flush-caches on Linux with systemd-resolved, and "Clear host cache" at chrome://net-internals/#dns in Chrome.

9. Prevent it and verify the fix

Most resolution outages are change or renewal mistakes, so prevention is mostly routine:

  • Renewal. Turn on auto-renew, keep the payment method current, send expiry notices to a shared mailbox rather than one person, and make sure the registrant email is verified.
  • Account protection. Use two-factor authentication on registrar and DNS accounts and enable the registrar's transfer lock. Know who has access.
  • Change alerts. Alert on changes to NS and DS records, not only on the website being down.
  • Change procedure. Lower TTLs ahead of migrations, build the new zone completely before switching nameservers, handle DS records in the order from section 6, and remove CNAMEs when you cancel the service they point to.
  • A DNS health check before deploys. Resolve every production hostname against two public resolvers and each authoritative nameserver before releasing a change that depends on them.

To verify a fix: each authoritative nameserver returns the right A/AAAA answer with the aa flag; the parent lists exactly those nameservers; 8.8.8.8, 1.1.1.1 and 9.9.9.9 return NOERROR with an address without +cd; both the apex and www resolve; and the site loads over HTTPS from a network that is not your own, such as a phone on mobile data. Once names resolve, certificates and HTTPS come next; the TLS and security headers guide covers them.

10. What Sitelemetry checks

The dns security module runs in every scan profile on every plan: Free ($0), Starter ($49/month), Professional ($149/month) and Enterprise ($249/month). It is passive. It needs no ownership verification by itself: the free Launch Readiness Snapshot, where it is one of eight modules, and a Free account's security audit of an unverified site both run it, while a default security audit on a paid plan also runs checks that need a verified target.

  • It asks the operating system resolver of the scanning service for all addresses of the exact hostname you entered, using the same address lookup mechanism most programs use (Node.js dns.lookup).
  • If that lookup fails, it reports dns.resolve.failed with medium severity and high confidence. The evidence is the error code returned by the lookup, for example ENOTFOUND or EAI_AGAIN, or the error message when there is no code. The Node.js documentation notes that ENOTFOUND is not limited to names that do not exist, which is why the diagnosis steps above still matter.
  • A failed lookup stops the scan after the DNS step. No other module runs, and the report shows no security grade (N/A) with the reason "DNS cannot be resolved", so an unresolvable name is never presented as a score.
  • The finding explains that because the name does not resolve, the presence of the site cannot be verified and a security score would be misleading. It recommends checking the domain status, A/AAAA records, nameserver delegation and CDN or DNS provider settings, and suggests DNS monitoring, registrar expiry tracking, nameserver-change alerts and a DNS health check before deploys.
  • When the lookup succeeds, the module records the returned addresses and an approximate location for the first public IP address.

Limits: the module does not trace delegation, inspect DS or DNSKEY records, or compare answers across resolvers; it sees one lookup from one vantage point at scan time. Enter the hostname your visitors use, because the apex and www are checked separately. Because the scan stops at this step, the separate RDAP module, which reads the domain's public registration record, does not run either, so check the expiry date and status values yourself as described in section 7. For SPF, DMARC, MTA-STS and CAA, read the DNS and email security audit guide. Sitelemetry is an automated audit tool, not a penetration test.

Common questions

What does DNS_PROBE_FINISHED_NXDOMAIN mean for my website?

Chrome could not find an address for the name you typed because the lookup came back as name not found. Check with dig against public resolvers such as 8.8.8.8 and 1.1.1.1. If they also return NXDOMAIN, look at the domain's registration status and your DNS zone. If they return an address, the cause is local: a hosts file entry, VPN, filter or cached answer.

What is the difference between NXDOMAIN and SERVFAIL?

NXDOMAIN is a definite answer that the name does not exist, usually because of a missing record, a typo or a domain removed from the TLD zone. SERVFAIL means the resolver could not produce a valid answer at all, most often because of a DNSSEC validation failure or nameservers that do not answer correctly for the zone.

How long does DNS propagation take?

There is no fixed propagation time. Authoritative servers serve changes almost immediately; resolvers keep cached answers until each record's TTL expires. Negative answers are cached according to the SOA record, and nameserver changes depend on the TTL of the NS records in the parent zone. If the authoritative servers return the wrong answer, waiting will not help.

Why does my domain resolve on my phone but not on my laptop?

The two devices use different resolvers or caches. The laptop may have a hosts file entry, a VPN, a corporate or filtering resolver, a browser secure DNS setting or a cached negative answer. Compare dig results from the laptop with a query to a public resolver, flush the local cache and check the hosts file.

What does Sitelemetry do when my domain does not resolve?

The dns module, which runs on every plan and in the free Launch Readiness Snapshot, reports dns.resolve.failed with medium severity and the lookup error code as evidence. The scan stops at that point and no security grade is calculated, because the site's presence cannot be verified. Fix resolution, confirm it with dig, then run the scan again.

Sources & further reading

  1. RFC 1034: Domain Names, Concepts and Facilitieswww.rfc-editor.org
  2. RFC 1035: Domain Names, Implementation and Specificationwww.rfc-editor.org
  3. RFC 2308: Negative Caching of DNS Queries (DNS NCACHE)www.rfc-editor.org
  4. RFC 4035: Protocol Modifications for the DNS Security Extensionswww.rfc-editor.org
  5. RFC 8914: Extended DNS Errorswww.rfc-editor.org
  6. ICANN: EPP Status Codes, What Do They Meanwww.icann.org
  7. Google Public DNS: Flush Cachedevelopers.google.com
  8. Node.js documentation: DNS (dns.lookup)nodejs.org
Sitelemetry team

Prepared by the Sitelemetry editorial team. Explore the linked sources for further detail.

SITELEMETRY

Put what you learned to work.

Explore your website’s structure, settings and signals with Sitelemetry.