How to configure DNS in WHM & Cpanel Using Digital Ocean Droplet

I want to offer web hosting services, so I decide to deploy a droplet in Digital Ocean and installed WHM & Cpanel to a CentOs 7. I was successful and can be able to host a website.

The problem is that every time I need to host a website I have to add the domain of the website in Digital Ocean DNS tab.

  • I set the nameservers of the website domain name I want to host to Digitalocean nameservers in the domain registrar.
  • I add the domain name to digital Ocean DNS tab

Is there a way I would avoid the second requirement of adding the domain to digital ocean DNS tab, so that when a client order hosting service from me I will not need to add his/her domain to Digital Ocean tab?

How do I set custom nameservers such that the client uses my custom nameservers eg instead of digital ocean nameservers

Show comments

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.

You can also do it with Plesk. It 100% fits your requirements. They have step-by-step instruction in the KB article on how to deploy it on Digital Ocean:

Talking about DNS, it is configured by default to use your server to host zones. All you need is to register these nameservers with your registrar.

More about DNS in Plesk can be found here:

cPanel has a built-in DNS manager. You can find how to setup the nameservers here:

Once you have done that, you can give your clients your own nameservers. Your clients will use the DNS manager in cPanel to manage their DNS records.