Report this

What is the reason for this report?

Using Digital Ocean DNS on a multiple domain droplet (cPanel)

Posted on July 3, 2013

I’m looking for some help on understanding how to use Digital Ocean’s DNS for a droplet that has multiple domains (set-up through cPanel). Does anyone have experience in dealing with this? Am I better off with using DO’s DNS or cPanel’s DNS? It doesn’t matter to me, just so I can get it working.

I was going to set up my own DNS, but that doesn’t seem entirely easy being we are restricted to one IP address per droplet. And I’m not entirely savvy with DNS technicalities, so I’m looking to learn so hopefully you guys can shed a light on my problem.

Anyways, for example let’s say this is my info:

IP address: 1.2.3.4 Hostname: blue Domain (directory): example1.com (1.2.3.4/~example1) example2.com (1.2.3.4/~example2) example3.com (1.2.3.4/~example3)

How would I go about using DO’s DNS services to use the ns1.digitalocean.com and ns2.digitalocean.com at my domain registrar so that the domains would correctly point to their respective directories on the droplet?



This textbox defaults to using Markdown to format your 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.

@mrmanivasagam: What error do you get when you update your nameservers to ns1.digitalocean.com and ns2.digitalocean.com?

In your web server on your droplet, e.g. Nginx, Apache2, etc., create a virtual host for each domain.

Correct me if I’m wrong, but doesn’t cPanel already do this for me when I go to Create a New Account from WHM? Or am I misunderstanding something? I have the accounts created on the VPS, I’m just wondering how to get DNS working on the droplet so domains point to their respective address.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.