Question

How to create subdomain in Digital Ocean DNS control Panel?

  • Posted May 7, 2014

Hi,

I’m a beginner with VPS setup, I tried installing zpanel and it asked for a subdomain. Now I created a vanity name server with digital ocean and want to create sub domain to install zpanel. Please guide

Shiya,

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Create a new A record. If you want subdomain.yourdomain.net for example create an A record with the first section as ‘subdomain’ and the second section as the IP address you want to target (your droplet normally). <br> <br>Hope this helps :)

There is a tutorial that should help walk you through the process: <br> <br>https://www.digitalocean.com/community/articles/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel <br> <br>Are you trying to host both the sub-domain and the the root domain on the same droplet or on two different ones?

Dear @asb any tutorial on hosting these scenarios

  1. hosting both subdomain and domain in same droplets 2.hosting subdomain and domain in different/separate droplets

Thank you in advance

Hello @asb I’m interested in setting up an existing sub-domain on the same droplet as my root domain (I had a root domain and subdomain hosted on DreamHost that I’m moving to DO - I currently have the root domain working. They follow the pattern: example.com and portfolio.example.com). The tutorial mentioned above specifically covers using different droplets; it seems like I should be able to just add an A record for the subdomain and have it point to my root domain’s ip address, is this correct? Also, do I gain anything by keeping the sub-domain listed with DreamHost or can I safely turn that off once I’ve got it configured in DO to point to the root domain?

Thanks