How to add, edit or delete DNS (A, CNAME, MX, TXT etc) records in Zone Editor cPanel
Estimated reading time: 2 min
In this article
Adding, editing, or deleting DNS records like A, CNAME, MX, and TXT in cPanel’s Zone Editor is a straightforward process. Here’s a step-by-step guide on how to manage DNS records using the Zone Editor in cPanel:
Step 1: Log into Your cPanel Account
- Open your web browser and go to your cPanel URL, typically
yourdomain.com/cpanel
orcpanel.yourdomain.com
. - Enter your cPanel username and password to access the cPanel dashboard.
Step 2: Locate and Open the Zone Editor
- Scroll down to the Domains section.
- Click on Zone Editor.
Step 3: Select the Domain to Manage
- You will see a list of all the domains in your cPanel account.
- You will see three options next to the domain for which you want to manage DNS records: Manage, + A Record, and + CNAME Record.
- Click on Manage to view all DNS records for that specific domain.
Step 4: Adding a New DNS Record
- Click on the + Add Record button at the Zone Editor’s top right.
- Choose the type of record you want to add:
- A Record: Points a domain or subdomain to a specific IP address.
- CNAME Record: Points a domain or subdomain to another domain name.
- MX Record: Directs email to a mail server.
- TXT Record: Often used for verification purposes or custom configurations (e.g., SPF, DKIM, or DMARC records).
- Fill in the following fields based on the record type:
- Name: The domain or subdomain for the record.
- TTL (Time To Live): The duration (in seconds) that the record should be cached by DNS servers. The default is typically 14400 (4 hours).
- Type: Select the type of record (A, CNAME, MX, TXT, etc.).
- Record or Address: The value of the record (e.g., IP address for A record, destination domain for CNAME, or priority and mail server for MX records).
- Click Add Record to save your new DNS record.
Step 5: Editing an Existing DNS Record
- In the Zone Editor, locate the DNS record you want to modify from the list.
- Click the Edit button next to the record.
- Update the Name, TTL, or Record/Address fields as necessary.
- Click Save Record to apply the changes.
Step 6: Deleting a DNS Record
- Find the DNS record you want to delete from the list in the Zone Editor.
- Click the Delete button (trash can icon) next to the record.
- Confirm the deletion when prompted.
Common DNS Record Configurations
- A Record:
- Name:
@
(represents the root domain) orsubdomain
(e.g.,www
). - Address: The IP address (e.g.,
192.168.1.1
).
- Name:
- CNAME Record:
- Name:
subdomain
(e.g.,mail
,www
, orftp
). - Record: The domain name it points to (e.g.,
mail.example.com
orwww.example.com
).
- Name:
- MX Record:
- Name:
@
(or leave it blank to indicate the root domain). - Priority: A number indicating the priority of the mail server (lower values have higher priority).
- Record: The mail server domain (e.g.,
mail.example.com
).
- Name:
- TXT Record:
- Name: The domain or subdomain (e.g.,
@
or_dmarc
). - Record: The text value (e.g., SPF or DKIM records like
"v=spf1 include:spf.protection.outlook.com -all"
).
- Name: The domain or subdomain (e.g.,
Best Practices
- Plan DNS Changes Ahead: Update TTL values to lower settings before making changes for faster propagation.
- Backup DNS Records: Before making changes, note down the current DNS settings in case you need to revert back.
- Use Correct Syntax: Ensure all records, especially TXT and MX records, follow the correct syntax to avoid errors.
By following these steps, you can easily add, edit, or delete DNS records in the Zone Editor section of cPanel.