Skip to main content
When you set up a dedicated sending domain with Mailgun, you need to add specific DNS records at your domain registrar. The record values come from Mailgun, but where and how you enter them varies by registrar.
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:
Record typePurposeExample value
MXReceives bounce notificationsand
TXT (SPF)Authorizes Mailgun to send on your behalf
TXT (DKIM)Adds a cryptographic signature to emailsLong string starting with
CNAMEEmail tracking domainPoints to

Setup by registrar

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.
GoDaddy has a 1024-character limit for TXT records. If your DKIM key is longer, you may need to split it across two quoted strings. Mailgun support can help with this.
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.
GoDaddy sometimes appends your domain to the Host field automatically. If the Host should be , enter only — GoDaddy adds the rest.

Common pitfalls

Mailgun domains are typically subdomains (e.g., ). Make sure you enter the subdomain in the Host field, not the root domain.
Cloudflare’s orange-cloud proxy must be disabled for all email-related DNS records. Proxied records will cause verification failures.
Some registrars truncate long TXT values. If DKIM verification fails, check that the full key was saved.
Remove existing MX records for your subdomain before adding Mailgun MX records.
If verification fails immediately after adding records, wait 1-2 hours and try again. Full global propagation can take up to 48 hours.
Last modified on March 6, 2026