How to add a DNS zone record in Cpanel

  • 2
  • Tired of reading? Press play to listen instead. N/B. Might not work on some articles

    Ready


How to add a DNS zone record

To add a record, perform the following steps:

  1. Access your cPanel using your credentials (Username and Password) or through the client area
  2. Search for Zone Editor in the search bar or scroll to the domains section
  3. Click Manage for the domain that you want to modify. A new interface will appear.
  4. Click Add Record. You can also click the arrow icon (The Add Record arrow icon) next to Add Record and select the desired record type from the menu.
  5. Enter the record’s information provided
  6. Click Save Record or Save All Records, or click Cancel

N/B:

  • To add records for a subdomain, use prefix notation. For example, to add a CNAME record for example.com/prefix, enter prefix.example.com. into the Name text box.
  • To add multiple records, click Add Record multiple times or select the desired record types from the list. The system adds the new records to the top of the table.

Edit a DNS zone record

To edit a record, perform the following steps:

  1. Click Manage for the domain that you want to modify. A new interface will appear.
  2. Click Edit next to the record or records that you want to edit.
  3. Update the information in the text boxes.
  4. Click Save Record or Save All Records to save your changes, or click Cancel.

DNS zone record types

When you add or edit a DNS zone record, you can select from the following record types:

A Record

IPv4 Address Record — This record maps hostnames to IPv4 addresses. These records allow DNS servers to identify and locate your website and its various services on the internet. Without appropriate A records, your visitors cannot access your website, FTP site, or email accounts. You can set the following values:

Value Description
Name A new or existing DNS zone name. When you enter a zone name, the system automatically appends the domain name to the zone record. For example, if you create the user zone, the system will add the example.com. domain information.
Address Enter the domain’s IP address.

AAAA Record

IPv6 Address Record — This record is the same as an A record, but maps hostnames to IPv6 addresses.

CAA Record

Certificate Authority Authorization Record — This record controls which certificate authorities (CA) can issue SSL certificates for a domain.

Note:
  • If no CAA records exist for a domain, all CAs can issue certificates for that domain. If conflicting CAA records already exist, remove the existing CAA records or add one for the desired CA.
  • MyDNS does not support this record type.
  • The system stores these records in the RFC 3597 format.

You can set the following values:

Value Description
Issuer Critical Flag Whether the CA will issue an SSL certificate if the CAA Resource Record contains unknown property tags. For more information about CAA record flags, read the RFC 6844 documentation.
  • 0 — Non-critical. The CA will issue an SSL certificate if the CAA Resource Record contains unknown property tags.
  • 1 — Critical. The CA will not issue an SSL certificate if the CAA Resource Record contains unknown property tags.
Tag The CAA record’s property type:
  • issue — Authorize a CA to issue a certificate for the domain.
  • issuewild — Authorize a CA to issue a wildcard certificate for the domain.
  • iodef — Specify a URL to which a CA may report policy violations.
Value The CA’s domain, or the CA’s URL if you select the iodef setting in the Tag section.

CNAME Record

Canonical Name Record — This record creates an alias for another domain name, which DNS resolves. This is useful, for example, if you point multiple CNAME records to a single A record in order to simplify DNS maintenance. You can set the following values:

Value Description
Name A new or existing DNS zone name. When you enter a zone name, the system automatically appends the domain name to the zone record. For example, if you create the user zone, the system will add the example.com. domain information.
Record Enter a fully qualified domain name (FQDN). For example, the example2.com domain. You cannot point a CNAME record to an IP address.

MX Record

Mail Exchanger — This record identifies the servers that handle a domain’s email. Changes that you make to this record control where the server delivers a domain’s email. You can set the following values:

Value Description
Priority Identifies the servers that handle a domain’s email. This value for each MX record determines the order in which other mail servers will use the domain’s mail server. A lower value indicates a higher priority level. A value of 0 indicates the highest priority level.
Destination The mail server. This must be a fully qualified domain name (FQDN).

SRV Record

Service Record — This record provides data about available services on specific ports on your server. You can set the following values:

Value Description
Priority The service record’s priority value. A lower value indicates a higher priority level. A value of 0 indicates the highest priority level.
Weight This value ranks entries that share the same Priority value. For example, a record with a 0 priority level and an 8 weight value will rank lower than a record with a 0 priority level and 4 weight value.
Port The service’s target port number.
Target The service’s target hostname.

TXT Record

Text Record — This record contains text data for various services to read. For example, TXT records can specify data for SPF, DKIM, or DMARC email authentication. You can use WHM’s Email Deliverability interface (cPanel » Home » Email » Email Deliverability) to manage your server’s SPF and DKIM records.

Important:

The Record text box will accept invalid data. Make certain you enter the correct record information.

Delete a DNS zone record

To delete a record, perform the following steps:

  1. Click Manage next to the domain you want to modify. A new interface will appear.
  2. Click Delete next to the record that you want to remove.
  3. Click Continue in the confirmation dialog box to delete the record, or click Cancel.

Credits: Cpanel

 


Was this answer helpful?

« Back

Say Hello

Let's get you started