Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

DNS Error on Your Laptop: Quick Fixes That Work

· 5 min read · Home Networking

In this article
  1. What to Try First, in the Order That Works Most Often
  2. Normal Hiccups Versus a Real DNS Problem
  3. Match Your Symptom to Its Cause and Fix
  4. Confirming Each Fix Before Moving On
  5. Keeping DNS Errors From Coming Back

A DNS error means your laptop cannot translate website names into the numbers computers use to find them. Most cases clear up by restarting your router and laptop, or by flushing the DNS cache and switching to a public DNS server.

Time 15 min · Steps 7 · Level Easy

What to Try First, in the Order That Works Most Often

  1. Restart your router. Unplug it, wait 30 seconds, plug it back in and give it 2 minutes to fully reconnect. A router that has lost its DNS settings is the single most common cause of this error, and a restart forces it to ask your internet provider for fresh settings.
  2. Restart your laptop. A reboot clears temporary network state on the laptop itself and only takes a minute or two.
  3. Check another device. Load the same site on a phone using the same Wi-Fi. If it also fails, the problem is the router or your internet provider, not the laptop. If the phone works, continue with the laptop fixes below.
  4. Flush the DNS cache. On Windows, open Command Prompt and run ipconfig /flushdns. On a Mac, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. A corrupted cache can send your laptop to the wrong address for every site.
  5. Switch to a public DNS server. Set your DNS to 8.8.8.8 and 8.8.4.8 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare) in your network settings. This bypasses a broken DNS server at your provider.
  6. Pause VPN and security software. VPNs and some antivirus filters intercept DNS lookups and can break them. Disconnect the VPN and test; if browsing works, the VPN is the culprit.
  7. Reset the network settings. On Windows: Settings > Network & internet > Advanced network settings > Network reset. On a Mac: System Settings > Network, remove and re-add the Wi-Fi connection. This is the last resort because it forgets saved Wi-Fi passwords.

Normal Hiccups Versus a Real DNS Problem

A one-off DNS error on a single site, or one that appears right after your router reboots, is normal and usually fixes itself within a few minutes. What is not normal is a laptop that cannot load any website while other devices on the same network browse fine, or an error that returns hours after you fixed it. A message naming DNS specifically, such as "DNS server not responding" or "DNS_PROBE_FINISHED_NO_CONFIG", points at name resolution rather than your Wi-Fi signal or your internet connection speed. If only one site fails everywhere, that site's own DNS is likely broken and there is nothing to fix on your laptop.

Match Your Symptom to Its Cause and Fix

SymptomLikely causeFix
Every device in the house shows DNS errorsRouter lost its DNS settings, or provider outageRestart router; if it persists after 10 minutes, report an outage to your provider
Only the laptop fails, phone on same Wi-Fi worksStale DNS cache or wrong DNS setting on the laptopFlush DNS cache, then set a public DNS server
Error appears only when VPN is connectedVPN intercepting DNS lookupsReconnect to a different VPN server or update the VPN app
One specific site never loads, others fineThe site's own DNS recordsWait; check the site from mobile data to confirm it is not your laptop
Errors return days after fixingRouter handing out a bad DNS address automaticallySet public DNS on the router itself so every device inherits it

Confirming Each Fix Before Moving On

After each step, open a browser and load two or three different sites, not just the one that failed first. A cached page can look like success even when DNS is still broken, so refresh with a hard reload or try a site you have not visited today. For a firmer test, open Command Prompt or Terminal and run ping google.com. If you get replies, DNS is working, because the ping had to resolve the name first. If the ping says the name could not be resolved but ping 8.8.8.8 gets replies, your connection is fine and only DNS is broken, which confirms that switching DNS servers is the right fix. On Windows, nslookup google.com shows which DNS server answered and whether it returned an address.

Changing the DNS Server in Detail

On Windows, go to Settings > Network & internet, open your Wi-Fi adapter's properties, and under DNS server assignment choose manual and enter a preferred and alternate address. On a Mac, open System Settings > Network, click Details on your connection, then DNS, and add the addresses with the plus button. Menu labels can differ slightly by system version. Enter 8.8.8.8 as the primary and 8.8.4.8 as the secondary, or the Cloudflare pair above, then apply and test. Write down your provider's original DNS numbers first so you can restore them if a public server is ever blocked on your network, which happens on some office or school connections.

Keeping DNS Errors From Coming Back

Set the DNS servers on the router rather than on each device, so every phone and laptop in the house inherits a working configuration and a single change fixes all of them. Restart the router about once a month, since long-running routers occasionally drop their DNS settings. Keep your laptop's system updates current, because network components are updated alongside everything else. If you use a VPN, keep its app updated rather than leaving an old version running, and note in your phone which DNS addresses you set, so a future error takes one minute instead of fifteen. If errors keep recurring after all of this, the pattern usually points to failing router hardware, and replacing it is the next step to consider.

Official source: Microsoft Support