# GoDaddy Domain Setup

### Introduction

Setting up custom domains with Mailgun can be a bit challenging for some users. This guide aims to simplify the process, using a video tutorial as a reference. By the end, you'll have a clear understanding of how to set up Mailgun custom domains, particularly with GoDaddy, though the principles can be applied to any DNS provider.

### Overview

The process involves:

1. Logging into Mailgun and your DNS provider (GoDaddy in this example).
2. Creating a subdomain in Mailgun.
3. Adding the necessary DNS records in your DNS provider.
4. Verifying the DNS records in Mailgun.

## Step-by-step Mailgun Setup - GoDaddy Domain Setup <a href="#step-by-step-mailgun-setup-godaddy-domain-setup" id="step-by-step-mailgun-setup-godaddy-domain-setup"></a>

1\. Sign up for [Mailgun.com](https://signup.mailgun.com/new/signup)

2\. Check your email inbox to verify the email address.

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284378416/original/VewuZVN3oFOFIvBdf4XqMAOX4vtVGv_jNg.png?1677630998" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284378421/original/GU6IL6Y3N81qm6KMH9aTz7l5FV5IEv7ySA.png?1677630999" alt=""><figcaption></figcaption></figure>

3\. Login to Mailgun, Click on **Sending** > **Add New Domain**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284378418/original/kxsnymCeuFAsBWkXaOes6QaaWED2_bfASA.png?1677630999" alt=""><figcaption></figcaption></figure>

4\. If your domain is companyname.com, you can either set up the main domain or subdomain with Mailgun.&#x20;

A. Main domain:

* If you are adding the main domain,[ it should not be used with Gsuite, or any other email provider](https://help.mailgun.com/hc/en-us/articles/203357040-Can-I-Use-the-Same-Domain-Name-for-Mailgun-and-for-Google-Apps-Or-Another-Email-Server-)&#x20;

&#x20;   Subdomain:

* To set up the subdomain with Mailgun, you can type **ANYTHING\_HERE**.companyname.com
  * Examples:
    * mg.companyname.com
    * replies.companyname.com
    * support.companyname.com

B. Please set up the domain or subdomain under US, **not EU. not EU. not EU.**&#x20;

C. Click on **Add domain**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284382652/original/woVjMqNw3YY_Zjs20LoBHUb4KrThVvj_Rw.png?1677635102" alt=""><figcaption></figcaption></figure>

The next screen that you're taken to will ask you to add DNS records to your domain. Leave this screen open for the next step.

<figure><img src="https://help.mailgun.com/hc/article_attachments/8759612958491/Screen_Shot_2022-09-11_at_6.39.22_PM.png" alt=""><figcaption></figcaption></figure>

5\. Now log in to your DNS records based on where you get the domain and add the 5 DNS records.

### To add the 1st TXT record <a href="#to-add-the-1st-txt-record" id="to-add-the-1st-txt-record"></a>

\
To [Add your first TXT record](https://ca.godaddy.com/help/add-a-txt-record-19232), Sign in to your [GoDaddy Domain Portfolio](https://dcc.godaddy.com/control/portfolio).&#x20;

Click on the three dots for the Domain Edit Options next to your domain

Select **Edit DNS**. You may need to scroll down to see the Edit DNS option.

![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383735/original/cgJYei63pjBqxqUREcrgnMBHMYjimo-FBA.png?1677636137)

Click on **Add** to add a new record.

[![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223)

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284384102/original/N9CKo-PVMexPIY_hCkU3qz4FgWu5LCmiKw.png?1677636518" alt=""><figcaption></figcaption></figure>

\
A. Type: Select **TXT** from the Type menu options.

B. Host: **DO NOT INCLUDE THE ROOT DOMAIN**<br>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292759996/original/0Cj6mdSJlEYwYG4Qt4KqNjenCcUdx500Tw.png?1681494292" alt=""><figcaption></figcaption></figure>

* Depending on the subdomain you are trying to set up, if you are trying to set up
  * [mg.companyname.com](https://mg.companyname.com/) The host name will be **mg**
  * [replies.companyname.com](https://replies.companyname.com/) The host name will be **replies**
* If you are setting up a **main** domain like companyname.com, the host name will be **@**

C. TXT Value: Same for everyone

* paste the following record **v=spf1 include:mailgun.org \~all**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292760093/original/5Gl9rXwkPu648V7b7A73EVcYsiwQjSX3fQ.png?1681494342" alt=""><figcaption></figcaption></figure>

D. Click on **Save**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292760158/original/whQOMoD2hGeHEbJgNmnIm1fdwCQhF1Mz9g.png?1681494360" alt=""><figcaption></figcaption></figure>

### To add the 2nd TXT record <a href="#to-add-the-2nd-txt-record" id="to-add-the-2nd-txt-record"></a>

Click on **Add** to add a new record.

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284384815/original/FlVncn3L0vrYLOa9P1vI4X9Pt16_Q-FUOg.png?1677637017" alt=""><figcaption></figcaption></figure>

A. Type:

&#x20;   Select **TXT** from the Type menu options.

B. Host:

&#x20;   it's a bit tricky but the key here is to copy everything from the beginning until the subdomain part, **DO NOT INCLUDE THE ROOT DOMAIN**

<br>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292760457/original/uKwd7XSYgsN0abFfq-uLghjMc4gYBKFShw.png?1681494446" alt=""><figcaption></figcaption></figure>

**\*\*Everyone's 2nd TXT record host name and value is different**

Examples: **copy the highlighted part ONLY**

| <p>Example 1 using subdomain:</p><p><br></p><p>Copy mx.\_domainkey.helpdesk as the host name</p> | [![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284380215/original/t6MGY8Bw9AK1Vv01kUxtJAkNwp_4UfYjHw.png?1677632945)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284380215/original/t6MGY8Bw9AK1Vv01kUxtJAkNwp_4UfYjHw.png?1677632945) |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Example 2 using main domain:</p><p><br></p><p>Copy mailo.\_domainkey as the host name</p>     | [![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284380223/original/JSERXQQhYNvzVp7YoXhIji_yeomZNLXUKA.png?1677632951)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284380223/original/JSERXQQhYNvzVp7YoXhIji_yeomZNLXUKA.png?1677632951) |

\
C. TXT Value: Head back to Mailgun and Copy the 2nd TXT record here **highlighted in the screenshot below**

* Value: paste the 2nd very long copied TXT record here

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385043/original/UvAhE3LGN5sYkTb4kyEsXNM0GE0Uc8Eq1Q.png?1677637220" alt=""><figcaption></figcaption></figure>

D. Click on **Save**<br>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292760542/original/dHr8OmpttMWN0VMOkXNfAi5G8Ou_hQUiVQ.png?1681494507" alt=""><figcaption></figcaption></figure>

### To add the 1st MX records  <a href="#to-add-the-1st-mx-records" id="to-add-the-1st-mx-records"></a>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385538/original/qHcrrZPnp3g0LC4c75qM1hg_opwYUXgE0w.png?1677637720" alt=""><figcaption></figcaption></figure>

Click on **Add** to add a new record

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385352/original/nEr12soR47bfSHjwNBS075J4Dr_Fd3jqUQ.png?1677637478" alt=""><figcaption></figcaption></figure>

If you have a Gsuite account to capture incoming emails for the main domain. Make sure you are using a subdomain for Mailgun. Check out [Can I Use the Same Domain Name for Mailgun and for Google Apps (Or Another Email Server)?](https://help.mailgun.com/hc/en-us/articles/203357040-Can-I-Use-the-Same-Domain-Name-for-Mailgun-and-for-Google-Apps-Or-Another-Email-Server-)

A. Type: Select **MX** from the Type menu options.

B. Host: Different for everyone

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292761281/original/ilff0N0hrTpB9rOZOLtKWFcpd_pFm1FAAg.png?1681494876" alt=""><figcaption></figcaption></figure>

Depending on the subdomain you are trying to set up, if you are trying to set up

[mg.companyname.com](https://mg.companyname.com/) The host name will be **mg**

[replies.companyname.com](https://replies.companyname.com/) The host name will be **replies**

If you are setting up a **main** domain like companyname.com, the host name will be **@**

C. Points to: Same for everyone

&#x20;   paste the following data [**mxa.mailgun.org**](https://mxa.mailgun.org/)&#x20;

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292760093/original/5Gl9rXwkPu648V7b7A73EVcYsiwQjSX3fQ.png?1681494342" alt=""><figcaption></figcaption></figure>

D. Priority is **10** which is also same for everyone no matter what domain you are trying to set

E. Click on **Save**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292761314/original/r1sCz03HEK4u2NnzjZxK6TRXfTixx9qJpg.png?1681494889" alt=""><figcaption></figcaption></figure>

### To add the 2nd MX records

Click on **Add** to add a new record.

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385634/original/wYOidp2P0QPZbDYtP60qHBim2dahkciEMw.png?1677637830" alt=""><figcaption></figcaption></figure>

A. Type: Select **MX** from the Type menu options.

B. Host: Different for everyone

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292761375/original/qVuzSSON9aWqKQCpGlKX89woV1txgzea3g.png?1681494908" alt=""><figcaption></figcaption></figure>

Depending on the subdomain you are trying to set up, if you are trying to set up

[mg.companyname.com](https://mg.companyname.com/) The host name will be **mg**

[replies.companyname.com](https://replies.companyname.com/) The host name will be **replies**

If you are setting up a **main** domain like companyname.com, the host name will be **@**

C. Points to: Same for everyone

&#x20;   paste the following data **mxb.mailgun.org**&#x20;

D. Priority is **10** which is also same for everyone no matter what domain you are trying to set

E. Click on **Save**

### To add the CNAME record <a href="#to-add-the-cname-record" id="to-add-the-cname-record"></a>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385721/original/3LyKoigujZ-vEjMFQDflCfmRRfAJra3rYA.png?1677637907" alt=""><figcaption></figcaption></figure>

Click on **Add** to add a new record.

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284383808/original/H6np93jJkfJVHPLdTaLTLmRgo2mB_c6JRA.png?1677636223" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284385821/original/Z_H7aEV9Fj-ulIPJTmhnmpgRUG-CWVntNA.png?1677638013" alt=""><figcaption></figcaption></figure>

A. Type: Select **CNAME** from the Type menu options.

B. Host: Different for everyone

Head back to Mailgun to copy the host name, it's a bit tricky but the key here is to copy everything from the beginning until the subdomain part, **DO NOT copy the main domain**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292761488/original/yTenM0KsBABRkiuopqOQIzy7E_TjKkeVDw.png?1681494956" alt=""><figcaption></figcaption></figure>

Depending on the subdomain you are trying to set up, if you are trying to set up

* mg.companyname.com The host name will be **email.mg**
* replies.companyname.com The host name will be **email.replies**

If you are setting up a **main** domain like companyname.com, the host name will be **email**

C. Points to: Same for everyone

&#x20;       paste the following data **mailgun.org**

D. Click on **Save**

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48292761511/original/Q-pg6CdROQ4wXlfIoOIOkvDgY1yJdVN1Ug.png?1681494965" alt=""><figcaption></figcaption></figure>

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284386112/original/kW6t3s2sXMcjCylHMSgGSwJy8HDwA4momQ.png?1677638281" alt=""><figcaption></figcaption></figure>

Now that you have added 5 records, Go back to Mailgun and click on **Verify DNS Settings**

Click the same button to **Verify DNS Settings** again if some records are still not showing the green checkmark

<figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48284382101/original/PQecmA9d0ihGiF3VchOhZL1VKMrOZmUvDQ.png?1677634628" alt=""><figcaption></figcaption></figure>

### Conclusion

Setting up custom domains with Mailgun is a straightforward process once you understand the steps. This guide, combined with the video tutorial, should provide you with all the information you need to successfully set up your custom domain. Remember, while this example used GoDaddy, the principles remain the same for other DNS providers.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getgymini.com/gymini/features/features-overview/email/mailgun/setting-up-mailgun/godaddy-domain-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
