Report this

What is the reason for this report?

Branded Nameserver and Client Domains Redirection Problem

Posted on March 24, 2017

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



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.