Configuring DNS for your cPanel domain


cPanel (both shared and on servers) lets you host a website and email for your domain names. To establish the connection between the domain name and your cPanel account, you need to change the domain name's DNS.

Mandatory Records

Record Type

Host

Points to

A (Host)

@

Your account's IP address

A (Host)

mail

Your account's IP address

CNAME

www

@

MX (Mail Exchanger)

@

mail.[your domain name], for example mail.coolexample.com

NOTE: Use MX Priority 0

 Warning: You must delete any other MX (Mail Exchanger) entries in the DNS zone file for your email to work. The MX entry listed above should be the only MX entry.

Note: DNS management conventions can vary and you should check with your provider if in doubt. For example, "@" is notation for the root/apex domain. If managing DNS manually through your Heart control panel, instead of entering "@" in the host (or subdomain) field, leave this blank. If you have your cPanel site set up on a subdomain (e.g. "subdomain.coolexample.com"), instead replace each instance of "@" with your subdomain and use the domain name including the subdomain in the MX record.

In the "Points to/Value" CNAME records below you may need to replace the "@" with your domain followed by a dot (e.g. "coolexample.com."). If the site is set up to use a subdomain this should also be included (e.g. "subdomain.coolexample.com.").

Optional Records

You do not need to add all of these records to your zone file, but doing so will make certain functions work, such as Autodiscovery through Outlook.

Record Type

Host

Points to/Value

A (Host)

admin

Your account's IP address

CNAME

autoconfig

@

CNAME

autoconfig.admin

@

CNAME

autodiscover

@

CNAME

autodiscover.admin

@

CNAME

cpanel

@

CNAME

ftp

@

CNAME

webdisk

@

CNAME

webdisk.admin

@

CNAME

webmail

@

CNAME

whm

@

CNAME

www.admin

@

TXT

@

v=spf1 a mx ptr include:secureserver.net -all

NOTE: This record applies only to cPanel shared hosting accounts.

TXT

admin

v=spf1 a mx ptr include:secureserver.net -all

NOTE: This record applies only to cPanel shared hosting accounts.

 Note: Only use the TXT records listed above if your domain is using cPanel email. If you have these TXT records, and you use another email provider with your domain, you may have problems sending email.

Record Type

Service

Protocol

Name

Priority

Weight

Port

Target

SRV

_autodiscover

_tcp

@

0

0

443

cpanelemaildiscovery.cpanel.net

SRV

_autodiscover

_tcp

admin

0

0

443

cpanelemaildiscovery.cpanel.net

You can also remove the following DNS entries:

CNAME Records

email

imap

pop

smtp



Article ID: 855
Created On: Wed, Jun 3, 2020 at 10:22 PM
Last Updated On: Fri, Nov 17, 2023 at 4:52 PM

Online URL: https://www.heartinternet.uk/support/article/configuring-dns-for-your-cpanel-domain.html