Skip to content
MtrXTools

;; 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

  1. Check which server was used (`cat /etc/resolv.conf`, or the SERVER line) and try another: `dig example.com @1.1.1.1`.
  2. Allow outbound UDP and TCP 53, or test with `dig +tcp`.
  3. If only one domain times out, query its authoritative nameservers directly.
Query from another resolver

Got a different message? Paste it into the error explainer.

Related errors

All 22 DNS errors