DNS Management - cPanel

This topic will show how to manage DNS records via the WCP control panel. You can view the step by step guide below.

Before Using DNS Editor - Correct DNS to Use

If you would like to manage your domain’s DNS records in cPanel then your domains authoritative name servers have to be set to use the correct Hostek name servers. You can find the correct name servers by following the steps in this linked guide:
https://help.hostek.com/en/articles/3677673-what-name-servers-should-i-use

At the registrar for your domain you’ll need to update the authoritative name servers to point to the listed name servers that you found when following above guide. Any records you create and manage in the DNS editor will not resolve for your domain until you’ve updated the authoritative name servers to point correctly and allow time for propagation.

Adding DNS Records (A,CNAME, MX, ETC.)


  1. Login to your cPanel control panel.

    Note: You can view our topic on logging into cPanel if you need help with this step.

  2. Once logged in scroll through the icons to the “Domain” section, and from there select “Zone Editor”:


  1. You should see a list of the domain names attached to your account. Select the ‘Manage’ button, next to the domain you wish to manage:

  2. You should now see a list of all your existing DNS records that you have on our DNS servers pertaining to your domain. Click the ‘Add Record’ button to add a new record.


  1. You should now see a few fields for the new DNS record which we’ll explain below for each type of record:

A Record

What is it: An A Record maps a domain name to an IP Address of the server hosting the domain the record is for.

  • Record Name: The name of the DNS record. The field for this record name will append the domain automatically so if you insert example into the field when adding a record for hostektutorials.com then the record created would be example.hostektutorials.com. In this example we’re setting example.hostektutorials.com to point to 216.15.245.49

  • Type: The type of record, which in this case would be an ‘A Record’.

  • Data: The data field for an ‘A Record’ tells the record what IP Address the record resolves to such as 216.15.245.49. An A Record has to point to an IP Address and can NOT point to a canonical name.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

CNAME Record

What is it: A CNAME record stands for ‘Canonical Name Record’, as it is used to state that the domain in the ‘record name’ field is an alias to another domain ( which is the canonical domain ). So the record will resolve to the same location as the domain you put in the ‘Data’ field.

  • Record Name: The name of the DNS record. The field for this record name will append the domain automatically so if you insert example into the field when adding a record for hostektutorials.com then the record created would be example.hostektutorials.com.

  • Type: The type of record, which in this case would be an ‘CNAME Record’.

  • Data: The data field for a ‘CNAME Record’ tells the record what domain ( canonical name ) the record resolves to. A CNAME Record MUST point to a canonical name and can NOT point to an IP Address.

    The screenshot shows we’re pointing ‘tutorials.hostektutorials.com’ to ‘example.hostektutorials.com’.

    So for example if ‘example.hostektutorials.com’ points to ‘216.15.245.49’ the new record for ‘tutorials.hostektutorials.com’ will also reside to this same IP of ‘216.15.245.49’.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

MX Record


What is it: MX Record(s) delegate which mail server a domains email should route to. You can have many MX Records for a domain to allow for redundancy in case one of the mail servers is down. The order of which server the domains mail routes to is determined by the ‘Priority’ value for the MX Record, which the record with the lowest priority is attempted BEFORE a record with a higher priority number.

  • Record Name: The name of the DNS record.

    NOTE: In most cases you leave the record name blank for MX Records as most clients only need mail for the main domain, such as ‘hostektutorials.com’.

  • Type: The type of record, which in this case would be an ‘MX Record’.

  • Priority: If your domain has more than one MX record, then the sending mail server needs to determine which server to send the email to for your domain. The ‘Priority’ field will be looked at to determine which server to first attempt sending the mail to. The record with the lowest priority number will be looked at first, so a mx record with a priority of 0 would be attempted before a record with a priority of 10.

  • Data: The data field for a ‘MX Record’ tells the record what domain ( canonical name ) the record resolves to such as mail.hostektutorials.com. An MX Record MUST point to a canonical name and can NOT point to an IP Address.

    The above screenshot shows we’re pointing the MX record for ‘hostektutorials.com’ to ‘mail.hostektutorials.com’.

    So for example if ‘mail.hostektutorials.com’ points to the IP ‘65.175.112.222’ the new MX record for ‘hostektutorials.com’ will also reside to this same IP of ‘65.175.112.222’.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

TXT Record

What is it: A TXT Record is a resource record. What this means is it is used to store arbitrary attribute names along with the value of those attributes. The text within this record can be used for services / applications that look for a specific ‘name’ in your TXT records, for example some mail servers may look in the TXT record to see if there is a valid SPF entry that indicates what IP Addresses the domain is actually allowed to send mail from.

  • Record Name: The name of the DNS record. The field for this record name will append the domain automatically so if you insert example into the field when adding a record for hostektutorials.com then the record created would be example.hostektutorials.com.

    NOTE: In most cases you leave the record name blank for TXT Records so that the record exist on the root level of the domain.

  • Type: The type of record, which in this case would be an ‘TXT Record’.

  • Data: The data field will contain the attribute names and values for the record. View the below example of a TXT record:

    “Name=Value”

    The above example has a attribute name of ‘Name’ and the value for that attribute is ‘Value’.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

SPF Record

What is it: A SPF Record was designed to specify what mail servers are actually allowed to send mail for a domain. SPF records used to have their own record type but SPF records are now actually looked and and controlled within the TXT Records we went over above. An example SPF record which allows sending from any Hostek IP address:

  • Record Name: The name of the DNS record.

    NOTE: In most cases you leave the record name blank for SPF Records so that the record exist on the root level of the domain.

  • Type: The type of record, which in this case would be a ‘TXT Record’.

  • Data: The data field will contain the SPF details that state what mail servers are allowed to send email. View the below example of a SPF record:

    SPF Record: “v=spf1 include:spf.ezhostingserver.com -all”

    The above example shows the version of SPF that is being used with the ‘v=’, so the version is spf1 since it shows ‘v=spf1’. The value for the SPF record is ‘include:spf.ezhostingserver.com -all’ which would work for domains on our shared servers, as the above record includes all the IP Addresses belonging to our shared mail servers.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

SRV Record

What is it: A SRV Record stands for 'Service Record. It’s a specification of data defining the location ( hostname and port number ) of servers for a specified service.

  • Record Name: The name of the DNS record. The field for this record name will append the domain automatically so if you insert smtp.tcp’ into the field when adding a record for hostektutorials.com then the record created would be smtp._tcp.hostektutorials.com‘.

    NOTE: The format for SRV records is service.protocol’ so for the ‘SMTP’ service example in the screenshot above we have smtp.tcp’ to show this record is for the SMTP service listening on TCP.

  • Type: The type of record, which in this case would be an ‘SRV Record’.

  • Priority: Like the MX record, the priority helps determine which SRV record is used in the case of there being multiple SRV records with the same name. If there is two or more SRV records with the same name and priority, then the weight will be the tie breaker for which record will be looked at first.

  • Weight: The weight allows the zone to distribute the load between two or more SRV records with the same name and priority. This can be thought of as a load balance solution for SRV records.

  • Port: The port would be the port of the service this SRV is related to, such as 587 for SMTP.

  • Data: The Data field will be the hostname or IP of the server that holds the service this record is for.

  • TTL: The TTL field stands for ‘Time to Live’, which determines how long a network should keep the record in it’s DNS cache before it is cleared out and checks for any updates to the record.

Update Existing Record

To update an existing record click on the pencil icon next to the desired record you wish to update.

image

Delete Existing Record

To delete an existing record click on the trash can icon next to the desired record you wish to delete.

image