Start a conversation

Configuring a Subdomain to a Different IP Address

In this tutorial, we are going to learn how to configure a subdomain to a different IP address through the WHM control panel. Usually, it is mostly used by online websites having a shopping cart.

For example: If example.com is your main site hosted on server “ABC” and the shopping cart “shop” is hosted on the server “XYZ”, and if you wish to show example.com is also hosted on the dedicated server “XYZ”, you will need to set up a subdomain pointing to a separate IP address.

Requirements for Setting up a Subdomain to a Different IP Address:

  • Cpanel Control Panel Access
  • WHM Access
  • Different IP Address or Hostname

Step 1: Log in to your WHM control panel. In the left pane, under the DNS Functions, click on the Edit DNS Zone option as shown in the image below.

Step 2: Now, scroll the page and come to the section “Add New Entries Below this Line”. Here we are going to “Add the A Record”. In order to create a new A record, type “shop” in the first box under the “Add New Entries Below this Line”. From the drop-down menu select “A” as record type. Once you select the A record it will show another box in front of the drop-down menu. Enter the IP Address or hostname to in order to mask/point it. (See image below)

Step 3: Make sure that subdomain with a similar name doesn’t exist in the user's account or the mask will not work as it should.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Diya Ahmed

  2. Posted

Comments