DEV Community

Cover image for How to Fix ERR_NAME_NOT_RESOLVED (What It Means and Why It Happens)
Baleeghuddin shaikh
Baleeghuddin shaikh

Posted on

How to Fix ERR_NAME_NOT_RESOLVED (What It Means and Why It Happens)

Chrome shows "This site can't be reached" with ERR_NAME_NOT_RESOLVED underneath. On Android it often appears as "Webpage not available."

The site may be perfectly fine. The error only tells you that your device couldn't find it.

What ERR_NAME_NOT_RESOLVED Means

The browser asked a DNS server for the website's IP address and didn't get a usable answer. Without an IP address, it has nowhere to connect.

The cause can be your phone, browser, Wi-Fi or DNS settings, or the domain itself (expired, or missing DNS records).

The Short Version

  • Open the site on a different network (mobile data instead of Wi-Fi). If it loads, the problem is your device or network.
  • If it fails everywhere, the domain has a DNS problem.
  • On Android, the most common cause is Private DNS. Set it to Automatic or Off.

ERR_NAME_NOT_RESOLVED vs DNS_PROBE_FINISHED_NXDOMAIN

Both mean the domain couldn't be turned into an IP address. ERR_NAME_NOT_RESOLVED is the basic error, common on Android, other Chromium browsers and in the dev console for failed resources. DNS_PROBE_FINISHED_NXDOMAIN appears when desktop Chrome runs an extra check and confirms the domain doesn't exist. Here's a full DNS_PROBE_FINISHED_NXDOMAIN guide.

Fix It on Android

  1. Private DNS: Settings → Network & internet → Private DNS → Automatic (or Off to test).
  2. Switch Wi-Fi ↔ mobile data. If one works, the failing network is the problem.
  3. Clear Chrome's site data: Settings → Site settings → All sites → the site → clear.
  4. Turn off VPN / ad-blocker / DNS changer apps.
  5. Restart the phone.

Fix It on Windows and Mac

  1. Flush DNS:
# Windows
ipconfig /flushdns

# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Enter fullscreen mode Exit fullscreen mode
  1. Clear Chrome's cache at chrome://net-internals/#dns → Clear host cache.
  2. Switch DNS to 8.8.8.8 / 8.8.4.4 or 1.1.1.1 / 1.0.0.1.
  3. Check the hosts file (C:\Windows\System32\drivers\etc\hosts or /etc/hosts) for the domain.
  4. Restart your router.

If the Site Fails Everywhere

Run the domain through a DNS lookup. No A record means no IP to connect to; NXDOMAIN means the domain doesn't exist in DNS.

Then check its WHOIS record. clientHold, serverHold or redemptionPeriod means it's suspended or expired.

If It's Your Own Site

  1. Confirm the domain is renewed.
  2. Nameservers at the registrar must match your host or Cloudflare.
  3. An A record (or CNAME for www) must point to your server.
  4. Recent changes? Allow time for DNS propagation.

Originally published at Web Tools Realm.

Top comments (0)