Technical Anshu
Tutorials Blog
🌐 ERR_NAME_NOT_RESOLVED Fix

ERR_NAME_NOT_RESOLVED Fix Internet Works But the Website Will Not Open

Your WhatsApp, your downloads and half your websites work fine — then one page refuses with ERR_NAME_NOT_RESOLVED. The internet is not down. Your PC simply cannot turn that website name into an address, and this guide fixes exactly that, in the right order.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 8 minute read
🎥 Watch the full fix in the video above — every step shown live on a real Windows PC

Every website has two identities: a name you type, like example.com, and a numeric IP address your PC actually connects to. DNS is the phone book that converts the name into the number. ERR_NAME_NOT_RESOLVED means the phone book lookup failed — the browser asked for the name and got no usable answer back. Your line, your WiFi and the website itself can all be perfectly healthy while this one step is broken. That is why the fix is not restart everything and hope. It is a short chain of tests, each one ruling out a layer: the browser, the Windows DNS cache, the hosts file, the DNS server, and finally the router. Work through the cards below in order and stop at the one that fixes it.

Google Chrome — the error page you are seeing
This site can't be reached

example.com's server IP address could not be found.

ERR_NAME_NOT_RESOLVED

👆 The exact Chrome error page, recreated with its real wording. The code at the bottom is the part that matters — it blames the name lookup, not your connection.
1

First Prove It Is Really a Name Problem

Before changing anything, run the ten-second proof. Open Command Prompt and try both commands:

  1. ping 8.8.8.8 — if replies come back, your internet line and network are alive
  2. ping example.com — replace it with the failing site; if this says the host could not be found while the number worked, the fault is name resolution only

That split matters. A dead line needs a different repair entirely, and no DNS fix will help it. But if numbers answer and names do not, everything on this page is aimed at your exact problem.

2

The Split That Decides Everything — One Site or Every Site

Now open three or four other well-known websites. The answer divides this error into two completely different diseases:

  1. Every name fails — your DNS path itself is broken: cache, DNS server setting, the DNS Client service, security software filtering, or the router. Continue down this page in order.
  2. Only one name fails — your general DNS is fine. The cause is almost always specific to that name: a hosts file entry, a stale cached answer, that site's own DNS, or a name that genuinely no longer exists. Skip straight to the hosts file and stale-cache checks before touching any server settings.

Technicians lose hours by applying every-site fixes to a one-site problem. Decide which patient you have first.

3

Restart the Browser, Then Check the Obvious

Chrome keeps its own small DNS memory on top of Windows. Fully close Chrome — every window — and reopen it, or restart the PC, which clears both caches at once. This is not a ritual step: a surprising share of these errors are one bad answer cached for a few minutes, and a clean restart is the honest cure.

While you are here, type the address again slowly. A single wrong letter creates a name that truly does not exist, and DNS correctly reports it as unresolvable. Also try the same site in a second browser like Edge. If Edge opens it, your network DNS is innocent and the fault lives inside Chrome — its secure DNS setting is the prime suspect, covered in its own guide in this series.

4

Flush the Windows DNS Cache

Windows saves recent lookups in the DNS resolver cache, including failed ones. A site that hiccuped once can keep failing on your PC after it has recovered everywhere else. Clear that memory:

  1. Open Command Prompt (administrator is safest)
  2. Run ipconfig /flushdns
  3. You must see Successfully flushed the DNS Resolver Cache
  4. Reload the failing site

If the command itself errors, the DNS Client service underneath is unhealthy — the dedicated guide in this series covers restarting that service and what to do when Windows refuses to stop it. A successful flush followed by the same error means the bad answer is being served fresh by your DNS server, which is the next card.

5

Ask a Different DNS Server Directly

This test separates your server is broken from the name is broken everywhere. In Command Prompt run:

  1. nslookup example.com — this asks your normal, configured DNS server
  2. nslookup example.com 1.1.1.1 — this asks Cloudflare's public server instead

If the second command returns an address and the first fails, your configured DNS server is the culprit — usually your router's forwarder or your provider's server. Change the DNS server on your network adapter (or in the router, to fix every device) to a reliable public pair and the error class dies. If both fail with the same non-existent domain answer, believe them: the name itself has a problem, and no setting on your PC can invent an address for it.

6

Check the Hosts File If Only One Name Fails

Windows consults one local file before it ever asks DNS: the hosts file at C:\Windows\System32\drivers\etc\hosts. Any name listed there is answered from that file and DNS is never asked. An old entry — left by an ancient tweak, an ad-block tool, a crack, or office software — can pin one site to a dead address or block it outright while every other site works.

Open the file in Notepad as administrator and look for the failing name. A healthy home-PC hosts file has almost no active lines; anything naming your failing site is suspect. The full hosts-file guide in this series shows how to clean it safely with a backup first. The fingerprint to remember: ping fails but nslookup succeeds — because nslookup talks to DNS directly and ignores the hosts file completely.

7

When the Answer Is Honestly Not Your PC

Some ERR_NAME_NOT_RESOLVED errors are the truth. The website's own DNS may be down, a brand-new site may still be propagating to servers around the world, or the name may have been retired. The honest test: open the site on your phone using mobile data, not WiFi. If it fails there too, and both nslookup tests above failed, your PC is exonerated — wait, or tell the site owner, but stop repairing a healthy machine.

And one boundary for office PCs: if only internal names fail — the office server, the intranet page — while the public internet works, do not install public DNS as a cure. Internal names live only in the office DNS server, and pointing a work PC elsewhere breaks them further. That scenario has its own guide in this series.

🔴 Do not stack fixes blindly. Change one layer at a time and retest the same site after each step. If you change the cache, the hosts file and the DNS server in one go and it starts working, you will never know which one was guilty — and the error will feel like magic when it returns.

🎥 Watch the Complete Fix Video

See the complete ERR_NAME_NOT_RESOLVED repair on a real PC — the tests, the commands and the DNS change, in the exact order used on this page.

▶️ Watch Full Video
❓ Frequently Asked Questions

What does ERR_NAME_NOT_RESOLVED actually mean?

It means your browser asked DNS to convert the website name into an IP address and the lookup failed or returned that the name does not exist. Your internet connection itself may be completely fine — the failing step is only the name-to-number translation.

Why do some websites open and others show this error?

Because DNS is per-name, not per-connection. Sites whose answers are cached or whose DNS is healthy will open, while a site with a stale cached answer, a hosts file entry, or its own DNS trouble fails alone. That split is the most useful clue: one failing name points to name-specific causes, while every name failing points to your DNS server or router.

Can this error be the website's fault and not mine?

Yes. If the site's own DNS is down, the domain expired, or a new site is still propagating, every visitor gets the same failure. Test the site on your phone using mobile data — if it fails there too, your PC is not the problem and waiting is the honest fix.

This guide is based on the Technical Anshu ERR_NAME_NOT_RESOLVED fix video • Stuck on a step? Ask in the video comments — you will get a reply 🙏