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.

  1. 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
  1. 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
  1. 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

Conclusion

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: