How to manage DNS records of a domain in cPanel?

cPanel/WHM is a hosting control panel for Linux users. It allows you to manage all general DNS records like A, MX, TXT, CNAME, etc. for your domains. Following are the steps to manage all these records through the control panel.

  1. First of all, login to your cPanel account (http://server-ip-address:2083).

  2. After logging in, click on the Zone Editor option under the Domains heading.

  3. Now, search a domain for which you would like to manage the DNS records e.g. here we have selected demovpstest.com

  4. You can click on the manage button to add, edit, delete DNS records for your domain.


Let’s understand each of them …

Add DNS Records:

How to add “A” Record?

  1. An A record is the pointer record for pointing your website to a server. Click on the A record button.

  2. Add your domain name and IP Address of A record and click on the Add a record button. 

How to Add CNAME Record

  1. CNAME record is the canonical record, which is an alias for your domain name. To add a CNAME record, click on the CNAME record button.

  2. Add your domain name and CNAME record. 


How to Add TXT Record?

  1. TXT record is the text record. You can add SPF and DKIM records using the TXT record. At first, click on the manage button. 

  2. Select TXT record. 

  3. Select TXT Record from the drop-down and enter your TXT record in the record field as per your requirement.

Edit DNS Records:

  1. If you want to change the current DNS records, you can easily do it using the Edit option. To edit any record, click on the Edit option as shown in the below screen capture:

  2. It will load the settings configured currently. You can make necessary changes as per your need and click on the Save Record button.

Delete DNS Records:

  1. You can delete any DNS record if it doesn't require for your domain. Deleting a DNS record may interrupt the related service; hence, before deleting a record, make sure that it is unnecessary.

  2. You can delete any record by clicking on the Delete option as shown in the below screen capture:

Add/Edit/Delete “MX” Record:

  1. MX record is the mail exchange record for email service. To add an MX record, click on the MX Record button.

  2. Click on the Add record and add your MX record with MX priority and mail domain. 

  3. If you want to change the current MX record, you can easily do it using the Edit option. To edit the MX record, click on the Edit option as shown in the below screen capture:

  4. It will load the settings configured currently. You can make necessary changes as per your need and click on the Save Record button.

  5. If you want to delete an MX record, you can do it by clicking on Delete option as shown in the below screen capture:

  6. Suppose you require to make changes in Email Routing options. Local Mail Exchanger is the preferable option. However, you can select any one of them as per your need.



cPanel supports a total of 5 types of records viz., A, AAAA, MX, TXT, and CNAME. If you want to add any record other than this, you can add it directly under the DNS zone of your domain through the WHM panel. Here is the video tutorial on managing the DNS zone from WHM.

Note: The changes made in nameservers may require 24-72 hours and the changes made in DNS records may require 24-48 hours to propagate across the globe.

Related Articles

How to Restore MySQL Database from phpMyAdmin?

This article will provide you the step by step guidance on how to restore MySQL database through...

How to view website statistics in cPanel?

AWStats produces visual statistics about visitors to your site. Linux cPanel/WHM users can view...

How to change MySQL user password from cPanel?

Steps to change MySQL user password from cPanel: Login to cPanel with provided credentials....

How to Delete An Email Account From cPanel?

This article will assist you to delete an email account from cPanel. Please be careful while you...

How to download MySQL database backup from cPanel?

You can download compressed MySQL database backup from cPanel. You will need to perform the...

  • 0 Users Found This Useful

Was this answer helpful?