Skip to main content
DevOps Guide

What Is a DNS Error? Meaning, Causes, and How to Fix It

A DNS error means the step that turns a domain name into an IP address failed, so your browser never got as far as contacting the website. This guide covers the real DNS response codes (NXDOMAIN, SERVFAIL, REFUSED), the Chrome surface messages (DNS_PROBE_FINISHED_NXDOMAIN, ERR_NAME_NOT_RESOLVED), the overlap with “your connection is not private,” and how to fix one whether you are a visitor, a site owner, or on a PS5.

Rai Ansar · Founder of Visual SentinelApril 19, 202615 min read

Acefina LLC runs production monitoring on bare metal and spends a lot of time looking at DNS logs. “DNS error” is one of the most overloaded phrases in web support. It covers at least six different underlying failures, each with a different fix, and browsers do a mediocre job of telling you which one you just hit.

I wrote a companion piece on DNS server not responding which covers the specific case where your own resolver is unreachable. This guide is broader: everything the phrase “DNS error” can actually mean, how to read the error message you were given, and how to fix it from the right layer instead of blindly flushing a cache that was never the problem.

1. What a DNS Error Actually Is

Every time you type a domain name, your device has to translate it into an IP address before any bytes of HTTP can flow. That translation is the Domain Name System. A DNS error is any failure during that translation step. The request never reaches the website, because the device literally does not know where to send it yet.

Four layers are usually in the picture for a single lookup:

  • The stub resolver on your device (the operating-system DNS client).
  • A recursive resolver you are configured to use (your ISP, your router, or a public resolver like 1.1.1.1).
  • The root and TLD servers, which point the resolver toward whoever is authoritative for a zone.
  • The authoritative server for the domain itself, which actually holds the A, AAAA, MX, TXT, CNAME, and NS records.

A DNS error can originate at any of those layers. That is why the fix depends on which layer broke, and why “just flush your DNS cache” helps only when a stale cached answer is the problem. The browser collapses all of those failure modes into a single short string, so the first job when you hit a DNS error is to figure out which layer the message actually came from.

2. The Six DNS Response Codes You Actually See

RFC 1035 defines the first six DNS response codes (RCODEs), 0 to 5, which DNS servers use to answer a query. Later RFCs added more codes to the IANA registry, but these six are the ones you will see. Most of what browsers, consoles and operating systems call a “DNS error” maps back to one of them, or to a lookup that got no answer at all.

RCODEMeaningWhat it actually points at
NOERROR (0)SuccessThe server answered without an error. If the answer holds the address you expect and the browser still errors, something after DNS broke (TCP, TLS, HTTP). A name that exists but has no record of the type you asked for also returns NOERROR, with an empty answer.
FORMERR (1)Format errorThe server could not read the query. Usually a client bug, or an old server or firewall that does not understand newer query options (EDNS). Not something a visitor triggers.
SERVFAIL (2)Server failureThe resolver could not complete the lookup. The authoritative server timed out or returned junk, or the answer failed DNSSEC validation. Points at the domain’s DNS servers or its DNSSEC or delegation setup, not at a missing name.
NXDOMAIN (3)Name does not existDefinite answer: nothing exists at this name, no record of any type. Domain expired, typo, or the name’s last record was deleted.
NOTIMP (4)Not implementedThe authoritative server does not support the query type (rare in modern DNS). Retry with a different record type or resolver.
REFUSED (5)RefusedThe authoritative server refused to answer. Usually ACLs, firewall rules, or the server simply is not authoritative for the zone you queried.

Two of these do most of the damage in practice. NXDOMAIN means the answer was “this name does not exist,” so check the name, its records and the domain registration first. SERVFAIL means the resolver could not get a usable answer, so check the domain’s name servers, DNSSEC and delegation first. Mixing them up sends you to the wrong fix.

3. Chrome Error Messages and What They Really Mean

Chrome (and the rest of Chromium: Edge, Brave, Opera) dresses DNS failures with its own error names. The surface text does not always match the underlying RCODE cleanly. Here is how to translate the most common Chrome messages back to what the DNS layer actually said.

DNS_PROBE_FINISHED_NXDOMAIN

Chrome could not resolve the name, then checked that your DNS answers for other names, so it treats this name as not existing. Check typos, domain registration status, and whether an A/AAAA record is missing.

DNS_PROBE_FINISHED_NO_INTERNET

Chrome tried to resolve the name, the underlying connection never came back, and Chrome cannot reach any DNS at all. Most often the device is offline or the resolver is blocked.

DNS_PROBE_FINISHED_BAD_CONFIG

Chrome decided the configured DNS setup on the machine is broken. Switching to a public resolver (1.1.1.1 or 8.8.8.8) fixes most of these.

ERR_NAME_NOT_RESOLVED

The generic Chromium error for "no address came back." Chromium uses it for most failed lookups, whether the answer was NXDOMAIN, an empty answer or SERVFAIL, or no answer came at all; the message just drops the specifics.

ERR_CONNECTION_TIMED_OUT (after DNS)

Not a DNS error strictly. DNS returned an IP, but the TCP connection to that IP never opened. Common when DNS is pointing at an old or misconfigured origin. Worth checking after ruling out DNS.

NET::ERR_CERT_COMMON_NAME_INVALID

The server sent a certificate that does not cover the hostname you typed. Often the certificate is missing that name (www, for example), but a stale A record or a DNS hijack that points you at the wrong server causes it too.

Firefox and Safari use different wording (“Server not found,” “Safari can’t find the server”) for the same kind of failure. One difference: a browser with its own DNS-over-HTTPS setting, such as Firefox in the US, can ask a different resolver than your system does. When Chrome says DNS_PROBE_FINISHED_NXDOMAIN and Firefox says “Server not found” on the same URL, you are looking at one DNS failure, not two.

4. DNS Errors That Look Like “Your Connection Is Not Private”

Some DNS problems show up as SSL warnings. The browser says “your connection is not private” or shows NET::ERR_CERT_COMMON_NAME_INVALID, and the obvious instinct is to blame the certificate. Sometimes the certificate is fine, and DNS is pointing you at the wrong server.

The sequence goes like this. DNS resolves example.com to an IP. The browser connects to that IP. The server at that IP presents a TLS certificate. The browser checks whether the certificate matches the hostname the user typed. If it does not match, the browser aborts and surfaces a certificate warning. The DNS step “succeeded” in the sense that it returned an answer, but it returned the wrong answer, and the downstream damage is visible as an SSL problem.

Three patterns cause this:

  • Stale A record. The site moved to a new host but the DNS still points at the old one. The old IP is now serving a different site entirely, with a certificate for a different hostname.
  • DNS hijack at the network layer. A compromised router, a malicious ISP DNS, or a captive portal rewrites DNS answers. The browser gets pointed at an IP the attacker chose.
  • Split-horizon mismatch. An internal DNS server gives a different answer from the public one, usually a private IP, and the internal server at that IP has a certificate for a different name.

If the SSL warning goes away when you query a different DNS resolver, the root cause was DNS, not TLS. Worth checking before reissuing a certificate for a site whose cert was already valid. For the pure certificate cases, my SSL error guide covers the full matrix.

5. If You’re a Visitor: What You Can Actually Do

Most visitor-side DNS errors are local (your device, router, or resolver), not the site’s fault. Work through these in order. Each step either fixes it or narrows the cause.

Step 1. Try the site on a different network

Tether off mobile data. If the site loads on cellular but not your WiFi, the problem is your home router, ISP, or local resolver, not the site.

Step 2. Flush your OS and browser DNS cache

A stale negative cache (your machine remembering “this name did not exist”) can survive long after the site is reachable again.

# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

# Windows (admin CMD)
ipconfig /flushdns

# Chrome internal cache
chrome://net-internals/#dns  ->  Clear host cache

Step 3. Switch to a public resolver

Set your device or router DNS to Cloudflare (1.1.1.1, 1.0.0.1) or Google (8.8.8.8, 8.8.4.4). This gets you around an ISP or router resolver that has stopped answering, which is what “DNS server not responding” means.

Step 4. Test resolution with dig or nslookup

Force a lookup against a known-good resolver. If this works but your browser still errors, the problem is on your machine: a cached answer, the hosts file, a VPN, or the browser’s own secure DNS setting.

dig @1.1.1.1 example.com
nslookup example.com 8.8.8.8

Step 5. Restart the router, then the modem

Unplug both, wait 30 seconds, plug the modem in first, wait for it to fully come up, then the router. If your router hands out its own address as the DNS server, it passes every lookup on, and a restart clears one that has stopped answering.

Step 6. Disable VPN, proxy, and browser extensions temporarily

VPN clients, DNS-over-HTTPS extensions, and some adblockers intercept DNS. If turning them off clears the error, one of those is rewriting your lookups or pointing at a broken resolver.

6. If You Run the Site: Where to Look First

If visitors are hitting DNS errors, the diagnosis tree looks different. You need to know whether the authoritative DNS is answering correctly, and if it is, whether the answer has reached the resolvers users actually hit.

Start with the authoritative layer. Query the nameservers listed for your zone directly, not through a recursive resolver:

# Get the NS records for your zone
dig NS example.com +short

# Ask each NS directly for the A record
dig @ns1.example.com A example.com
dig @ns2.example.com A example.com

# Check SERVFAIL signals (DNSSEC, delegation)
dig example.com +dnssec
dig example.com +trace

A few concrete patterns account for most site-owner DNS errors:

  • Expired domain. Renewing at the registrar is the only fix. Depending on how long ago it expired, the name points at a registrar parking page or returns NXDOMAIN on every resolver.
  • Broken DNSSEC. A signing mistake, a rolled key not picked up by the parent, or a mismatched DS record produces SERVFAIL on validating resolvers (1.1.1.1, 8.8.8.8) but may still work on non-validating ones. Users on major resolvers see the error; you on your workstation might not.
  • Missing or mistyped record. Someone edited the zone and removed the A record for the apex, or pointed a CNAME at a name that no longer exists. Verify with dig A example.com directly against the authoritative NS.
  • TTL timebomb. A record was changed, but the old TTL was a day long. Users with fresh lookups see the new answer; users with cached old answers see the old IP (now dead) and get errors until the TTL expires.
  • NS delegation drift. The name servers set at your registrar differ from the ones your DNS provider actually serves the zone on. Lookups chase the bad delegation and time out or fail.
  • Single NS provider outage. All your authoritative NS are at one provider, and that provider is having a day. RFC 2182 asks for name servers in separate networks and places, and a second DNS provider is one way to get that.

Once the authoritative answer is right, verify propagation. A tool like dnschecker.org queries recursive resolvers around the world. If 90% of regions return the new record and 10% still return the old one, you are mid-propagation and the answer is simply “wait out the TTL.”

7. PS5, Xbox, Smart TVs: DNS Errors on Consoles

Before changing DNS on a console, rule out an outage: Xbox Live status, PlayStation Network status.

Consoles and smart TVs use whatever DNS server the router hands out. A router that runs a DNS forwarder hands out its own address and passes lookups on to the ISP, so a stuck router or a failing ISP resolver breaks every device on the network. Fix it by setting DNS on the console itself.

PS5 DNS error fix

  1. Settings → Network → Settings → Set Up Internet Connection
  2. Pick your connection → Options → Advanced Settings
  3. DNS Settings: Manual
  4. Primary DNS: 1.1.1.1
  5. Secondary DNS: 8.8.8.8
  6. Save, then run the connection test

Xbox DNS error fix

  1. Settings → Network settings → Advanced settings
  2. DNS settings: Manual
  3. Primary IPv4 DNS: 1.1.1.1
  4. Secondary IPv4 DNS: 8.8.8.8
  5. Save and restart the console

Wired Ethernet instead of WiFi also helps on consoles. Lookups travel over UDP, and dropped WiFi packets can make them time out, which looks like a DNS error.

8. Diagnosing a DNS Error with dig and nslookup

Browser errors hide the useful data. dig shows you the actual RCODE, which resolver answered, the TTL, whether DNSSEC validated, and the full path of the lookup. If you only learn one diagnosis tool, learn this one.

# Basic A-record lookup against a specific resolver
dig @1.1.1.1 example.com

# Force a +trace to walk root -> TLD -> authoritative
dig example.com +trace

# Check if DNSSEC validation is the problem
dig example.com +dnssec +cd    # +cd disables validation
dig example.com +dnssec        # with validation; compare RCODEs

# Ask for one type at a time: many servers no longer answer ANY in full (RFC 8482)
dig example.com AAAA

# MX records (often broken independently of A records)
dig example.com MX

# Reverse DNS: the name the IP's owner set for it (a hint, not proof)
dig -x 192.0.2.1

Read the output’s status: field. That is the RCODE. NOERROR with the address you expect means DNS worked, and any error you see is downstream. NXDOMAIN, SERVFAIL, and REFUSED each point at a different fix.

For Windows users without dig, nslookup ships with the OS and gives you the essentials. PowerShell’s Resolve-DnsName example.com -Server 1.1.1.1 is a closer match to dig’s output if you want structured detail.

9. How to See DNS Errors Before Your Users Do

The thing that makes DNS errors painful is not the error itself, it is the lag between the first user hitting one and someone on your team finding out. A broken DNS record can stay broken for hours before a human types the URL and notices. Continuous DNS monitoring closes that gap.

Catching DNS errors externally

Visual Sentinel resolves your domain on every uptime check from Europe, the US and Asia Pacific (Asia Pacific on paid plans) and, on paid plans, compares A, AAAA, MX, CNAME, TXT and NS records every six hours and alerts when one changes or disappears. Uptime checks identify as VisualSentinelBot/2.0 and come from the addresses listed on that page, so you can allow them in your firewall. Alerts go to email on every plan, and paid plans add Slack, Discord, Telegram, WhatsApp, webhooks and more.

Try DNS monitoring free for 10 days

Structurally, the practices that cut DNS-error incidents over time: keep registrar auto-renew on, use two authoritative DNS providers on different infrastructure, lower TTLs 24 hours before planned record changes and raise them back afterwards, sign your zone with DNSSEC but test the signing chain before publishing DS records, and monitor NS reachability along with the records themselves. Each of those five closes one of the failure paths in section 6.

Catch DNS failures before visitors see "site not found"
Every plan checks public HTTP and SSL. Solo at $15 a month, with a 10-day free trial (no card with a work email), adds six-hour history for selected A, AAAA, MX, CNAME, TXT, and NS records through one service resolver. Use authoritative-provider logs and targeted resolver tests when you need propagation evidence.

10. Frequently Asked Questions

A

Rai Ansar

Founder of Visual Sentinel

Rai Ansar is the founder of Visual Sentinel. He writes about website monitoring, reliability, and catching the failures that uptime checks miss. More from Rai Ansar.

To keep an eye on your own site, see how Visual Sentinel checks a whole website, including pages that load but look broken.

See your site checked

Add your site and we check its uptime, SSL certificate and screenshots free for 3 days. Then try a paid plan free for 10 days (no card with a work email) or subscribe, from $15 USD a month.

Check my site free