How to Configure DNS Records for Your Website & Email

This is the official tutorial for setting up your domain’s DNS records. Please follow these steps carefully to ensure your website and email services work properly.

⚠️ Important Notes

👉 Replace yourwebsite.com with your actual domain name.

👉 In all places where you see 111.11.11.111 replace it with your actual server IP address.

How to find your IP address:
Log in to Plesk → Click Websites & Domains → Click your domain → You will see the IP address at the bottom of the page.

👉 Replace [YOUR_DKIM_KEY] with the actual DKIM public key provided for your domain (you can generate this from your hosting/mail server).

How to get [YOUR_DKIM_KEY] in Plesk:

1️⃣ Log in to Plesk.

2️⃣ Go to Mail > Mail Settings.

3️⃣ Select your domain (yourwebsite.com).

4️⃣ Enable “Use DKIM spam protection system to sign outgoing email messages” (if not already enabled).

5️⃣ Then go to Mail > DNS Settings.

6️⃣ You will see a TXT record starting with default._domainkey.

7️⃣ Copy the entire value of the p= key (everything after p=).

8️⃣ Paste this as [YOUR_DKIM_KEY] in the record above.

 

 

1️⃣ Log in to Your DNS Management Panel

  • Go to your domain registrar or DNS provider (such as GoDaddy, Turhost, IHS, Cloudflare, etc.).

  • Open DNS Management or DNS Settings.

 

2️⃣ Add the Following DNS Records

 

DKIM Records (TXT)

Type

Name

Value

TXT

default._domainkey

v=DKIM1; p=[YOUR_DKIM_KEY]

TXT

_domainkey

o=-

 

3️⃣ Email Service Records (SRV)

Type

Name

Priority / Weight / Port

Target

SRV

_imaps._tcp

0 0 993

mail.yourwebsite.com

SRV

_pop3s._tcp

0 0 995

mail.yourwebsite.com

SRV

_smtps._tcp

0 0 465

mail.yourwebsite.com

 

 

4️⃣ A Records (IP Address)

Type

Name

Value (IP Address)

A

mail

111.11.11.111

A

webmail

111.11.11.111

A

ipv4

111.11.11.111

A

@ (root domain)

111.11.11.111

 

5️⃣ CNAME Records

Type

Name

Target

CNAME

www

yourwebsite.com

CNAME

ftp

yourwebsite.com

 

 

6️⃣ DMARC Record (TXT)

Type

Name

Value

TXT

_dmarc

v=DMARC1; p=quarantine; adkim=s; aspf=s

 

 

7️⃣ SPF Record (TXT)

Type

Name

Value

TXT

@

v=spf1 ip4:111.11.11.111 a mx -all

 

 

8️⃣ MX Records (Mail Routing)

Type

Name

Priority

Target

MX

@

10

mail.yourwebsite.com

 

⚠️ Important Notes

TTL: You can use the default value (usually 3600 seconds or Automatic).

Quotation marks (”) must be included for TXT records.

✅ Carefully copy/paste all values — typos can cause email issues.

✅ If using Cloudflare, disable Proxy (orange cloud) for all mail-related records — use grey cloud.

 

 

🎉 How to Verify Your Setup

✅ Use these tools to verify your DNS records:

👉 dnschecker.org → check global propagation

👉 mxtoolbox.com → check mail records

👉 mail-tester.com → test your email spam score

 

 

✋ Need Assistance?

If you are unsure or face any problems, please contact our support team — we are happy to help!

 

Facebook
LinkedIn
X
Telegram
Reddit
WhatsApp
Print
Email