What 'DNS server not responding' means and how to confirm it
Your device asked a DNS server to turn a name into an IP address and got no usable answer. The device asks through a resolver, the program that looks names up for you. A resolver must be able to reach at least one name server, a server that holds or finds DNS data, and use it to answer a query directly or by following referrals to other name servers. Answering standard queries is the main job of a name server.
The usual symptom is that pages won't load while Wi-Fi or the cable still shows as connected. Don't guess at the cause. Test the server directly.
This guide does not cover device menus or router screens. The nslookup test works wherever a device or network lets you run it.
Read your current DNS settings
Troubleshooting a DNS server starts with ipconfig /all. Verify the IP address, subnet mask and default gateway. Also note the DNS servers listed, because you will test each one next. Write the values down before you change anything.
ipconfig /all
Ask the server a question
Query the server directly with nslookup and the server's IP address. If the resolver returns the IP address of the name you asked for, the server has no problems. Here 192.0.2.53 stands in for your DNS server.
nslookup example.com 192.0.2.53
Success means the answer contains an IP address. Any other result is a clue, and the next section explains how to read it.
Test whether the DNS server answers, and read the result
Run nslookup against each configured server
Run the same query against every DNS server from ipconfig /all. Here 198.51.100.53 stands in for a second server.
nslookup example.com 192.0.2.53
nslookup example.com 198.51.100.53
Compare the two results. A server that answers while another does not tells you where to look. It also separates a DNS problem from a problem with one name. Your own network and resolver are outside what dnscheck.app can test, so run this test on the affected device.
What a timeout, 'Server failure' and 'Query refused' probably mean
The first two rows below are Microsoft's guidance for Windows DNS Server. Other DNS servers can return the same results for other reasons.
| Result from nslookup | What it probably means |
|---|---|
| The answer contains an IP address | The server answers. |
Request to server timed out or No response from server |
Probably the DNS service is not running. |
Server failure or Query refused |
Probably the zone is paused or the server is overloaded. |
A firewall can also cause a timeout. An unreachable forwarder or root hint can cause one too. Section 4 covers the firewall, the forwarders and the root hints.
'Query refused' does not always mean the server is broken. Recursion, where the server does the lookup work on the client's behalf, is optional for a name server. A server may restrict which clients can use it, so it may legitimately decline recursive queries from some clients.
Check recursion with dig (RA and RD flags)
Sysadmins can ask for recursion explicitly with dig. Every response carries an RA bit that says whether the server is willing to provide recursive service, whether or not the client asked for it. Clients may request recursion from any server, but should rely on it only from servers that have sent RA or agreed to provide it by other means.
dig @192.0.2.53 example.com A
In the reply, look at the flags line. Both ra and rd set means recursive mode was used. If ra is missing, the server is not offering recursion to you, and a server may legitimately do that. The response alone does not show why.
Find where the failure is: device, DNS server, upstream, or the domain
Decision tree
Work through these in order, using the results from section 2.
- No answer from any configured server. Check the path between the device and the servers, and check the servers themselves. For recursion to succeed, every DNS server in the path of a recursive query must be able to respond and pass on correct data. Otherwise the query can time out, a server can fail to respond, or a server can return incorrect data. If you run the server, go to section 4.
- An answer from one server but not another. The fault is on the failing server or in its path. Resolvers are responsible for dealing with a name server failure by consulting redundant databases in other servers. That is why you test each server on its own and don't rely on what the browser does.
- A timeout on your first server. This does not prove the first server is broken. A query can time out because the server forwards it to unreachable forwarders or root hints. A forwarder is another server your server passes queries to. Root hints are the list of root servers your server starts from when it has no forwarder.
- The IP works but the name fails on one device. Look at that device's settings and its cache (section 5).
- Everything works from your network but one domain fails for visitors. Go to section 6.
Works on one device only
If nslookup example.com 192.0.2.53 returns an address on a second device but not on the first, the server is answering. The problem is on the first device, so check its DNS settings and clear its cache.
Fails on every device
If every device fails against the same server, trace the query as an admin. Start at the server used in the original query and check its Forwarders tab to see whether it forwards queries to another server. Then follow the chain. If one address of a server answers and another does not, check whether the server is limited to selected listening addresses.
Fixes when you run the DNS server (Windows Server)
Everything in this section is Microsoft's documented guidance for Windows DNS Server. It is not a general DNS rule. Note the current server settings and the forwarder list before you change anything.
Read the event logs
Check the Application, System and DNS Server event logs for recorded errors. They can show why the service stopped or why a zone failed to load.
Start the DNS service
A timeout probably means the DNS service is not running. Restart it with net start DNS.
net start DNS
If the symptom was 'Server failure' or 'Query refused', open the zone in the DNS console. The General tab shows whether the zone is paused.
Check which addresses the server listens on
If the service is running but queries fail, check whether the server is restricted to selected listening addresses and your query used an address that is not on the list. The fix is to query a listed address or add the address.
Allow UDP and TCP port 53
nslookup queries UDP port 53 by default. If the server listens on a non-standard port or a firewall blocks the DNS ports, queries fail. The firewall or packet filter rules may need to allow UDP and TCP port 53. DNS messages over TCP use server port 53.
Remove unreachable forwarders or turn off recursion if not needed
In the DNS console, check whether forwarders and conditional forwarders are reachable. Remove any that are not. If the server doesn't need forwarders and root hints, turn on Disable recursion in the server's Advanced properties. This also disables forwarders. Clients that rely on this server for recursion may stop getting answers. A server may legitimately decline recursion.
Check root hints
If a root-server query times out, check that the root hints point to functioning root servers. If they do, the cause may be a network problem, an advanced firewall configuration, or a recursive time-out default that is too short.
Clear the server cache
You can clear the server cache with Clear-DnsServerCache in an administrative window, or with dnscmd /clearcache. This does not fix an unreachable server.
powershell -Command "Clear-DnsServerCache"
dnscmd /clearcache
Look for a geo-location policy that returns Server Failure
This is rare and applies only if you configured such a policy. A misconfigured Windows DNS Server geo-location policy can make the server return 'Server Failure' to clients in defined subnets that request records in the default zone scope.
Clear cached answers on your device, and what that does not fix
Clear the Windows DNS client cache
A cache is a local store of earlier answers. Resolvers are expected to cache data received in responses, since it may help answer future requests. Cached data is eventually discarded by a timeout. To clear it on a Windows client, open PowerShell and run Clear-DnsClientCache, then repeat the same nslookup test.
powershell -Command "Clear-DnsClientCache"
nslookup example.com 192.0.2.53
Clear-DnsClientCache clears the cache on this device. Clear-DnsServerCache clears the cache on a DNS server so it stops serving outdated information.
Why a flush may not change the result
Flushing affects only the local device. The upstream recursive resolver, at your ISP or a public service, still holds the negative result. A negative result is a cached "this name does not exist" answer. You cannot see or clear that cache from outside.
Do not turn the client cache off
Microsoft recommends not disabling the Windows client-side DNS cache on DNS clients, and it does not support a configuration with the cache disabled.
Site owners: is your resolver failing or is your domain's nameserver failing?
A resolver that does not answer breaks every name. A domain-only failure points to the domain's authoritative nameservers, which hold the complete information for the zone, the part of the namespace they serve. If such a server cannot load zone data, for example because of syntax errors, or cannot refresh a zone within its expiration parameter, it should answer queries as if it did not possess the zone.
dnscheck.app queries from its own servers. It cannot test your home network or local resolver. Use it to see what the rest of the internet gets for your domain. Run a full domain health check first.
Check the name and the nameservers
Check the spelling of the name first, because a typo can cause resolution errors. Then check which nameservers your domain uses and look up the record from a public resolver.
Nameserver mismatch and DNSSEC after a provider move (Cloudflare's documentation)
Cloudflare's documentation describes a mismatch where the registrar switches the domain's nameservers back to its defaults. Checking whether the domain uses Cloudflare's nameservers confirms it. The same pattern applies to any provider. The delegation at the registrar must match the nameservers your DNS provider assigned.
Wrong: the registrar reset the domain to its default nameservers, which differ from the set the zone's provider expects.
example.com. 3600 IN NS ns1.example.org.
example.com. 3600 IN NS ns2.example.org.
Corrected: the delegation matches the provider's assigned nameservers.
example.com. 3600 IN NS ns1.example.net.
example.com. 3600 IN NS ns2.example.net.
Cloudflare also documents that DNS resolution fails if DNSSEC is not disabled at the domain's current provider before the domain is added to Cloudflare. That applies to adding a domain to Cloudflare. It is not general advice to disable DNSSEC. Follow Cloudflare's steps in their order, and do not delete a DS record without a planned rollback of the zone's signing.
A new record that still returns NXDOMAIN
NXDOMAIN is the answer "this name does not exist". A new record may still return NXDOMAIN or no answer because a resolver cached a negative response from a query made before the record existed.
The negative cache duration comes from the MINIMUM field of the zone's SOA record (RFC 2308), not from the new record's TTL, and resolvers may differ. Flushing your own cache does not clear it. Read the SOA record for the negative-caching value. Then see the current answers from different resolvers. Don't expect a fixed recovery time.
References
- RFC 1034: Domain names - concepts and facilities, IETF, sections 2.4, 3.7.2, 4.3.1
- RFC 1035: Domain names - implementation and specification, IETF, sections 6, 6.3, 7.4
- Troubleshooting DNS Servers | Microsoft Learn, learn.microsoft.com
- Guidance for troubleshooting DNS - Windows Server | Microsoft Learn, learn.microsoft.com
- General DNS issues ยท Cloudflare DNS docs, developers.cloudflare.com