Before starting, open your Mailgun dashboard and navigate to Sending > Domains > DNS Records to get your specific record values. The records below use placeholder values — always copy the exact values from your Mailgun account.
Records you need to add
Every Mailgun domain requires these DNS records:Setup by registrar
- GoDaddy
- Namecheap
- Cloudflare
- Google Domains
- SiteGround
- HostGator
1
Open DNS management
Log in to GoDaddy, go to My Products, find your domain, and click DNS (or Manage DNS).
2
Add MX records
Click Add under the DNS Records section. Set Type to MX, Host to your subdomain (e.g., ), Points to as , and Priority to . Repeat for with priority .
3
Add SPF TXT record
Click Add, set Type to TXT, Host to your subdomain, and TXT Value to .
4
Add DKIM TXT record
Click Add, set Type to TXT, Host to the DKIM selector from Mailgun (e.g., ), and paste the full DKIM value.
5
Add CNAME record
Click Add, set Type to CNAME, Host to (or the tracking subdomain from Mailgun), and Points to as .
6
Verify in Mailgun
Return to your Mailgun dashboard and click Verify DNS Settings. Allow up to 48 hours for propagation.
Common pitfalls
Records added to the root domain instead of the subdomain
Records added to the root domain instead of the subdomain
Mailgun domains are typically subdomains (e.g., ). Make sure you enter the subdomain in the Host field, not the root domain.
Cloudflare proxy enabled on email records
Cloudflare proxy enabled on email records
Cloudflare’s orange-cloud proxy must be disabled for all email-related DNS records. Proxied records will cause verification failures.
DKIM key truncated
DKIM key truncated
Some registrars truncate long TXT values. If DKIM verification fails, check that the full key was saved.
Existing MX records conflicting
Existing MX records conflicting
Remove existing MX records for your subdomain before adding Mailgun MX records.
DNS propagation delay
DNS propagation delay
If verification fails immediately after adding records, wait 1-2 hours and try again. Full global propagation can take up to 48 hours.