Did you know that it is possible to use different name servers for your sub-domains? You could host each of your sub-domains on a different host. You may want to do this for various reasons from security to price. So how do you host different sub-domains on a different server than your main domain yet a sub-domain is part of the domain?
Suppose the domain registrar for your primary domain is GoDaddy, but you want to host your sub-domain on a different server with Namecheap. In this case, you need to add an “A” record in the GoDaddy DNS manager. In that “A” record, you should specify the new server IP from Namecheap. This will redirect your sub-domain to the new host – Namecheap.
Here are the steps you need to follow to point your sub-domain to a different host. The guide should work for most hosts and domain registrars although some may have some slight differences.
- You first need to create a new address (A) record for your root domain.
- Log in to your domain registrar
- Go to Web Host Manager
- Click on DNS functions “Total DNS Control and MX Records.”
- Select the domain you are working with and click on Edit DNS Zone
- The first group on the pop-up window should be A Records. Click on Add New A Record
- Add new A Record
- Add the Host Name – Your host name should be the name of your sub-domain, for example, blog.example.com for a blog
- Enter the I.P address of the server you wish to point your sub-domain to
- Save then restart your DNS service
- Set up your sub-domain at the other host
- Create account or log in to your desired hosting account for your sub-domain
- Click on the “Domain Manager” and select “Assign a new domain to your account.”
- Add the URL of your main domain e.g. domainname.com
- Verify the ownership of the domain you have entered. The verification method may differ depending on the web host.
- Once you have verified your domain name and it has been assigned to your account, you can then proceed to create a sub-domain
The change of DNS records takes a few hours to take effect. During this time, you may be unable to browse the sub-domain, but you can create a new site on it on the new server on which it’s hosted.
Other articles than can be interesting for you:
- How to Buy a Cheap Domain Name: 3 Methods to Use
- How to Buy Premium Domain Names: Top 5 Tips to Use
- How to Redirect an Old Domain to a Brand New Domain
— Sathya Technosoft (@sathyainfo) 18 de noviembre de 2016