Short answer: your device asked a DNS server for a website’s address and got no reply. Websites then won’t load, even though the connection itself may be working. Check whether other devices have the same error, then restart the router and the device. TP-Link, which makes routers, says that restart resolves the majority of these errors for home users. If the error comes back, flush the device’s DNS cache, check whether the DNS server answers, and try a public DNS server. Security software, proxy settings and drivers come after that.

What the error means

DNS is the step that turns a name like routeracademy.com into the numeric address your device actually connects to. When the DNS server doesn’t answer, nothing loads by name.

TP-Link lists the usual causes:

  • a corrupted DNS cache on the device
  • an outage at your provider’s DNS server
  • a problem with the router, which passes DNS requests on for every device
  • firewall or antivirus software blocking DNS traffic
  • an outdated network adapter driver

First: one device or all of them?

Fix 1: restart the router and the device

TP-Link’s steps: unplug the router, wait 30 seconds and plug it back in. Give it 60 to 90 seconds to start up, then restart your device and try a website again. TP-Link says the restart clears the router’s temporary memory and stale DNS data and reconnects it to your provider’s DNS server.

Fix 2: flush the DNS cache

Your device keeps a list of names it has looked up recently. TP-Link says a corrupted entry in that list can cause errors even when the DNS server is fine.

  • Windows: open Command Prompt as administrator and run ipconfig /flushdns. Microsoft says this flushes and resets the DNS client resolver cache.
  • Mac: TP-Link gives this command for Terminal, which asks for your password: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.

Restart the browser afterwards and try again.

Fix 3: check whether the DNS server answers

Microsoft’s check on Windows is to see which DNS server the device is using, then test it:

  1. Open Command Prompt as administrator.
  2. Run ipconfig /all | findstr /c:"DNS Servers" and note the address.
  3. Run ping followed by that address.

If the device has a valid IP address but the DNS server doesn’t reply, Microsoft’s advice is to switch to a different DNS server (Fix 4).

If you suspect something on your network or your provider’s network is blocking DNS, Google publishes a test. Run nslookup -debug -type=TXT test.dns.google.com. dns.google. If the output includes “Thanks for using Google Public DNS.”, your queries are reaching Google. NXDOMAIN means a different DNS server answered instead. A timeout means queries to Google are being blocked.

Fix 4: try a public DNS server

If your provider’s DNS server is the problem, a public one can get you back online.

  • Google Public DNS: 8.8.8.8 and 8.8.4.4.
  • Cloudflare: 1.1.1.1 and 1.0.0.1. Cloudflare’s “1.1.1.1 for Families” service, on 1.1.1.2 and 1.0.0.2, also blocks malware.

Set it on one device to test, then on the router so every device uses it. How to change your DNS server shows how to set it on the router.

Fix 5: security software and proxy settings

If only one computer has the error, check what’s running on it.

  • Firewall or antivirus: TP-Link says security software set too strictly can block DNS traffic, sometimes right after an update. To test, turn it off briefly and try a website. If that fixes it, look for a rule that blocks DNS (port 53) and add an exception. Turn the software back on straight after the test. Only do this test on your home network.
  • Proxy: Microsoft says to go to Settings > Network & Internet > Proxy and turn off any manual proxy settings.

Fix 6 (Windows): reset the network settings

If nothing else has worked on a Windows PC, Microsoft lists these commands. Run them from Command Prompt opened as administrator, in this order:

  1. netsh winsock reset
  2. netsh int ip reset
  3. ipconfig /release
  4. ipconfig /renew
  5. ipconfig /flushdns

These commands reset Windows’ network settings, so note any static IP address or custom DNS you’ve set before you run them. If they don’t help, Microsoft’s next step is to uninstall the network adapter driver and restart. TP-Link also suggests checking for an updated driver, and says Windows reinstalls the driver automatically after you uninstall it and restart.

Still failing?

If every device keeps losing DNS, TP-Link suggests contacting your provider, which can check for an outage on its side. It also suggests checking that the router’s firmware is up to date. How to update router firmware covers that.

Google notes that DNS answers can be hijacked by a Wi-Fi sign-in page, by malware on a router, or by an internet provider. A sign-in page on hotel or café Wi-Fi is the harmless, everyday case. At home, if websites go to the wrong place or your router’s DNS settings have changed without you touching them, see think your router was hacked?.