Branded Nameserver and Client Domains Redirection Problem

Hi, I have a problem with my clients’ web sites. I use nginx for web server on my droplet. Create many sites for my clients but they redirected with IP. I added my own company domain to droplet. Now, I want to create my own nameservers for my clients’ domains. How can i do it?

Anybody to help me? Thanks

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.

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.

Ok, I have already did it but not work. My issue is different. For example;

Main Domain:

Clients’ Domains:

I want to redirect clients’ domains to my and… But nameservers not found.


You can overlay DigitalOceans’ DNS, though the IP addresses may change in the future so you’d be responsible for keeping up with that. You can run:

ping -c1
ping -c1
ping -c1

To get the current IP’s and use those to register new name servers with your registrar. How depends on your registrar as they all seem to do things a little differently.

The best way would be to run your own DNS servers, as then you’re in control of the name servers, though you’re also tasks with setting them up and managing them. I’d recommend taking a look at PowerDNS. There’s a few general purpose guides here:

Although written for Ubuntu 14.04, they should work on 16.04/16.10 as well.