# Hostinger

## How to Add TXT, MX & CNAME Records for a Sending Domain in Hostinger

Setting up a sending domain involves adding TXT and CNAME records to your DNS. These records authenticate your emails, ensuring better deliverability and reducing the chances of emails being flagged as spam. Follow this guide to configure your sending domain in Hostinger.

## What Are TXT, MX & CNAME Records for a Sending Domain?

* **TXT Records:** These are used to store text-based information, such as SPF, DKIM, and DMARC configurations, which verify that your emails are sent from authorized servers.
* **CNAME Records:** These are used to alias a domain or subdomain to another domain, often for domain verification or tracking purposes.
* **MX Records**: **MX (Mail Exchange)** records direct email messages to the correct mail servers for your domain. These records are essential for receiving emails. They specify which servers should handle incoming mail, ensuring that emails are properly routed to your inbox.

## Steps to Add TXT and CNAME Records

1. Go to [Hostinger's website](https://www.hostinger.in) and log into your account.
2. Select the domain you want to configure as your sending domain.
3. Click Manage - To Add TXT, CNAME & MX Records

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2Fik173iHxXNiEIXiG9bOB%2Fh1.png?alt=media&#x26;token=87c9bbb1-d0e6-4fdb-9253-6f55f79127d3" alt=""><figcaption><p>Login in Hostinger</p></figcaption></figure>

## **Access DNS Settings**

* In the Hostinger dashboard, navigate to the **"Domains"** section.
* Select the domain for which you want to add the TXT and CNAME records.
* Click on "**Manage"**

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FrCr8wFCMOFKJwJhmABfB%2F2.png?alt=media&#x26;token=a324cf46-fc7d-4903-805e-32e6df8d58f6" alt=""><figcaption><p>Manage the Domain - To Add TXT &#x26; CNAME</p></figcaption></figure>

## Add DKIM TXT Record&#x20;

* Click **Add New Record**.
* **Type**: TXT
* **Host**: `smtp._domainkey.send` ------> Remove root domain (example.com or myshirt.com)
* **Value**: `k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPpjWd8wuHzpdR47yGXxG5dpRd//lsxC4JK...`
* Save the record.

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FfgxidOPxqB3X0FifaohS%2F4.png?alt=media&#x26;token=4263928b-4849-4333-bb86-ab766af83d6a" alt=""><figcaption><p>Adding DKIM &#x26; SPF - TXT record</p></figcaption></figure>

## Add SPF TXT Record

* Click **Add New Record** again.
* **Type**: TXT
* **Host**: `send` ------> Remove root domain (example.com or myshirt.com)
* **Value**: `v=spf1 include.......`
* Save the record.

## Add **CNAME**  Record

* Click **Add New Record** again.
* **Type**: CNAME
* **Host**: `email.send`------> Remove root domain (example.com or myshirt.com)
* **Value**: `mailgun.org`
* Save the record.

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FesrqcTKzWGbhuUbGGHuK%2Fh4.png?alt=media&#x26;token=02c0527d-6458-48d2-a19c-31fef28acd1e" alt=""><figcaption><p>CNAME - Choose the Option</p></figcaption></figure>

{% hint style="success" %}
**NOTE: FOLLOW THE SAME STEPS TO ADD DMARC RECORDS.**
{% endhint %}

## Add **MX**  Record

* Click **Add New Record** again.
* **Type**: MX
* **Host**: `send`------> Remove root domain (example.com or myshirt.com)
* **Value a**: `mxa.mailgun.org`
* **Value b**: `mxb.mailgun.org`
* Save the record.

<figure><img src="https://837552055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDdKRAW4KzC-CNNbvnH%2Fuploads%2FdB4RzXa2CYkO7R3LW6eL%2Fh6.png?alt=media&#x26;token=162570a8-d785-47f5-9ac9-f9174db6b5ef" alt=""><figcaption><p>Adding MX record </p></figcaption></figure>

## Verify the DNS Records

* Once you’ve added these records, it may take up to 24-48 hours for DNS propagation.
* Use tools like [MXToolbox](https://mxtoolbox.com) to check the status of the DKIM, SPF, CNAME & records.

{% hint style="success" %}
**Need More Help?**\
\
We’re here to make things easier for you!

* Email Us: Reach out anytime at <support@retainful.com><mark style="color:orange;">.</mark>
* Schedule a Call: Still stuck or need a hands-on walkthrough? Book a quick session with our support team, and we’ll guide you step-by-step.

[<mark style="color:blue;">**Schedule a call with us**</mark>](https://zcal.co/retainful/onboarding)<mark style="color:blue;">**.**</mark>
{% endhint %}
