Branded Nameserver and Client Domains Redirection Problem

March 24, 2017 497 views
DNS Networking Ubuntu 16.04

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?

2 Answers


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.

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.

Have another answer? Share your knowledge.