# Mailgun domain not verified / 'Domain not found': DNS records (SPF, DKIM, MX, tracking CNAME) missing

**Code:** `domain verify` · **Category:** Email / SMTP · **Seen on:** Mailgun, DNS, Email

Mailgun can't send or marks the domain unverified because required DNS records aren't published.

## Meaning

Add the TXT (SPF), DKIM TXT (`k1._domainkey` or similar), MX (for receiving) and CNAME (tracking) records exactly as shown in the dashboard, remove duplicate SPF records, avoid Cloudflare proxy for CNAMEs, wait for propagation and click "Verify DNS settings".

## Common causes

- Records not added or typos
- Duplicate SPF record
- Cloudflare proxying on CNAME
- DNS propagation delay
- Wrong domain/subdomain used

## Quick fix

1. Copy records exactly from the dashboard
2. Merge SPF includes into a single record
3. Disable proxy on tracking CNAME and verify

## Detailed fix by platform

### Shell

1. 

```bash
dig +short TXT mg.example.com
dig +short TXT k1._domainkey.mg.example.com
```


## How to diagnose

1. **TXT/DKIM** — Published?
2. **SPF** — Single record?
3. **Proxy** — Off?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/email/mailgun-domain-not-verified-dns-records)
