How to edit DNS zone in cPanel

In order to edit the DNS zone of the domain in your cPanel account, follow the steps below.


1. Log into your cPanel.

2. Navigate to the Domains section and click on the Zone Editor menu.




3. Click the Manage button next to the domain which DNS zone you would like to edit:



In the next menu, you can add new records, edit existing ones, or reset the DNS zone.


If you would like to add a new record, click + Add Record:



Further steps depend on the record type you wish to add:



Choose A in the drop-down menu next to the Type field.



An A record (Address Record) points a domain or subdomain to an IP address.
· Name: must be a domain with an optional period at the end.
· TTL: must be a positive integer (in seconds).
· Record: must be an IP address.
Once all the fields are filled in, click the Add Record button:




Choose AAAA in the drop-down menu next to the Type field.

AAAA record, also known as 'IPv6 address record', maps a hostname to a 128-bit IPv6 address in the Domain Name System (DNS).

Such an option exists in our Zone Editor menu, but full IPv6 support has not been implemented yet:




Choose CAA in the drop-down menu next to the Type field.

A CAA (Certification Authority Authorization) record specifies which certificate authorities (CAs) are allowed to issue certificates for a domain.

· Name: must be a domain with an optional period at the end.
· TTL: must be a positive integer (in seconds).
· Flag: 0 or 1
· Tag: issue, issuewild or iodef
· Record: must be a valid zone name with the issue and issue wild tags or a valid mailto or standard URL with the iodef tag.
Once all the fields are filled in, click the Add Record button:





Choose CNAME in the drop-down menu next to the Type field.

CNAME (Canonical Name) points one domain or subdomain to another domain name, allowing you to update one A Record each time you make a change, regardless of how many Host Records need to resolve to that IP address.

· Name: must be a subdomain with an optional period at the end
· TTL: must be a positive integer (in seconds)
· Record: must be a valid zone name
Once all the fields are filled in, click the Add Record button:




A DMARC (Domain-based Message Authentication, Reporting, and Conformance) record indicates the action for a mail server to take when it receives mail from this domain, but that message fails SPF and DKIM checks.


If you select this option, the system creates a TXT record with a default DMARC record. The system also displays a form that allows you to specify the domain's DMARC policy (None, Quarantine, or Reject), as well as the following optional parameters:

OptionDescriptionPossible values
Subdomain PolicyThe action that the recipient's mail server should perform when it receives mail from a subdomain of this domain, but that message fails SPF and DKIM checks.
  • None — Do not perform any action for spam email messages.
  • Quarantine — Send spam email messages to a different folder on the account.
  • Reject — Reject spam email messages.
DKIM ModeThe Domain Keys Identified Mail (DKIM) level that the system will enforce for the domain.
  • Relaxed — The system allows some email messages from domains that it does not recognize.
  • Strict — The system rejects all email messages from domains that it does not recognize.
SPF ModeThe Sender Policy Framework (SPF) level that the system will enforce for the domain.
  • Relaxed — The system allows some email messages from senders that it does not recognize.
  • Strict — The system rejects all email messages from senders that it does not recognize.
PercentageThe percentage of email messages that you wish for the system to filter.An integer value between 0 and 100.
Generate Failure Reports WhenThe error reporting policy between the sender and receiver's Mail Transfer Agents.
  • Any checks fail — Send a report to both the sender and receiver if any email checks fail.
  • All checks fail — Only send a report to both the sender and receiver if all of the email checks fail.
Report FormatThe format that the system uses to report an email message's possible spam status.
  • AFRF — Authentication Failure Reporting Format.
  • IODEF — Incident Object Description Exchange Format.
Report IntervalThe amount of time, in seconds, that elapse between each aggregate email message report.A positive integer.
Send Aggregate Mail Reports ToA comma-delimited list of URIs to which to send aggregate email message reports.
To add a size limit for the report, affix an exclamation point, a number, and a file size multiplier to the end of the URI. You can specify the following size multipliers:
  • k — Kilobytes.
  • m — Megabytes.
  • g — Gigabytes.
  • t — Terabytes.
mailto:reports@example.com!50m
Send Failure Reports To A comma-delimited list of URIs to which to send failure email message reports.mailto:reports@example.com!50m

PLEASE NOTE: If you do not specify a valid parameter, the system will not save the parameter when you create the record.




An MX (Mail Exchanger) record specifies a mail server responsible for accepting email messages on behalf of a domain. This record is essential for email delivery.

· Name: must be a domain with an optional period at the end
· TTL: must be a positive integer (in seconds)
· Priority must be an integer; lower value means more preferred
· Destination: must be a valid zone name
Once all the fields are filled in, click on the Add Record button:





Choose SRV in the drop-down menu next to the Type field.

An SRV record points one domain to another domain name using a specific destination port.

· Name: includes the service (the symbolic name of the desired service) and protocol (the Protocol used by the service, usually either TCP or UDP)
· TTL: must be a positive integer (in seconds)
· Priority: priority of the target host, lower value means more preferred
· Weight: relative weight for records with the same priority, a higher value means a more preferred one
· Port: TCP or UDP port on which the service is to be found
· Target: canonical hostname of the machine providing the service, ending in a dot

Example:

Name: _autodiscover._tcp.yourdomain.com 
Type: SRV
TTL: 1200
Priority: 0
Weight: 0
Port: 443
Target: privateemail.com





Choose TXT in the drop-down menu next to the Type field.

These records hold a free text form of any type. A fully qualified domain may have many TXT records. The most common uses for TXT records are Sender Policy Framework (SPF), DomainKeys (DK), DomainKeys IdentifiedE-mail (DKIM). TXT records historically have also been used to contain human-readable information about a server, network, data center, and other accounting information.

Here you can find a tutorial on how to add an SPF record for your domain in cPanel:



· Name: must be a domain with an optional period at the end
· TTL: must be a positive integer (in seconds)
· Record: cannot be empty or more than 2500 symbols

Example:

Name: yourdomain.com 
Type: TXT
Record: v=spf1 +a +mx +ip4:198.187.31.8 ?all

Once all the fields are filled in, click on the Add Record button:





In order to edit the existing records, choose the record that you want to edit from the list of existing DNS records. Click Edit, then enter values that you need and click Save Record to save changes:







Also, it is possible to reset the DNS zone for your domain to a default one. In this case, the system will erase any modifications you have made to your zone records in this interface or in the Simple DNS zone editor interface. Before you reset your zone file, make sure that you write down any changes that you wish to save.
In order to reset a zone file, click 'Manage' in front of a domain name, click on the gear button > Reset Zone:





That's it!
Updated
Viewed
140007 times

Need help? We're always here for you.

notmyip