Skip to content
Domain and DNS3 min read

What does DNS SERVFAIL mean, and how do you fix it?

status: SERVFAIL

Short answer

SERVFAIL is a DNS response meaning the resolver tried to get an answer for the domain and failed, not that the domain doesn't exist. The usual causes are a DNSSEC problem (a DS record that doesn't match the zone's keys), nameservers that don't answer or don't know the domain, or a wrong glue record. Diagnose it with dig +cd, then by querying the nameservers directly.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Common causes
  2. How to diagnose it
  3. How to fix it
  4. Prevention
  5. On ArabyHost

When you look up a domain, a resolver walks a chain of servers until it reaches the domain’s authoritative nameservers. If the chain breaks or signature validation fails, it replies SERVFAIL. In dig you’ll see status: SERVFAIL in the header; in nslookup, server can't find example.com: SERVFAIL; in the browser it usually surfaces as a not-found error such as DNS_PROBE_FINISHED_NXDOMAIN or ERR_NAME_NOT_RESOLVED.

Common causes

  • A DNSSEC failure: the DS record at the registrar doesn’t match the zone’s keys, typically after moving to a new DNS provider without removing the old DS. See DNSSEC.
  • Lame delegation: the listed nameservers don’t hold the domain’s zone, so they refuse to answer.
  • Unresponsive nameservers: down or blocked by a firewall.
  • Wrong glue: the nameservers live under the domain itself (like ns1.example.com) and their registered IP is outdated. See glue record.
  • A broken zone on the server that prevents it from loading.
  • A fault in the resolver you use, which is less common.

How to diagnose it

1. Confirm from more than one resolver

dig example.com A @1.1.1.1
dig example.com A @8.8.8.8

If both return SERVFAIL, the problem is the domain. If only one does, that resolver is the likely culprit.

2. Test DNSSEC

dig example.com A +cd
dig DS example.com +short

+cd asks for the answer without signature checks. If it works with +cd and fails without, DNSSEC is the cause. If a DS record exists but your current DNS provider doesn’t sign the zone, remove the DS at the registrar.

3. Query the nameservers directly

dig NS example.com +trace
dig @ns1.arabicode.com example.com A

Every nameserver listed in the +trace output should answer with the aa (authoritative) flag. If one returns REFUSED or times out, the domain isn’t set up on that server or the server is down.

How to fix it

  1. DNSSEC: delete the old DS record in the domain’s settings at your registrar, or replace it with the correct value from your current DNS provider. The error clears once the DS record’s cache expires.
  2. Lame delegation: add the domain to the hosting or DNS provider the nameservers point to, or change the nameservers to the correct ones as in the change nameservers guide.
  3. Glue: update the IP addresses of your private nameservers at the registrar.
  4. Re-check with the DNS lookup tool until the answer comes back NOERROR.

Prevention

  • Before moving nameservers, remove the DS record if DNSSEC is on at the old provider, and wait for the cache to expire.
  • Add the domain to the new provider before switching nameservers.
  • Check the domain after every delegation change instead of waiting for visitors to complain.

On ArabyHost

When moving a domain to ns1.arabicode.com and ns2.arabicode.com, first remove any old DS record at the registrar if DNSSEC was enabled at the previous provider; it’s the most common reason for SERVFAIL after a move. Also make sure the domain is added to your account, so its zone and essential records are created automatically. Propagation can take up to 24-48 hours; if the error remains after that, send the dig output to our Arabic-speaking support.

FAQ

What's the difference between SERVFAIL and NXDOMAIN?

NXDOMAIN is a definite answer that the name doesn't exist. SERVFAIL means the resolver couldn't get a trustworthy answer at all, so the domain may exist and be fine while something in the DNS chain is broken.

Why does the domain work for some people and return SERVFAIL for others?

Some public resolvers validate DNSSEC and some don't. If the DS record is wrong, only the validating ones fail, such as 1.1.1.1 and 8.8.8.8.

Should I enable DNSSEC to avoid this?

DNSSEC protects against forged answers, but it needs the registrar and DNS provider to stay in sync. Only add a DS record if your current DNS provider actually signs the zone, and remove it before moving nameservers.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.