This article explains how to edit DNS zones of a domain from the WHM reseller panel.
Important: You can only edit one domain at a time. A misconfigured DNS record can make the site or email inaccessible. If you are not sure, consult before saving or ask for help through the client portal.
WHM or cPanel?
- WHM → Edit DNS Zone: for resellers; you edit the zone of any account under your plan.
- cPanel → Zone Editor: the end client usually edits only their domain from their own panel.
Accessing the zone editor
- Log in to WHM:
https://yourdomain.com:2087orhttps://yourdomain.com/whm. - Go to DNS Functions → Edit DNS Zone.
- Click on the domain you want to modify.
- Edit the records in the table and click Save.
To add a new record, use the empty row at the bottom of the table, fill in the fields and save.
Table columns
| Column | Description |
|---|---|
| Domain | Host name (e.g. @, www, mail). |
| TTL | Time in seconds that resolvers and browsers cache the record. |
| Class | Must be IN (Internet). Any other value generates an error. |
| Record type | Record type (A, MX, CNAME, etc.). |
| Value / Address | Record destination (IP, hostname, text depending on the type). |
At the top WHM shows zone metadata (Editing zone, cPanel version, default $TTL, last modified date). The global $TTL applies when a record does not define its own TTL.
Most used record types
| Type | Function |
|---|---|
| SOA | Start of Authority of the zone (primary DNS server, admin contact, serial, refresh, expire). WHM manages this; avoid changing it without experience. |
| NS | Name servers of the domain. |
| A | Points a name to an IPv4 address (e.g. website). |
| AAAA | Same as A, but for IPv6. |
| MX | Mail server of the domain. Lower number = higher priority (0 is the highest). |
| CNAME | Alias of one name to another (e.g. www → root domain). |
| TXT | Free text (SPF, DKIM, service verifications). |
Different IP for web and mail
In the standard cPanel template, mail is usually a CNAME to the main domain A record. If you change the IP of the main A record, mail inherits that change.
For mail to use a different IP:
- Change the MX record to
mail.yourdomain.com.(with a trailing dot). - Replace the
mailCNAME with an A record with the mail server IP. - Click Save.
Trailing dot in FQDN: In DNS zones, fully qualified names are usually written with a dot at the end (e.g. mail.example.com.). Without the dot, the server may interpret the name as a relative subdomain.
Changing the template for new domains
If you want the accounts you create from now on to have MX and mail with a separate IP by default:
- In WHM: DNS Functions → Edit Zone Templates.
- Open the standard template.
- Change
%domain%. IN MX 0 %domain%.to%domain%. IN MX 0 mail.%domain%. - Change
mail IN CNAME %domain%.tomail IN A %IP%. - Save the changes.
This affects only new zones; existing domains must be edited manually in Edit DNS Zone.
Best practices
- Note down which record you changed and the previous value in case you need to revert.
- After saving, wait for DNS propagation (minutes to 48 h depending on TTL and providers).
- Do not duplicate conflicting records (two different A records for the same host, or CNAME along with another record on the same name).
- If the domain uses external DNS (Cloudflare, Nic.ar delegated only, etc.), the changes in WHM do not apply until the nameservers point to your server.
If the site or email stop working after a change, revert the last saved value or contact support from the client portal.
