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, log in to your cPanel account (http://server-ip-address:2083).

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

Zone Editor

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 the Manage button to add, edit, and delete DNS records for your domain.

Manage Domain


Let’s understand each of them …

Add DNS Records:

How to add an “A” Record?

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

A Record

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

Add A Record

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.

CNAME Record

2. Add your domain name and CNAME record.

Add 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. First, click on the manage button.

Manage Zone Editor

2. Select TXT record.

Select TXT Record

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

Add TXT Record

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:

Edit DNS Record

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

Save Record

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:

Delete DNS Record

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.

MX Record

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

Add MX Record

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:

Edit MX Record

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

Save MX Record

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

Delete MX Record

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

Email Routing

Change Local Mail Exchanger

cPanel supports 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.


Was this answer helpful?

« Back

chat