How To Create an A-Record in cPanel

Let's start with a brief explanation of DNS. DNS stands for Domain Name System. It converts human readable domain names like example.com into IP addresses like 208.77.188.166 which computers can then read. DNS zone files reside on your server and tie domain names with IP addresses.

Most users do not need to modify their DNS settings. The most common reason for DNS changes are to route a certain part of your domain name to a a third party (not our servers).

Using the cPanel

Shared users can add A records in your cPanel. You can create and point subdomains to an IP address using the Simple DNS Zone Editor. You will need to first obtain the IP address from the host where you want to point the subdomain to.

  1. Log into your cPanel account.
  2. Click the Simple Zone Editor icon located in the Domains area of cPanel.
     
  3. Select your domain from the drop down menu (if you have more than one domain entered in your cPanel).  The editor will load new options which allows you to add an A record. Under the Add an A Record header fill in the subdomain and IP address you want to point your subdomain to.

    In this example, we will point my blog to the IP Address 1.1.1.1:

     
  4. Finally, click the Add A Record button and you will now see the subdomain an corresponding IP address listed under User Defined Records at the bottom of the screen.

    Please note: You will not be able to create or modify an A Record for your domain name or any subdomains that are already created and reserved when your account is setup on the server. You can only create an A record for newly created subdomains. If you try to create an A Record on a reserved subdomain (for example mail, webmail, and cpanel), cPanel will give an error message. In order to edit or remove a reserved subdomain, you will need to use the Advanced DNS Zone Editor.

    Not only will the Advanced DNS Editor allow you to add A records, but it will allow you to edit current records as well. More information about the Advanced DNS Editor can be found in the cPanel documentation here:

    http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/AdvancedDnsEditor

    You can access the Advanced DNS Editor in WHM by logging into WHM and clicking on the Edit DNS Zone link:

     

    Note, with all DNS changes, including adding or changing A records, please allow up to 24 hours for changes to take effect.

Using the WHM

VPS and Dedicated plans include a feature in WHM for editing DNS Zones for all cpanel accounts on the server. (looking for a VPS? Find one on sale). This editor provides greater control over DNS records than the Simple and Advanced DNS Zone editor in cPanel. It allows other record types such as SRV, MX, PTR, and NS records These are not as common and thus are not in the cPanel level tools.

Note, as above, please allow up to 24 hours for your DNS changes to take effect.

  • 9 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Related Articles

How To Change cPanel Default Time Zone

The .htaccess file is a hidden text file within your hosting account that can be very powerful....

How To Restore a Home Directory Backup in cPanel

In this article I'm going to show you how to restore a partial home directory backup in cPanel....

How to Create a MySQL Database in cPanel

When you create a database, many users are unaware that there are several other items that you...

Install SSL certificates with cPanel SSL/TLS Manager

Enable SSL/TLS Manager in WHM for cPanel users Before using the SSL/TLS Manager as a cPanel...

5 Important Things to Consider When Choosing a Domain for Your Business or Website

When first setting up any website, one of the hardest — but most important — things to decide is...