How to point subdomain to a new host?

by user1448031   Last Updated February 13, 2018 11:04 AM

I will be creating cPanel accounts in WHM where I need to create subdomain address and tie it with an IP. I will then setup a new website on this address.

I would like to know, after doing this how do I then point an already existing subdomain to this new IP. Do I just go to the domain registrar and change the A record to the new IP? Do I also need to change the nameservers at domain registrar or would changing the A record suffice?

Answers 2

It depends how you want to manage your domain DNS. If you're using your domain registry DNS, you need to only change the record of your subdomain to point to your new server's IP address.

If on the other hand, you like to manage your domain DNS using your hosting provider control panel or WHM etc, you then need to change your domain nameservers at your domain registry to your preferred ones.

The easiest way is to simply change your subdomain A record to point to your server's IP address and wait for the change to propagate throughout the Internet.

January 22, 2015 17:31 PM

I have achieved pointing a subdomain ( from a domain ( hosted in a environment running WHM (localServer) to an Amazon EC2 instance (cloudServer).

I will explain using Amazon solutions, but Route53 (Amazon Nameserver Service) steps are more or less equivalent in any other environment (create HOSTED ZONE, RECORD SETS, etc). Steps 1 thru 5 are, therefore, Amazon specific and represent background steps beyond the strict scope of this question (yet, IMO, necessary). Steps 6 & 7 answer the question regarding WHM configuration.

Step 1: Open Amazon EC2 dashboard, and create a new ELASTIC IP;

Step 2: Select new ELASTIC IP from list (, click on ACTION, and pick ASSOCIATE ADDRESS from dropdown list;

Step 3: Select the instance that you want to point your subdomain to and ASSOCIATE;

Step 4: Open Amazon Route53 >> HOSTED ZONES >> CREATE NEW, insert in the DOMAIN NAME box and CREATE; Route53 HOSTED ZONES Create

Step 5: Open Amazon Route53, select >> GO TO RECORD SETS >> CREATE RECORD SET, insert your ELASTIC IP (; choose type A IPV4 ADDRESS and CREATE; enter image description here

Step 6: In WHM, open EDIT DNS ZONE and choose your domain from the dropdown list (

Step 7: Go to the bottom of the page and insert at least two of the name servers listed in your Route53 A record (in this case and DONT FORGET THE "." at the end of the url!!! WHM insert NS subdomain

You should be all set, use online DNS lookup tools, such as MXTools (choose DNS LOOKUP) or WhatsMyDNs, to verify if everything is set. Propagation is surprinsingly quick, because your master domain did not move, it just points new info (subdomain nameserver) dynamically now.

tony gil
tony gil
February 13, 2018 10:34 AM

Related Questions

how to upgrade to second-level domanin on Altervista?

Updated February 21, 2016 01:01 AM

Using Different Host than Registrar for Subdomain

Updated January 07, 2018 23:04 PM

Need help in registering my very first domain

Updated January 01, 2017 08:01 AM