Learn / Answers

What do SERVFAIL and REFUSED mean in DNS?

SERVFAIL (response code 2) means the DNS server tried but couldn't get an answer, often because the domain's own name servers are failing or DNSSEC validation failed. REFUSED (code 5) means the server won't answer this client at all, usually because of an access policy. Either way the name may be fine; the resolver is the problem.

What it looks like in the packets

  • A DNS response with rcode 2 (Server failure) or 5 (Refused).
  • No answer records.
  • Retries to the same or a second resolver.

Common causes

  • The domain's authoritative name servers are down or misconfigured.
  • DNSSEC signatures are broken or expired.
  • The resolver only serves certain networks (REFUSED).
  • The resolver can't reach the internet.

What to check

  1. Try the same name on another resolver to see if the failure follows the name or the resolver.
  2. Check the domain's name servers and DNSSEC with an online DNS checker.
  3. For REFUSED, check which DNS server the device is configured to use.

Wireshark display filters

  • dns.flags.rcode == 2 || dns.flags.rcode == 5SERVFAIL and REFUSED answers

How Blame Finder flags it

Warning. Upload a capture and the finding links straight to the packets behind it, with the most likely culprit at the top.