# DNSSEC: SERVFAIL after enabling DNSSEC — DS record at registrar does not match Cloudflare

**Code:** `DS record mismatch` · **Category:** Cloudflare · **Seen on:** Cloudflare, DNS

Resolvers fail the domain because the DS record at the registrar differs from the DNSKEY at Cloudflare.

## Meaning

DNSSEC needs the registrar's DS record to match the zone's keys. Enabling it in Cloudflare without adding the DS at the registrar (or leaving an old DS after moving DNS) breaks validation and the domain returns SERVFAIL for validating resolvers.

## Common causes

- DS record not added at the registrar
- Old DS left after moving DNS provider
- Key rotation not reflected
- Typos in DS fields

## Quick fix

1. Add Cloudflare's DS record at the registrar
2. Remove the DS at the registrar before moving DNS
3. Verify with `dig +dnssec`

## Detailed fix by platform

### Shell

1. `dig example.com DNSKEY +dnssec` and `dig DS example.com @a.gtld-servers.net`

## How to diagnose

1. **DS** — Matches DNSKEY?
2. **Move** — DNS provider changed?
3. **Resolver** — Validating?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/cloudflare/dnssec-ds-record-mismatch-servfail)
