DEV Community

Bryz︱🦾
Bryz︱🦾

Posted on

🌐 Ping Works but No Website Loads? Prove It's DNS in 2 Minutes

"The internet is down!" 😱

You check. Teams is connected. Ping works. But Chrome just spins on every site.

Nine times out of ten, the network is fine. Name resolution is broken. The PC can reach the internet, it just can't turn microsoft.com into an IP address.

Here's a quick, repeatable way to prove it and fix it, without reinstalling the browser or rebooting the router. 👇

1️⃣ Test the name vs. the number 🎯

First, ping an IP address directly. No DNS needed:

ping 8.8.8.8
Enter fullscreen mode Exit fullscreen mode

Replies? Good, your connection works. Now ask DNS for a name:

nslookup microsoft.com
# or, in PowerShell:
Resolve-DnsName microsoft.com
Enter fullscreen mode Exit fullscreen mode

If the IP ping works but the lookup times out or fails, you've found it: it's DNS, not the cable, Wi-Fi, or browser.

2️⃣ Check WHICH DNS server you're asking 🔧

A PC is only as good as the DNS server it's pointed at:

ipconfig /all
# or:
Get-DnsClientServerAddress -AddressFamily IPv4
Enter fullscreen mode Exit fullscreen mode

Look for red flags:

  • 📌 An old static DNS entry someone typed in years ago
  • 🔐 A DNS server left over from a VPN that's no longer connected
  • ❓ A server that doesn't match what the rest of the office uses

Fix it by switching the adapter back to Obtain DNS server address automatically (DHCP), or setting the correct internal server your team uses. Then test nslookup again.

3️⃣ Clear the junk 🧹

Windows caches DNS answers. If a site moved, or a bad answer got cached, clear it:

ipconfig /flushdns
# or:
Clear-DnsClientCache
Enter fullscreen mode Exit fullscreen mode

Still broken for just one site? Check the hosts file. It overrides DNS completely:

notepad C:\Windows\System32\drivers\etc\hosts
Enter fullscreen mode Exit fullscreen mode

An old line like 10.0.0.50 intranet.company.com can quietly send users to a server that no longer exists. (Editing it needs an elevated Notepad.)

⚡ The takeaway

  • 🌐 IP works + name fails = DNS
  • 🔍 Check which server the PC is asking
  • 🧹 Flush the cache and check the hosts file

Fix the name lookup, not the browser. 💪

What's your first move when a user says "the internet is down"? Drop it below 👇

Top comments (0)