Home >> Email >> MX-Entry
This feature allows you to edit the records in a domain’s DNS zone file.
Warning:You must configure your DNS records correctly to allow visitors to access the domains.
To edit a DNS zone or view zone information, select the desired domain from the Choose a Zone to Edit menu and c lick Edit . A new interface will appear.
Zone and server information
The top of the Edit DNS Zone interface displays the following zone and server information:
cPanel first — The cPanel & WHM version and build number on which you created the DNS zone.
update_time — The Unix date and time of the last update to the zone file.
Cpanel::ZoneFile::VERSION — The zone file version that cPanel & WHM uses.
hostname — The server's hostname.
latest — The current cPanel & WHM version on the server.
Zone file for — The DNS zone's domain.
$TTL — The default time to live (TTL), in seconds. This value specifies how long clients cache DNS zone data.
Edit DNS Zone
The Edit DNS Zone interface displays a table of the domain's DNS entries in the following columns:
Domain — The domain name.
TTL — The DNS entry's TTL.
Record Type — The DNS record type.
Warning:The Class value for each DNS zone must be IN.
Record Type
The following table lists the most common DNS record types:
Record Type
|
Description
|
Details
|
---|---|---|
SOA | Start of Authority record. |
Contains authoritative information. Authoritative information includes the following information, on record with an accredited domain name registrar:
|
NS | Nameserver record. | Specifies the hostname that clients use to search for the domain. |
A | Address record. | Matches the domain name to an IP address. |
MX | Mail Exchange record. | Matches the domain name to a list of servers that handle mail for the domain, and tags each server with a priority (the highest priority is 0 ). |
CNAME | Canonical name record. |
Matches the domain name to an alias. Use this record type to run a server that is not an Apache server, such as an FTP server, on a separate port. |
Add entries
Use the empty text boxes below the Add New Entries Below this Line heading to add new entries to the DNS record.
Warning:You must configure your DNS records correctly to allow visitors to access the domains.
When you have entered the desired information, click Save.
How to set a separate IP address for the domain and mail server
If you change the IP address of the domain's A record, your mail server's IP address also automatically changes. This happens because the standard zone template uses a CNAME record to point the mail server to the A record of a domain.
To assign a different IP address to the mail server, perform the following steps:
1.Change the MX record value to mail.$domain., where $domain. represents the domain. For example, change example.com. to mail.example.com.
Important:You must include the trailing period after mail.example.com.
2.Select CNAME from the Record Type menu.
3.Click Save.
To change the zone template so that all new domains create MX records that assign your mail server a different IP address, use WHM's Edit Zone Templates interface ( Home >> DNS Functions >> Edit Zone Templates ).