DNS is the part of the internet that turns a name people can remember into an address computers can use. When it fails, the connection can look completely broken even though the network is fine.

The error “DNS server not responding” usually means one of three things:

  • The device is pointing at a DNS server that is unreachable.
  • The DNS server is reachable but is not answering queries.
  • The network path to the server is blocked by a VPN, firewall or router rule.

Test before changing settings. A single command can tell you whether the problem is DNS or the connection itself.

Solution 1: Test DNS against the connection

Fix Intermediate5 minutesLow risk

Use a numeric address and a public resolver

  1. On Windows, open Command Prompt.

  2. Test whether the connection reaches the internet without DNS:

    ping 1.1.1.1
  3. If replies come back, the connection works. Test name resolution:

    nslookup example.com
  4. If nslookup times out, query a known resolver directly:

    nslookup example.com 1.1.1.1
  5. If the direct query works, your device or router is pointing at a bad DNS server. If it also fails, the network path is blocking DNS or the connection is down.

Solution 2: Flush the local DNS cache

Fix Beginner3 minutesLow risk

Clear stale answers on Windows

  1. Open Start, type cmd, right-click Command Prompt and choose Run as administrator.

  2. Run:

    ipconfig /flushdns
  3. Confirm that Windows reports the DNS resolver cache was flushed.

  4. Run ipconfig /displaydns to see what is cached now.

  5. Open a browser and load a site you have not visited recently.

A stale cache is less common than a bad resolver, but it is quick to rule out. On macOS, the command is sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On most phones, restarting the device is the practical equivalent.

Solution 3: Check which DNS servers the device is using

Fix Beginner5 minutesLow risk

Find the bad address before replacing it

  1. On Windows, run:

    ipconfig /all
  2. Find the active adapter and read the DNS Servers line.

  3. If the address is on your local network, it is probably the router. If it is a public address, note which provider it belongs to.

  4. Open the router’s admin page and look at its WAN or internet DNS settings. Many routers hand their own address to devices and forward queries upstream.

  5. If the router is handing out an old or unreachable address, fix it there rather than changing every device.

Solution 4: Set a reliable resolver

Fix Beginner5 minutesLow risk

Change DNS on Windows

  1. Open Settings > Network & internet > Wi-Fi or Ethernet.

  2. Open the active connection and find DNS server assignment.

  3. Select Edit, choose Manual, and enable IPv4.

  4. Enter a primary and secondary resolver, for example:

    • Primary: 1.1.1.1
    • Secondary: 1.0.0.1
  5. Save the setting and run ipconfig /flushdns.

  6. Load a website and run nslookup example.com again.

Fix Beginner5 minutesLow risk

Change DNS on iPhone or Android

  1. iPhone: open Settings > Wi-Fi > i next to the network, tap Configure DNS, choose Manual, and add the resolver addresses.
  2. Android: open Settings > Network & internet > Private DNS. For a specific provider, choose Private DNS provider hostname and enter the provider’s hostname, not an IP address. To use the network’s DNS again, choose Automatic.
  3. Reconnect to the network and test.

Use one provider’s primary and secondary addresses. Mixing addresses from different providers can make failures harder to diagnose and may send queries to an unexpected resolver.

Solution 5: Remove DNS interference

Fix Intermediate10 minutesLow risk

Check VPNs, firewalls and router rules

  1. Disconnect any VPN and test DNS again.
  2. Temporarily disable third-party firewall or “web shield” features. Re-enable them after the test.
  3. Check the router for DNS filtering, parental controls or a custom DNS rule that may be blocking port 53.
  4. If the router has a guest network, test from it. A guest network often uses different firewall rules.
  5. If DNS works on mobile data but not Wi-Fi, the router or provider path is the difference.

Check whether the fix worked

Run nslookup example.com and confirm it returns an address without timing out. Then load two different domains in a browser. If only one domain fails, test it from another network before assuming your resolver is broken.

A healthy result looks like a fast response from the resolver and normal page loads. If DNS works but pages still fail, the problem is at a different layer, such as TLS, a proxy or the site itself.

Prevent it from happening again

  • Record the DNS addresses your router uses so you can restore them.
  • Keep router firmware updated; DNS forwarding bugs are sometimes fixed in firmware.
  • Use a reputable resolver rather than a random “fastest DNS” list.
  • Do not change DNS to work around a dead internet connection; fix the connection first.
  • If you manage a network, monitor resolver health and keep a secondary resolver configured.

Sources and further reading