ERR_NAME_NOT_RESOLVED: What It Means and How to Fix It

ERR_NAME_NOT_RESOLVED is a DNS lookup failure error that appears in Chrome and Chromium-based browsers when the browser cannot translate a domain name into an IP address. This guide explains every cause and walks you through each fix in order of likelihood.

What Causes ERR_NAME_NOT_RESOLVED

Every website visit starts with a DNS lookup — your device asks a DNS resolver "what is the IP address for this domain?" If that query fails, the browser shows ERR_NAME_NOT_RESOLVED. The failure can originate from several places:

CauseWho is affectedLikely fix
Stale DNS cache on your deviceOne device onlyFlush DNS cache
ISP DNS resolver is slow or downAll devices on same networkSwitch to Google/Cloudflare DNS
Domain has expired or DNS records deletedEveryone worldwideCheck domain registration
Hosts file overrideOne device onlyEdit hosts file
VPN or proxy routing DNS incorrectlyOne device onlyDisconnect VPN/proxy
Corrupt browser DNS cacheOne browser onlyClear browser cache / chrome://net-internals
Firewall blocking port 53 (DNS)All devices on networkCheck firewall rules

Quick Diagnostic Checklist

Before working through each fix, answer these questions to narrow down the cause:

  • Does the error affect every website, or just one? → If just one, the domain's DNS records are likely the issue.
  • Does it affect every device on your network, or just one? → If every device, the problem is your router or ISP DNS.
  • Did it start after enabling a VPN? → Disconnect the VPN first.
  • Did it start after a system update or network configuration change? → Reset the network stack.
  • Can you ping the domain from a terminal? → If ping fails, it's a DNS issue. If ping succeeds, it's browser-specific.

Fix 1 — Flush DNS Cache

Your operating system caches DNS responses to speed up browsing. If a cached entry is stale or corrupt, flushing it forces a fresh lookup.

Windows

Command Prompt (Run as Administrator)
ipconfig /flushdns
ipconfig /release
ipconfig /renew

macOS

Terminal
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

Linux (systemd-resolved)

Terminal
sudo systemd-resolve --flush-caches
sudo systemd-resolve --statistics
After flushing, open a new browser tab and try the URL again before moving to the next fix.

Fix 2 — Change DNS Server

Your ISP's DNS resolver may be slow, overloaded, or blocking certain domains. Switching to a public resolver is one of the most effective fixes.

ProviderPrimary DNSSecondary DNS
Google8.8.8.88.8.4.4
Cloudflare1.1.1.11.0.0.1
OpenDNS208.67.222.222208.67.220.220

Change DNS in: Windows → Network Adapter Settings → IPv4 Properties | macOS → System Settings → Network → DNS | Router admin panel → WAN DNS settings (affects all devices)

Fix 3 — Reset Network Stack

A corrupted TCP/IP stack or Winsock catalogue can cause DNS resolution failures even when the DNS server itself is reachable.

Windows

Command Prompt (Run as Administrator)
netsh winsock reset
netsh int ip reset
ipconfig /flushdns
Restart-Computer

macOS

Terminal
sudo ifconfig en0 down
sudo ifconfig en0 up

Fix 4 — Check the Hosts File

The hosts file can override DNS for specific domains. If a domain is mapped to an incorrect IP (or 0.0.0.0 to block it), the browser will fail to connect.

Windows

Notepad (Run as Administrator)
C:\Windows\System32\drivers\etc\hosts

macOS / Linux

Terminal
sudo nano /etc/hosts
Remove any lines that reference the affected domain. A legitimate hosts file should only contain entries for localhost (127.0.0.1) and ::1.

Fix 5 — Clear Browser Cache and DNS Cache

Chrome maintains its own internal DNS cache separate from the OS cache. Clear it via the hidden diagnostics page:

Chrome address bar
chrome://net-internals/#dns

Click Clear host cache, then navigate to chrome://net-internals/#sockets and click Flush socket pools.

Also clear browser cookies and cache via Settings → Privacy → Clear browsing data, selecting "Cached images and files" and "Cookies."

Fix 6 — Disable VPN or Proxy

VPNs and proxy servers route DNS queries through their own resolvers. If the VPN's DNS server is unreachable or misconfigured, every DNS lookup fails. Temporarily disable your VPN or proxy and retry the URL. If it loads, configure your VPN to use a reliable DNS server or enable its "DNS leak protection" setting.

Fix 7 — Check Domain Registration

If the error affects everyone worldwide (not just your device), the domain itself may have expired or its DNS records may have been deleted. Check the domain's WHOIS record and DNS status:

Terminal
# Check if domain resolves from an external DNS server
nslookup example.com 8.8.8.8

# Check WHOIS expiry
whois example.com | grep -i expir
If you own the domain, log into your domain registrar and verify that: (1) the domain has not expired, (2) the nameservers are correctly set, and (3) the A/AAAA records point to your server's IP.

Prevent ERR_NAME_NOT_RESOLVED with DNS Monitoring

ERR_NAME_NOT_RESOLVED caused by an expired domain or deleted DNS record can take down your site for hours before you notice. Alive24x7 monitors your DNS records continuously and alerts you the moment something changes — so you fix it before your users see the error.

Start Free DNS Monitoring

Frequently Asked Questions

Related Articles