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:2082).

  2. After loging in, click on Advanced DNS Zone Editor option under Domains heading.

    Select Advanced DNS Zone Editor to Manage DNS Records

  3. Here, you will find zone files which allow you to control the way in which DNS functions.

  4. Now, select a domain from the drop down list for which you would like to manage the DNS records e.g. here we have selected accudemo.com.

    Select a Domain Name for which You Want to Manage DNS Records

  5. You are now able to add, edit, delete DNS records for your domain.

Let’s understand each of them …

Add DNS Records:

  1. Add “A” Record 
    • An A record is the pointer record which is used to point your website to a server. To add A record, fill out the details explained in below screen capture and click on Add Record button:

      Add New "A" Record for Your Domain

  2. Add “CNAME” Record 
    • CNAME record is the canonical record which is an alias for your domain name. To add CNAME record, fill out the details explained in below screen capture and click on Add Record button:

      Add New "CNAME" Record for Your Domain

  3. Add “TXT” Record 
    • TXT record is the text record (Sender Policy Framework - SPF record) which is used to identify which email server is allowed to send emails for a domain. To add TXT record, fill out the details explained in below screen capture and click on Add Record button:

      Add New "TXT" Record for Your Domain


Edit DNS Records:

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

    Click on Edit to Edit Any DNS Record

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

Delete DNS Records:

  1. You can delete any DNS record if it is not required for your domain. Deletion of DNS record may interrupt the related service hence before deleting a record make sure that it is really not required.

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

    Click on Delete to Delete Any DNS Record


Add/Edit/Delete “MX” Record:

  1. MX record is the mail exchange record which is required for email service. To manage MX record you will first have to click on MX Entry option from your cPanel home page.

    Select MX Entry Option to Manage MX Record

  2. Select a domain from the drop down list for which you would like to manage MX record e.g. here we have selected accudemo.com.

    Select a Domain Name from Drop Down to Manage MX Record

  3. If requires then make changes in Email Routing options. Local Mail Exchanger is the most preferable option however you can select any one of them as per your need. For more details regarding each option, you can click on "more>>" link.

    Select Appropriate Email Routing Option

  4. Now, in order to add a new MX record, go to Add New Record section, fill out the details explained in below screen capture and click on Add New Record button.

    Add New "MX" Record for Your Domain

  5. If you want to make any change in the current MX record then you can easily do it using Edit option. In order to edit MX record click on Edit option as shown in below screen capture:

    Edt MX Record by Clicking on Edit Option

  6. It will load the settings configured currently. You can make required changes as per your need and click on Edit button.

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

    Delete MX Record by Clicking on Delete Option

These all are general records that are required for web and email services. cPanel supports total 6 types of records viz., A, AAAA, MX, SRV, TXT and CNAME. In case if you want to add any record other than this, you can add it directly under the DNS zone of your domain through WHM panel. 
Note: The changes made in nameservers may require 48-72 hours and the changes made in DNS records may require 24-48 hours to propagate across the globe.
  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

How to add a record with the DNS Zone Editor in cPanel?

  How to add a record with the DNS Zone Editor in cPanelThis demo assumes you've already logged...

How to add an MX entry in cPanel?

  How to add an MX entry in cPanelThis demo assumes you've already logged in to cPanel, and are...

How to backup your website in cPanel?

  How to backup your website in cPanelThis demo assumes you've already logged in to cPanel, and...

How to Change PHP Directives Globally from WHM with EasyApache 4?

You can follow below steps to change the values of PHP directives for all the websites running a...

How to change PHP version from cPanel?

The latest version of cPanel/WHM (58.3.x) is shipped with the EasyApache 4.0. It allows you to...