Networking: Every connection pauses about 5 seconds — resolv.conf nameserver timeout, then fallback to the next DNS server
The first DNS server in the list isn't answering, so each lookup waits out a timeout before trying the next one.
DNS lookups take 5 secondsresolv.conf timeout 5 secondsslow DNS resolution 5 second delay;; connection timed out; trying next originDNS timeout then fallback to second nameserver Meaning
The default resolver timeout is 5 seconds per server. Put working resolvers first, remove dead entries, and test with dig @server name. The 5-second pattern also appears when A and AAAA queries race, or when conntrack drops DNS packets (a known Kubernetes issue).
Common causes
- Dead or unreachable first nameserver in
resolv.conf - Firewall dropping DNS to one resolver
- AAAA/A parallel query race with conntrack
- VPN pushing unreachable DNS servers
- Resolver overloaded
⚡ Quick fix
- Test each:
dig @10.0.0.2 example.com - Reorder or remove dead nameservers
- Set
options timeout:1 attempts:2andsingle-request-reopenwhere needed
Detailed fix by platform
Linux
- bash
cat /etc/resolv.conf time dig @10.0.0.2 example.com +tries=1 +time=2
How to diagnose
- Nameservers — All responding?
- Delay — Exactly ~5 s?
- Conntrack/VPN — Involved?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- dig: status: REFUSED (recursion not available) Networking: dig: status: REFUSED / recursion requested but not available — the DNS server won't resolve queries for you
- dig: status: SERVFAIL (DNSSEC validation failed) Networking: dig: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL — resolver failed to answer (DNSSEC validation or upstream failure)
- DNS in pod DNS not working inside a Kubernetes pod (could not resolve host / nslookup: can't resolve)
Most viewed in Networking
- Native VLAN mismatch / wrong VLAN, no connectivity Networking: %CDP-4-NATIVE_VLAN_MISMATCH / device on the wrong VLAN can't reach the gateway
- Port err-disabled (psecure-violation) Networking: %PM-4-ERR_DISABLE: psecure-violation error detected on Gi0/5, putting Gi0/5 in err-disable state
- Rogue DHCP server hands out wrong gateway/DNS Networking: Clients receive the wrong default gateway or DNS server — a rogue DHCP server (often a home router) answers first
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026