What the message looks like
This site can’t be reached
Server DNS address could not be found.
ERR_NAME_NOT_RESOLVEDCommon causes
- A typo in the hostname, or a domain that is not registered or has expired.
- The A/AAAA record is missing, or the domain's name servers are wrong or unreachable.
- The local DNS server (router, ISP, corporate DNS) is down or blocks the name.
- A stale or corrupt DNS cache in the browser, the operating system or the router.
- A VPN, proxy, Pi-hole or an entry in the
hostsfile redirects resolution.
Check
- Does the name resolve at all?
- Does a public resolver answer differently than the local one?
dig @1.1.1.1 example.com A; dig @9.9.9.9 example.com A - Which name servers are set for the domain?
dig NS example.com +short - What does the system use as resolver (Linux)?
resolvectl status; resolvectl query example.com
Fix
- Check the hostname for typos and confirm the domain is still registered (
whois example.com). - At the site owner's side, create or correct the A/AAAA record, and check the name servers at the registrar.
- Flush the DNS cache: Windows
ipconfig /flushdns, macOSsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, Linuxresolvectl flush-caches. - As a test, set a different DNS server (for example 1.1.1.1 or 9.9.9.9) and restart the router and the device.
- Briefly turn off VPN, proxy and filters such as Pi-hole, and search the
hostsfile for the name. - After a fresh DNS change, wait for the TTL to run out; a negatively cached answer can linger for a while.
Typical scenario
A company moves its website to a new host and enters the new name servers at the registrar. Customers report ERR_NAME_NOT_RESOLVED while it works in the office. dig +trace example.com shows that the registrar still lists a name server with a typo, which only some resolvers query.
FAQ
How is it different from DNS_PROBE_FINISHED_NXDOMAIN?
ERR_NAME_NOT_RESOLVED is the general error: resolution failed, for whatever reason. Chrome shows DNS_PROBE_FINISHED_NXDOMAIN when its diagnostic query explicitly gets “name does not exist” back.
It works on my phone but not on my PC. Why?
Usually the two use different DNS servers or caches. A phone on mobile data asks the carrier's DNS, the PC asks the router. Flush the cache and try another resolver.
Why does the site work in the office but not for customers?
Different resolvers hold different caches. In the office the old answer is still cached, while customers hit a broken name server. Test with dig @1.1.1.1 and dig @8.8.8.8.
Can the hosts file cause this error?
Yes, an old entry there overrides DNS, but it usually points to a wrong IP. An entry with an invalid address makes resolution fail. The file is /etc/hosts or C:\Windows\System32\drivers\etc\hosts.