A DNS Zone File is a list of all your DNS records, which are used by DNS servers to direct your website traffic and emails to your hosting server, as well as any other services you have set up. Needless to say, your zone file is vital to the operation of your web services.

When you purchase a new cPanel web hosting service, or add a domain to an existing service, cPanel will create a zone file for you using information on the server. While, in most instances, this should work fine for you, there are situations where you may need to edit your zone file. Here is a guide on how to modify your Zone File.

Sections


Accessing your cPanel Zone Editor

In order to access your Zone Editor, you will first need to log into your cPanel account. If you do not know how to access your cPanel account, you can find out here.

Domains Section

Once you are logged into your cPanel, scroll down to the Domains section and click on the Zone Editor app.

Domain List

You will now be at your domain Zone Editor. You will see a list of all the domains that you are currently managing with this cPanel account. This will include any addon domains or subdomains. Click on the Manage button to the right of the domain that you wish to update.

Zone Editor

This is the current zone file for your domain. You can search for the record you need to update using the search box, or you can sort the zone records by type using the presets under the search box.

Back to Menu


Editing your Zone File

Now that you have your domain's zone file loaded, you can edit it as needed. You can add new records, edit existing records or delete any records that you no longer need. Once you save your updated zone file, you will need to wait for the changes to propagate, as the changes are not instant.

Adding a DNS record

To add a record, you can click on the Add Record button on the right-hand side of this screen. You can also click on the drop down menu on this button to choose the type of record you wish to add.

Once you click the button, you will see the fields required for that record type (see below for information on record types). Once you enter your information, be sure to click on Save Record to update the zone file.

Editing a DNS record

You can search for the record you are looking to edit using the search box on the left-hand side, or you can filter your records by type using the Filter options below the search box.

Once you have the record you need to edit, click on the Edit button to the right of the record. You will now be able to edit any of the fields for the record, even the record type. What fields are present depends on the record type (see below for record types). Be sure to click Save Record once you are done to update the zone file.

Deleting Records

You can delete a DNS record simply by clicking on the Delete button next to the DNS record you wish to remove. This action is not reversible, so be certain that you need to remove the record before proceeding.

Back to Menu


Record Types

There are several different types of DNS records that you will see in your zone file. While they are have their own purposes, some are much more common than others.

Note: When entering the name of the record, the tailing "." is important. If you do not end the entry with a period, cPanel will add the domain to the record.

This input will be saved as this record.
example.com. will be saved as example.com.
example.com will be saved as example.com.example.com.
www will be saved as www.example.com.
www.example.com. will be saved as www.example.com.
www.example.com will be saved as www.example.com.example.com.

 

Back to Menu


Common Records

These are the most common DNS records that you will see.

A records

A records direct a domain or subdomain to an IP address.

  • This is the final destination of the DNS lookup.
  • Every zone file must contain at least one blank A record (sometimes denoted by a "@") to be considered valid

example.com. IN A 196.168.42.069 www.example.com. IN A 196.168.42.069

CNAME records

CNAME records direct a domain or subdomain to a fully qualified domain name (FQDN)

  • CNAME records are used to redirect traffic to other FQDN
  • You can set several of your subdomains to redirect to your main domain name, which can be convenient if you ever need to update your IP address

ftp.example.com. IN CNAME example.com. mail.example.com. IN CNAME example.com.

TXT records

TXT records contain a string of characters that is used for many domain based services, such as domain ownership and SSL certificate verification.

  • They are also used for SPF, DKIM and DMARC email verifications.
  • They can contain any string up to 255 characters.

example.com. IN TXT "v=spf1 a mx include:relay.mailchannels.net ~all" example.com. IN TXT "12zGbEnIkCZQNtYiIKUQTGeO7zgen8rh1Nbo8HOzM0M"

MX records

MX records (or Mail eXchange) are used to direct email to your mail server.

  • They include a priority and a destination that must be a FQDN (not an IP address)
  • Typically, there are several MX records for a domain for redundancy reasons.
  • Mail servers will first try the server with the smallest number for priority and then proceed from there until it succeeds with sending the email

example.com. IN MX 0 example.com. example.com. In MX 10 relay.example.com.

In this example, mail servers will attempt to send the email to example.com first, and only send to relay.example.com if it fails at example.com.

Back to Menu


Uncommon Records

There are many more different types of DNS records that are available, however most of these are specialized use cases. Here are a few you may see.

AAAA records

AAAA records are essentially the same as A records, except instead of pointing to a Ipv4 address (most Ips that you will see), it points to a Ipv6 address. While not very common these days, eventually you will start to see more Ipv6s as the supply of Ipv4 runs out.

CAA records

CAA records point to a Certificate Authority Authorization and are used to specify which Certificate Authority (CA) is permitted to issue certificates for your domain. This is an advanced feature and it is unlikely that you will need to add this type of record, but if you do, your CA should be able to supply the information needed.

SRV records

SRV records are used to point web traffic to particular ports on the server. This is typically used for custom web applications that are beyond the scope of this guide. As is the case for CAA records, your software author should be able to provide you with the information required.


Propagation

Note: Any time that you make any changes to your DNS (including name server updates), it will take time for the changes to propagate worldwide. While we advise that it can take up to twenty-four hours for records to fully propagate, the process typically completes in four to six.

Back to Menu


Still Having Issues?

If you are still having issues, you can contact our Customer Support in the following methods:

Live Chat

You can connect to our Live Chat Support Team from your MacHighway Client Area. If you are not sure how to do this, you can find a guide here.

Our Live Chat team is available Monday to Friday from 9:00 AM to 7:00 PM Eastern Time.

Support Ticket

You can submit a support ticket to our Support Team from your client area.

Our ticket Support Team is available 24/7/365.

Phone support

You can contact our Phone Support Team using the following number:

  • US/Canada 1-888-974-0334
  • International 1-727-800-3606

Our Phone Support team is available Monday to Friday from 9:00 AM to 7:00 PM Eastern Time.

¿Fue útil la respuesta? 19 Los Usuarios han Encontrado Esto Útil (154 Votos)