> ## Documentation Index
> Fetch the complete documentation index at: https://help.hoopai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailgun DNS setup by registrar

> Step-by-step DNS record setup for Mailgun across GoDaddy, Namecheap, Cloudflare, Google Domains, SiteGround, and HostGator.

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.

<Note>
  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.
</Note>

***

## Records you need to add

Every Mailgun domain requires these DNS records:

| Record type    | Purpose                                   | Example value             |
| -------------- | ----------------------------------------- | ------------------------- |
| **MX**         | Receives bounce notifications             | and                       |
| **TXT (SPF)**  | Authorizes Mailgun to send on your behalf |                           |
| **TXT (DKIM)** | Adds a cryptographic signature to emails  | Long string starting with |
| **CNAME**      | Email tracking domain                     | Points to                 |

***

## Setup by registrar

<Tabs>
  <Tab title="GoDaddy">
    <Steps>
      <Step title="Open DNS management">
        Log in to GoDaddy, go to **My Products**, find your domain, and click **DNS** (or **Manage DNS**).
      </Step>

      <Step title="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 .
      </Step>

      <Step title="Add SPF TXT record">
        Click **Add**, set **Type** to TXT, **Host** to your subdomain, and **TXT Value** to .
      </Step>

      <Step title="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.

        <Warning>
          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.
        </Warning>
      </Step>

      <Step title="Add CNAME record">
        Click **Add**, set **Type** to CNAME, **Host** to  (or the tracking subdomain from Mailgun), and **Points to** as .
      </Step>

      <Step title="Verify in Mailgun">
        Return to your Mailgun dashboard and click **Verify DNS Settings**. Allow up to 48 hours for propagation.
      </Step>
    </Steps>

    <Tip>
      GoDaddy sometimes appends your domain to the Host field automatically. If the Host should be , enter only  — GoDaddy adds the rest.
    </Tip>
  </Tab>

  <Tab title="Namecheap">
    <Steps>
      <Step title="Open advanced DNS">
        Log in to Namecheap, go to **Domain List**, click **Manage** next to your domain, then select the **Advanced DNS** tab.
      </Step>

      <Step title="Add MX records">
        Click **Add New Record**, select MX, set **Host** to your subdomain, **Value** to , and **Priority** to . Repeat for .
      </Step>

      <Step title="Add TXT records">
        Add SPF and DKIM TXT records with the appropriate host names and values from Mailgun.
      </Step>

      <Step title="Add CNAME record">
        Add the CNAME record for email tracking pointing to .
      </Step>

      <Step title="Verify">
        Save all records and verify in Mailgun. Namecheap DNS typically propagates within 30 minutes.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Cloudflare">
    <Steps>
      <Step title="Open DNS settings">
        Log in to Cloudflare, select your domain, and click **DNS** in the sidebar.
      </Step>

      <Step title="Add all records">
        Add MX, SPF TXT, DKIM TXT, and CNAME records using Cloudflare's **Add record** button.

        <Warning>
          Turn **off** the Cloudflare proxy (orange cloud) for all Mailgun DNS records. MX, TXT, and CNAME records used for email must be DNS-only (grey cloud). Proxied records will break email delivery.
        </Warning>
      </Step>

      <Step title="Verify">
        Verify in Mailgun. Cloudflare DNS changes propagate within minutes.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Google Domains">
    <Steps>
      <Step title="Open DNS settings">
        Log in to Google Domains (or Squarespace Domains if migrated), select your domain, and click **DNS** in the left sidebar.
      </Step>

      <Step title="Add custom records">
        Scroll to the **Custom records** section and add MX, TXT (SPF and DKIM), and CNAME records with the values from your Mailgun dashboard.
      </Step>

      <Step title="Verify">
        Save and verify in Mailgun. Google Domains propagation is typically under 1 hour.
      </Step>
    </Steps>
  </Tab>

  <Tab title="SiteGround">
    <Steps>
      <Step title="Open DNS zone editor">
        Log in to SiteGround, go to **Websites > Site Tools > Domain > DNS Zone Editor**.
      </Step>

      <Step title="Add records">
        Use the record type tabs (MX, TXT, CNAME) to add all required Mailgun records.
      </Step>

      <Step title="Verify">
        Save and verify in Mailgun.
      </Step>
    </Steps>
  </Tab>

  <Tab title="HostGator">
    <Steps>
      <Step title="Open DNS management">
        Log in to HostGator cPanel and search for **Advanced DNS Zone Editor**.
      </Step>

      <Step title="Add records">
        Add MX, TXT (SPF and DKIM), and CNAME records using the zone editor.
      </Step>

      <Step title="Verify">
        Save all records and verify in Mailgun. HostGator propagation can take up to 24 hours.
      </Step>
    </Steps>
  </Tab>
</Tabs>

***

## Common pitfalls

<AccordionGroup>
  <Accordion title="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.
  </Accordion>

  <Accordion title="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.
  </Accordion>

  <Accordion title="DKIM key truncated">
    Some registrars truncate long TXT values. If DKIM verification fails, check that the full key was saved.
  </Accordion>

  <Accordion title="Existing MX records conflicting">
    Remove existing MX records for your subdomain before adding Mailgun MX records.
  </Accordion>

  <Accordion title="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.
  </Accordion>
</AccordionGroup>
