Passer au contenu principal
Maintenez vos activités pendant le COVID-19En savoir plus
Numéros de téléphone et heures
Centre d’aide

Explorez nos ressources d’aide en ligne


Linux Hosting (cPanel) Aide

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 (What is DNS?).

  • For shared hosting customers with domains in the same account as their hosting, we configure these for you automatically.
  • For everyone else, you will need to configure this DNS wherever your domain name is registered. If it's through us, you can use our DNS manager (more info). DNS changes can take up to 48 hours to take effect across the Internet.

Note: Need DNS help from a GoDaddy Guide? On our Contact Us page, click Chat Now for guidance 24/7.

Mandatory Records

Record Type Host Points to
A (Host) @ Your account's IP address (Shared Hosting/Server)
A (Host) mail Your account's IP address (Shared Hosting/Server)
CNAME www @
MX (Mail Exchanger) @ mail.[your domain name], for example

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.

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

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 (Shared Hosting/Server)
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 -all

NOTE: This record applies only to cPanel shared hosting accounts.
TXT admin v=spf1 a mx ptr -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
SRV _autodiscover _tcp admin 0 0 443

You can also remove the following DNS entries:

CNAME Records

Rubriques relatives à la communauté

azfar's Avatar
Dont receive emails (cPanel) - MX records?

2 Réponses

Last posted over 4 years ago.

fracico's Avatar
CNAME not propagating after 40 hours

1 Réponses

Last posted 14 days ago.

ec13's Avatar
Two places to set up DNS? Why?

6 Réponses

Last posted almost 2 years ago.

AHanda's Avatar
Changed the domain name for cpanel

3 Réponses

Last posted over 4 years ago.

aidanledyard's Avatar
Subdomain DNS

Soyez le premier à répondre

Last posted almost 3 years ago.

Vous ne voyez pas ce que vous recherchez ? Effectuez une recherche dans la communauté