Question

Is it mandatory the use of the Digital Ocean's DNS for each record when handling multiple domains/subdomains on a single droplet?

  • Posted September 29, 2014

Hi,

I’ve read different post on the Digital Ocean’s Forums and still I have not clear how the setup for multiple domain works in here.

If I setup a droplet for handle multiple domains, is the apache vHost enough to handle the request or is it mandatory to set it up every single domain /sub-domain also on the Digital Ocean DNS server.

I’m asking because I have my Vanity NS pointed to the Digital Ocean’s NS and the main domain resolves ok but the sub-domains no, and I have double checked and the sub-domains are set properly on the vHost.

Also I know using a WildCard like [*.mysite.com] is an alternative on the Digital Ocean’s DNS panel but at the same time I don’t know how it migth affect the resolution of the vanity NS1.mysite.com, NS2.mysite.com and NS3.mysite.com

Subscribe
Share

I forgot to mention besides the vhost, there is a local DNS inside the droplet and that is why I’m confused.


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.

Hi!

If you have your own nameservers or are happy using the DNS management tools provided by your registrar, you don’t need to use DigitalOcean’s at all. We simply provide the tools to configure DNS records from our control panel for the convenience of our users who would rather manage both their servers and and their DNS records in the same place.

Generally speaking, setting up DNS for a DigitalOcean droplet isn’t any different than for any other server. Each droplet receives its own IP address. If all your subdomains are going to be on a single droplet, then a wildcard CNAME is likely the easiest way to do it, or you could use an individual A record for each subdomain.

If you could describe the set up you are looking to do, we can help you with the specifics.

a vHost is a piece of configuration for your web server, it has nothing to do with DNS. So yes, for your DNS records to resolve, you need to create them.