Create CNAME Record
Publisher: Psychz Networks, September 04,2020The CNAME or Canonical NAME is a record that is sometimes used in position of an A record when you use alias of another domain for your domain or subdomain. In simpler words, a domain with a CNAME record points you to another domain with a CNAME or a domain with an A record.
- Step 1: Go to Domains
- Step 2: DNS Records
- Step 3: Select Type
- Step 4: Input TTL
- Step 5: Input Weight
- Step 6: Input Target Hostname
- Step 7: Save settings
The DNS resolves the system’s domain name to its IP address, but sometimes more than one domain name resolves to the same IP address, and this is where the CNAME is useful.
Example:
When you have several sub domains, like www.sampledomain.com, support.sampledomain.com, mail.sampledomain.com etc. and you want all of these sub domains to point to your main domain name that is www.yourdomain.com instead of creating A-records for each sub domain and binding it to the IP address of your domain, you create an alias, a CNAME-record for all these.
To create 'CNAME' record, please follow the step below
Step 1: Go to Domains
Go to your Domains page where you have added the domain under DNS section and click on DNS records button under Action column.
Note: You need to add a domain first before you create CNAME record for it.
Step 2: DNS Records
Click on the '+' button to add a DNS record
Step 3: Select Type
Once you are in the Add DNS Record page, click on the Select type menu. This should show you many options of which you need to select 'CNAME' to add 'CNAME' record.
Step 4: Input TTL
Enter a numeric value (seconds) in the text area.
TTL (Time To Live), is always listed in seconds. This means that if an A record gets updated, it XX seconds (specified seconds) to take effect.
Step 5: Input Weight
Enter 2 digit numeric value less than or equal to 10.
Weight is the probability of resolving the query. For example, if there are two A records, and the weights are defined as 6 and 4 respectively. The query will resolve the 1st A record 60% of the times and the 2nd 40% of the times.
Note: Default weight restriction is 10 or below.
Step 6: Input Target Hostname
Enter the URL of the location where you want to point. This can be your main domain.
Step 7: Save settings
Click on the save button to save your settings.