Bridge CDN
On this page

What is NXDOMAIN, exactly?

NXDOMAIN stands for "non-existent domain". Every DNS reply carries a response code (RCODE), and NXDOMAIN is RCODE 3. It's a definite answer, not a failure. An authoritative server looked in its zone and found no such name, with no record of any type.

That's different from NODATA. With NODATA, the name exists but has no record of the type you asked for. You queried AAAA, and only an A record is there. NODATA comes back as NOERROR with an empty answer section. Confusing the two sends people looking in the wrong place.

The same error shows up under different labels:

  • dig: status: NXDOMAIN in the header line;
  • nslookup: server can't find www.example.com: NXDOMAIN;
  • Chrome: DNS_PROBE_FINISHED_NXDOMAIN on a "This site can't be reached" page.

Is it your device or the domain?

Ask a public resolver before you change anything:

dig @1.1.1.1 www.example.com A

If the public resolver returns NOERROR with an address, the domain is fine. The NXDOMAIN error is coming from your side. Typical local culprits are:

  • an old negative answer in the system cache;
  • an entry in the hosts file;
  • a VPN or filter with its own DNS;
  • a company resolver that adds a search domain to short names, turning intranet into intranet.corp.example.com.

Flush the cache and retry. The quick fixes for your own device list the commands for Windows, macOS and Linux.

If the public resolver also returns NXDOMAIN, the problem is in DNS itself. Keep reading.

What causes an NXDOMAIN error for a domain?

These are the causes we see most, roughly in order of frequency:

  1. A typo. In the query, in the link, or in the record name. exmaple.com really doesn't exist.
  2. The record was never created. shop.example.com needs its own record. A record for example.com doesn't cover it unless you add a wildcard.
  3. The record is in the wrong zone. You added it at your old DNS host, but the domain is now delegated to Bridge, or the reverse.
  4. A CNAME points at a name that doesn't exist. The alias resolves, and then the target returns NXDOMAIN. The resolver passes that answer on.
  5. The domain expired or is on a registry hold. The registry removes the delegation. Then the whole domain returns NXDOMAIN from the TLD servers. Check the RDAP or WHOIS status for clientHold or serverHold.
  6. The name was looked up before it existed. The resolver cached the negative answer and keeps serving it for a while (see below).

How to confirm the cause with dig

Start with a plain query and read the header and the AUTHORITY section:

dig www.example.com A

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41522
;; AUTHORITY SECTION:
example.com.   300   IN   SOA   ns1.bb-ns.com. hostmaster.example.com. ( ... )

The SOA in the AUTHORITY section tells you which zone gave the answer. Here, it was the zone on Bridge. If the SOA names another provider's nameserver, the domain is still delegated there, and your Bridge records aren't being used yet.

Then follow the delegation from the root:

dig www.example.com A +trace

If the trace stops at the TLD with NXDOMAIN, the domain itself has no delegation. Look at the registrar: it may have expired, been suspended, or never had nameservers set. If the trace reaches the Bridge nameservers, ask one directly:

dig @ns1.bb-ns.com www.example.com A

NXDOMAIN here means the record really is missing from the zone. Add it in the zone editor.

How to fix an NXDOMAIN error

What you found Fix
Typo in the name or the link Correct the spelling. Nothing to change in DNS.
Record missing in the Bridge zone Add the record. It's served within seconds.
Record exists, but the domain is delegated elsewhere Add it at the provider that's actually delegated, or check the NS records and delegation
CNAME target doesn't exist Fix the target name, or create the record it points to
Domain expired or on hold Renew it, or resolve the hold with the registrar
Correct now, still failing for some people Wait out negative caching, explained below

Why NXDOMAIN can linger after the fix

Resolvers cache "doesn't exist" too. RFC 2308 says the negative answer lives for the smaller of two values: the TTL of the SOA record and the SOA's minimum field. The SOA record sets both.

So if someone tried shop.example.com before you created it, their resolver may keep answering NXDOMAIN for a few minutes after the record goes live. You can see the remaining time in the TTL column of the SOA line in that resolver's answer. It counts down on every query.

Testing a brand-new name? Query the authoritative server directly first, as shown above. That way you don't seed your own resolver with a negative answer.

NXDOMAIN error questions

What is NXDOMAIN?

NXDOMAIN is DNS response code 3, meaning "non-existent domain". The server that answered found no record of any type for that name in its zone. It's a definite answer, unlike SERVFAIL, which means no trustworthy answer could be obtained.

What does "server can't find NXDOMAIN" mean in nslookup?

It means the resolver nslookup asked returned NXDOMAIN for that name. Check the spelling first. Then query the domain's authoritative nameserver directly to see whether the record exists in the zone.

How do I fix "DNS probe finished NXDOMAIN" in Chrome?

Test the name with a public resolver like 1.1.1.1. If that works, flush your system DNS cache and clear Chrome's host cache at chrome://net-internals/#dns. If the public resolver also fails, the record or the domain's delegation needs fixing.

What is the difference between NXDOMAIN and SERVFAIL?

NXDOMAIN says the name doesn't exist. SERVFAIL says the resolver couldn't get a valid answer at all, often because of a signature failure or unreachable nameservers. See SERVFAIL: meaning and fixes.

How long does an NXDOMAIN answer stay cached?

For the smaller of the SOA record's TTL and its minimum field, per RFC 2308. Many public resolvers also cap negative caching. Once that time passes, the resolver asks again and picks up your new record.

Can NXDOMAIN mean my domain has expired?

Yes. When a domain expires or is placed on hold, the registry stops publishing its delegation, and the TLD servers return NXDOMAIN for every name in it. Check the domain's status in RDAP or WHOIS.

If a record exists but still won't resolve, continue with DNS record not resolving.