How does the DNS Work and How To Edit DNS Records with cPanel
How Can You Manage DNS of Your Domain In cPanel
It is important to know working of DNS First before proceeding.When you register for a domain, the domain registrar provide you a control panel named Domain control panel (it is different from cPanel or any other web hosting control panels).
Here you can specify the name servers of the domain,you can renew the domain name, changes in contact information of the domain and many more. These name servers designated in the domain control panel are the authentic name servers of the domain. In these authoritative name servers, it needs to be a zone file in which the DNS records (like NS,A, CNAME, TXT records ) are added.
For perfect name resolution the NS records should be same as the name servers entered in the domain control panel
Users using our name servers, can easily alter the DNS zone file or DNS records in cPanel. Those who are using exterior or any other third party name servers (eg: CloudFlare services), you need to update the DNS records or zone file there in their DNS management area.
How can we Edit DNS records through cPanel as : cPanel > Domains >Advanced DNS Zone Editor
To edit the DNS reords of the existing DNS Zone, click on the ‘Edit’ button taht is present on the right side of the coresponding DNS record.You can it find in the bottom of the screenshot shown above.
If you want to Add new DNS records, Select the domain name from the drop down, add the DNS records below and click on ‘Add record’ button.
Please note that mail exchang MX record can't be specified here, we will see it later.
A record – A is "Address" here,It specifies actual IP address of the domain.
AAAA record – It is used to get a 128-bit Ipv6 address from a hostname.
CNAME record - CNAME i.e. "canonical name".Helps tomake one domain an alias of another domain.
MX record – MX i.e. "Mail Exchange".helps to specify list of mail exchange servers (mail servers) that need to be used for the domain.
PTR record –PTR is "pointer", which helps to get the CNAME from anIPv4 address.
NS record – The authentic name servers of the domain is specified here.
SOA record –It is "State of Authority"Which is one of the most important DNS records which stores informations about the domain.
SRV record – It is "service",used to specify TCP service operating on the domain.
TXT record –It is used to place any text into the DNS record, this is to confirm the domain ownership.
How to Edit MX records
As we know, MX records can't be modified,added through Advanced DNS Zone Editor option. It is done as: cPanel > Mail > MX Entry
now go to the domain's drop down list and select the name of the domain
In the Email routing option
- local Mail Exchanger (if mail server in the same server, default mail servers) or
- Remote Mail Exchanger (other's mail servers like Google Apps or mandrill) or
- Backup Mail Exchanger (set this option if the top most priority mail server is exterior) option depending upon the mail server you are using. If you use our name servers (not mail servers), just leave it as Automatically detect configuration.