If your domain isn’t registered in the same account as your hosting or it’s registered elsewhere, use the following DNS records for your cPanel shared hosting account’s Web hosting and email.

NOTE: DNS changes can take up to 48 hours to take effect across the Internet.

Mandatory

Record Type Host Points to
A (Host) @ Your hosting account’s IP address. For more information, see Finding Your Hosting Account’s IP Address.
CNAME www @
CNAME mail @
MX (Mail Exchanger) @ mail.[your domain name], for example mail.coolexample.comNOTE: Use MX Priority 0

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.

If you have your cPanel site set up on a subdomain (e.g. cpanel.coolexample.com), replace each instance of “@” with your subdomain and use the domain name including the subdomain in the MX record.

If your domain is registered here, you can make these changes through your domain’s DNS manager. For more information, see Managing DNS for Your Domain Names.

Optional

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 hosting account’s IP address. For more information, see Finding Your Hosting Account’s IP Address.
CNAME autoconfig @
CNAME autoconfig.admin @
CNAME autodiscover @
CNAME autodiscover.admin @
CNAME cpanel @
CNAME ftp @
CNAME mail @
CNAME webdisk @
CNAME webdisk.admin @
CNAME webmail @
CNAME whm @
CNAME www.admin @
TXT @ v=spf1 a mx ptr include:secureserver.net ~all
TXT admin v=spf1 a mx ptr include:secureserver.net ~all
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:

CNAMEs — email, imap, pop, and smtp