Configuring a Subdomain to Use a Different IP Address

If your hosting package provides you with more that one IP address, you would be able to use a separate IP address for an additional domain or a subdomain of your current domain. A subdomain looks like this:

subdomain.maindomain.com

In this knowledgebase article, we are going to cover the process of adding a DNS entry so that a subdomain relates to a separate IP address. Don’t worry; this is much easier than it sounds.

First, you need to log in to cPanel. Once you have, you will see over on the left-hand side, the DNS Functions option. Choose this option, and you will then be able to see a further option, Edit Zone. Click this option.

Now, we need to add the new DNS entry. In this case, it will be ab A record. You should now see a list of all of your DNS records, and down at the bottom, the text “Add New Entries Below This Line”. Right below this, we will be filling in the fields to add your new A record.

In the first field, put the name of the subdomain. For example; blog to create a blog.maindomain.com subdomain. Now, use the drop-down box to select the record type as an A record. When you select A record, an additional box will appear to the left. In this box enter the new IP address you want the subdomain to point to. Save your changes and exit.

Now, whenever somebody types your new subdomain into the URL bar of their browser, for example; blog.maindomain.com it would resolve DNS using this new A record, which points to your new IP address.

Useful links:

A Wikipedia article that gives an overview of every type of DNS record

If you currently use a shared hosting package, and you need to start hosting additional domains or subdomains on separate IP addresses, you might like to consider upgrading to one of our VPS hosting plans.

Was this answer helpful? 0 Users Found This Useful (0 Votes)