;; connection timed out; no servers could be reached
No DNS server answered the query
Seen in dig, nslookup (Linux, macOS), host
The DNS server you queried never replied, so dig gave up after its retries.
Common causes
- The resolver in /etc/resolv.conf, or the one given with @, is down or the IP is wrong.
- A firewall blocks UDP and TCP port 53 to that server (common in containers and locked-down networks).
- The resolver is up but stuck recursing for this name, often because the domain's nameservers don't answer.
How to fix it
- Check which server was used (`cat /etc/resolv.conf`, or the SERVER line) and try another: `dig example.com @1.1.1.1`.
- Allow outbound UDP and TCP 53, or test with `dig +tcp`.
- If only one domain times out, query its authoritative nameservers directly.
Got a different message? Paste it into the error explainer.
Related errors
- DNS_PROBE_FINISHED_NXDOMAIN · The domain name doesn't exist
- SERVFAIL · The DNS server failed to answer
- REFUSED · The DNS server refused the query
- ERR_NAME_NOT_RESOLVED · The browser couldn't resolve the hostname
- DNS_PROBE_FINISHED_BAD_CONFIG · The configured DNS server is not working
- ** server can't find example.com: NXDOMAIN · nslookup says the name doesn't exist
- *** UnKnown can't find · nslookup couldn't name the DNS server, then the lookup failed
- Non-authoritative answer: · The answer came from a resolver cache, which is normal
- status: NOERROR, ANSWER: 0 · The name exists but has no record of that type
- FORMERR · The DNS server could not parse the query
- NOTIMP · The DNS server does not support that kind of query
- ;; Truncated, retrying in TCP mode. · The answer was too big for UDP, so dig retried over TCP