The first thing we need to understand is what a CNAME Record is and, to do this, we need to find out what DNS is.
DNS stands for Domain Name Service which allows us to convert our Hosting Server's IP address into something that is readable for humans.
For example, if you had a website called abc.co.za and you visit this address, your computer will check which server this DNS Record (abc.co.za) points to and then you will connect to that web server.
This may sound quite complicated, but it is important that we understand how DNS works, so that when we make changes to DNS records, we know why we are changing them and how the changes will affect our live website.
As a final note, it is important to know that we have various DNS Record Types. The reason for this is so that we can separate the different function of our domain name (or website name).
For the purposes of this guide we will talk about the following DNS Record Types:
- A Record
- CNAME Record
An A Record is one of the most basic DNS Records as it solely converts a human-friendly name (domain name) to an IP address. For instance, it would point record.abc.co.za to your web server’s IP of 127.0.0.1
A CNAME Record is a Record that redirects a human-friendly dame (domain name) to another A Record. For instance, you could have mail.abc.co.za redirect to abc.co.za.
Now that we understand what a CNAME Record is and what the function of DNS is, lets continue and go through the steps needed to set up CNAME Records for WordPress on your Website Panel.
The first step is to log in to your WebSite Panel Account. If you do not know your login details, log in via your Customer Zone.
Log in to your Customer Zone and Click on My Services & then on Hosting:
Now select your Shared Hosting Product and click on the View Details Button:
Now scroll down until you see the option to log in to Control Panel (clicking on this button will log you in without prompting for a password):
Now you will be logged into your Web Site Panel Account which should look like this:
Click on Domains and then click on your desired Domain:
Click on edit DNS Zone Records:
Click Add Record:
Now we can start to add the CNAME records for your WordPress website:
Wordpress requires two CNAME Records to be created.
First CNAME Record:
Set the Type to CNAME.
Set the Record Name to yourdomain.com
Set the Record Data to yourdomain.wordpress.com
Second CNAME Record:
Set the Type to CNAME.
Set the Record Name to www.yourdomain.com
Set the Record Data to yourdomain.com
Click on Save and now you are done! You have successfully added the CNAME Records for your WordPress website!