DNS & Domain Names

DNS Server Not Responding: How to Fix It

Work through the DNS server not responding error step by step, from quick checks to Windows, Mac, phone and router fixes.

Key takeaways

  • Test a second device first, because that tells you whether to look at one machine or at the router and provider.
  • If you can reach an IP address but not a name, name resolution is the broken part.
  • Trying a different public resolver is a quick, reversible test that also works as a fix.
  • VPNs, security software and filtering tools often sit in the DNS path and are worth pausing while you diagnose.

"DNS server not responding" means your device asked a DNS resolver to translate a name into an address and got no usable reply. Your internet connection may be fine apart from that. The quickest fixes are to test another device, restart the router, turn off any VPN and, if the problem stays, switch to a different DNS resolver.

The steps below start with finding where the fault is, so that you change only what needs changing. Menu names vary by operating system version and router brand.

What the error is telling you

Almost everything you do online starts with a lookup. Your device sends the question to a resolver, usually your router, which forwards it to your provider's DNS servers. The background is in DNS explained. If that chain breaks anywhere, browsers show messages mentioning DNS, and apps simply say they can't connect.

Where a lookup can fail
1 Your device Wrong settings, a bad cache, VPN or security software. 2 Wi-Fi or cable A weak or half-working link drops queries. 3 Router Its DNS forwarding can hang until restarted. 4 Resolver The provider's or public DNS service may be down or blocked. 5 The site's own DNS If only one name fails, the problem may be theirs. Your device Wrong settings, a bad cache, VPN or security software. 1 Wi-Fi or cable A weak or half-working link drops queries. 2 Router Its DNS forwarding can hang until restarted. 3 Resolver The provider's or public DNS service may be down or blocked. 4 The site's own DNS If only one name fails, the problem may be theirs. 5

Step 1: Narrow it down

Answer three questions before touching any settings.

Is it one site or everything? If only one domain fails, the owner's DNS may be broken, and you can't fix that from your side. See NXDOMAIN, SERVFAIL and other errors.

Is it one device or all of them? Try a phone on the same Wi-Fi. If everything fails, look at the router or provider. If only one device fails, look there.

Can you reach an address directly? Open a terminal and try:

ping 1.1.1.1
nslookup example.com

1.1.1.1 is a public resolver run by Cloudflare. If the ping gets replies but nslookup times out, your connection works and DNS doesn't. If both fail, you have a general connectivity problem: start with connected to Wi-Fi but no internet. Some networks block ping, so treat a failed ping as a hint.

Now ask a specific public resolver directly:

nslookup example.com 1.1.1.1
nslookup example.com 8.8.8.8

If these succeed while the plain nslookup fails, your configured resolver is the problem.

Finding the faulty part
Does every device on the network fail? YES Restart the router, then check for a provider outage. 1 NO Does a query to a public resolver succeed? YES Change the DNS setting on this device or the router. 2 NO Is a VPN, filter or security suite running? YES Pause it briefly and test again. 3 NO Reset the device's network stack Renew the address, flush caches, update the adapter driver. Does every device on the network fail? 1 IF YES Restart the router, then check for a provider outage. NO Does a query to a public resolver succeed? 2 IF YES Change the DNS setting on this device or the router. NO Is a VPN, filter or security suite running? 3 IF YES Pause it briefly and test again. NO Reset the device's network stack Renew the address, flush caches, update the adapter driver.

Read your current settings

It helps to know which resolver your device is really using before you change anything. On Windows:

ipconfig /all
Get-DnsClientServerAddress

Look for the DNS Servers line under the adapter you're using. Virtual adapters from VPNs and virtual machines appear too, so be sure you're reading the right one.

On macOS:

scutil --dns

On Linux with systemd-resolved, resolvectl status lists servers per connection. Elsewhere, cat /etc/resolv.conf shows the configured address, which may be a local stub such as 127.0.0.53.

What you see What it suggests
Your router's address Normal home setup; the router forwards queries
A public resolver Someone set it manually or the router hands it out
An address from 169.254.0.0/16 as your own IP The device didn't get settings from DHCP
An unfamiliar public address you didn't set Check for leftover VPN settings or tampering
No DNS server at all DHCP or a manual configuration is incomplete

A self-assigned 169.254 address means the problem comes earlier than DNS. See fixing obtaining IP address errors. If you previously typed a static IP address into the device, confirm the DNS fields still point to something that exists, especially after replacing a router.

Step 2: Try the quick fixes

  1. Reconnect. Turn Wi-Fi off and on, or unplug and replug the cable.
  2. Restart the router and modem. Power them off for about half a minute, start the modem first and then the router.
  3. Try another browser. Browsers can use their own encrypted DNS setting.
  4. Disconnect the VPN. VPN software usually sends lookups through its own resolver, and a stale connection can leave that setting behind.
  5. Check your provider's status page using mobile data.
  6. Check the clock. A badly wrong date can break encrypted DNS because certificates appear invalid.

Step 3: Change the DNS server

Switching resolvers is easy to undo. Commonly used public options include Cloudflare (1.1.1.1 and 1.0.0.1), Google (8.8.8.8 and 8.8.4.4) and Quad9 (9.9.9.9). Each has its own privacy policy and filtering behavior, compared in public DNS resolvers.

  • Windows: open network settings, choose your connection, edit DNS server assignment, select manual and enter the addresses.
  • macOS: in network settings, select the connection, open its details, go to DNS and add the servers.
  • iPhone or iPad: tap the information button beside the Wi-Fi network, then configure DNS manually.
  • Android: look for "Private DNS" in network settings, which takes a provider hostname such as dns.google.
  • Router: change DNS in the internet or LAN settings to apply it to every device.

Full walk-throughs are in changing DNS servers. On a work or school network, don't change DNS without asking, since internal names may stop resolving.

Step 4: Reset the device

If other devices work and changing DNS didn't help, clear cached data and rebuild settings.

On Windows, open a terminal as administrator and run:

ipconfig /flushdns
ipconfig /release
ipconfig /renew
netsh winsock reset

Restart afterwards. netsh winsock reset restores the Windows networking catalog and can require some VPN or security software to be repaired.

On macOS:

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

On Linux distributions using systemd-resolved:

resolvectl status
sudo resolvectl flush-caches
sudo systemctl restart systemd-resolved

More variations are in how to flush your DNS cache. If problems continue, update or reinstall the network adapter driver, or follow resetting network settings. Note saved Wi-Fi passwords first, because a full reset removes them.

Step 5: Look for something in the way

Security software. Some suites filter web traffic and intercept DNS. Pause the web protection feature briefly, test, then turn it back on. If that fixes it, update or reconfigure the software instead of leaving it off.

Filtering services and blockers. A home blocker such as a Pi-hole that has stopped running takes name resolution down with it if the router points only at that device.

Encrypted DNS settings. If a browser or system is set to use a specific encrypted resolver that is unreachable or blocked on this network, lookups fail. Set it to automatic to test.

A hosts file entry. If one name resolves strangely on one computer, check the hosts file.

Malware. DNS servers you didn't set, which come back after you change them, deserve a security scan and a router check, including changing its admin password and updating its firmware.

When the problem is intermittent

Lookups that fail now and then are harder. Note the time and which devices were affected. Common causes include weak Wi-Fi, an overheating or overloaded router, outdated firmware, a power-saving setting on the adapter and a flaky provider resolver. Running this during a bad spell helps separate them:

nslookup example.com 192.168.1.1
nslookup example.com 1.1.1.1

Replace 192.168.1.1 with your router's address. If only the router query fails, the router's forwarding is at fault. Setting devices or the router's DHCP to hand out public resolvers works around it.

Check the router itself

If every device has trouble and a restart only helps for a while, sign in to the router. Look at the internet status page for the DNS servers it received from your provider. Empty fields, or a connection that keeps renegotiating, point toward the line or the provider.

Check for a firmware update, and look at whether features such as parental controls, web filtering or a built-in security subscription are intercepting lookups. An expired or misbehaving filtering service can block everything. Turn one feature off at a time and retest, then restore what you want to keep. Logging in to your router explains how to get there.

As a last resort, a factory reset clears a corrupted configuration. Write down the connection type, any provider username and your Wi-Fi settings first, because you'll need to enter them again.

On a work network

Office networks add parts that home networks lack: internal DNS servers, directory services, split tunneling on VPNs and web filters. An internal name that stops resolving after you switched resolvers is a classic sign, since public services know nothing about private zones. See split-horizon DNS.

If you support others, collect the device's DNS settings, the exact name that failed, the output of nslookup against the internal server and the time. If you're an employee, send those details to your IT team and put any settings you changed back the way you found them.

Stop it coming back

Configure two resolvers so there's a fallback, keeping in mind that devices don't always switch quickly and don't treat the second as strictly a backup. Keep router firmware current. If you run a local blocker or resolver, give it a fixed address and monitor it, and know how to bypass it when it fails. Finally, write down what fixed the problem, because the same cause tends to return.

When to call your provider

Contact your internet provider if all devices fail after a restart, public resolvers can't be reached either or the modem shows no connection. Tell them what you tested and the results. That usually skips the first few rounds of scripted questions.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in DNS & Domain Names →

Latest news on this topic