How To Set A Record to Point Subdomain to another Host IP

How To Set A Record to Point Subdomain to another Host IP :

If you have a main site ie. willtan.com and want to just point a subdomain ie. dev.willtan.com to a WordPress installation on another web host, here’s what you need to do :

Create the subdomain in (new host) cPanel

At new host’s cPanel > Subdomains > create/add the subdomain.

Note that the main domain is on another host; hence, the “main” domain ie. willtan.com is only accessible via IP form on the new host.

Note that it may take a couple of minutes (for most web hosts) for the subdomain to become active.

Install/activate and customise the WordPress on the new host

cPanel > Softaculous > WordPress > Install/activate a new WordPress installation on the subdomain.

If you have already created/customised the WordPress with its main/root domain name, you can move the installation to the subdomain :

cPanel > WordPress Tools / WordPress Toolkit > Manage (the WordPress site you’d wanted to move) > Move Installation to the subdomain :

 

Create a A Record in the domain registrar for the subdomain

Log in to the domain name registrar ie. NameCheap.

Click “MANAGE” button on the main domain > Advanced DNS > ADD NEW RECORD :

Type : A Record

dev.willtan.com. IN A xx.xxx.xxx.xxx

www.dev.willtan.com IN A xx.xxx.xxx.xxx

where xx.xxx.xxx.xxx is the (shared) IP address of your web server.

Save all changes. That’s it!

Normally, it’ll take around 30 minutes for the new record to take effect.

Updated : 31th Dec 2016

Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on linkedin
LinkedIn

Copyright © 2011 – 2018 by WillTan.com | Privacy Policy (GDPR) | Terms of Service | My Mail Box 882690 Singapore 919191