How to run a DNS hosting through a droplet?

Is anyone running a DNS hosting through a droplet?

We use EPP to register and manage domains for our clients through whmcs and our provider is dropping their support for dns management through epp where we can only set nameservers instead.

We are considering on running our own dns hosting for clients with web/email forwarding options through a droplet. Perhaps bad idea since we have to write a module or use any existing so clients can modify their dns through whmcs client area.

is this possible? how would you guys do it instead?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer


When it comes to setting up a DNS cluster, PowerDNS would probably be the easiest to work with as it has a built-in API that you can use to create a module for WHMCS (if there’s not already one).

Ideally, you’d setup two, three, or more Droplets and install PowerDNS on each one. This would be a standard master/slave setup (replication), though you could setup something more robust, it all really depends on what you need and how many domains you’re hosting or plan to host.

There’s an existing guide here at DigitalOcean that details how to go about setting up PowerDNS, so I’d take a look at it to get familiar. It was written for Ubuntu 14.04, though it should work the same with Ubuntu 16.04 or 16.10.

The PowerDNS API can be found here:

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.