Configuring DNS for your cPanel domain

Configuring DNS for your cPanel domain

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 TypeHostPoints to
A (Host)@Your account's IP address (Shared Hosting/Server)
A (Host)mailYour account's IP address (Shared Hosting/Server)
CNAMEwww@
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.

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.

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 TypeHostPoints to/Value
A (Host)adminYour account's IP address (Shared Hosting/Server)
CNAMEautoconfig@
CNAMEautoconfig.admin@
CNAMEautodiscover@
CNAMEautodiscover.admin@
CNAMEcpanel@
CNAMEftp@
CNAMEwebdisk@
CNAMEwebdisk.admin@
CNAMEwebmail@
CNAMEwhm@
CNAMEwww.admin@
TXT@v=spf1 a mx ptr include:secureserver.net -all

NOTE: This record applies only to cPanel shared hosting accounts.
TXTadminv=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 TypeServiceProtocolNamePriorityWeightPortTarget
SRV_autodiscover_tcp@00443cpanelemaildiscovery.cpanel.net
SRV_autodiscover_tcpadmin00443cpanelemaildiscovery.cpanel.net

You can also remove the following DNS entries:

CNAME Records
email
imap
pop
smtp
    • Related Articles

    • Website Deployment Steps - Wordpress

      1 Create a Google account 2 Create a bitnami account 3. Add credit card to google engine for credit 4 Deploy VM and deploy google engine 5 Remove bitnami logo 6 increase upload capacity 7 Obtain Theme, upload it to the VM instance, and configure demo ...
    • Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application

      Assumptions and prerequisites This guide assumes that: You have deployed a Bitnami application and the application is available at a public IP address so that the Let’s Encrypt process can verify your domain. You have the necessary credentials to log ...
    • Renew Let's Encrypt Certificate

       Renew the Let’s Encrypt certificate Let’s Encrypt certificates are only valid for 90 days. To renew the certificate before it expires, run the following commands from the server console as the bitnami user. Remember to replace the DOMAIN placeholder ...