Question

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: abcd.com

Clients’ Domains: 1234.com 5678.com qxyz.com

I want to redirect clients’ domains to my ns1.abcd.com and ns2.abcd.com… But nameservers not found.

@KreatifMaksimum

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 ns1.digitalocean.com
ping -c1 ns2.digitalocean.com
ping -c1 ns3.digitalocean.com

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:

https://www.digitalocean.com/community/tutorial_series/how-to-configure-dns-servers-with-powerdns-on-ubuntu-14-04

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