How to make nameserver from reverse proxy IP?

July 2, 2017 2k views
Apache Nginx PHP DNS Ubuntu CentOS Ubuntu 16.04

I have a query.

I got a domain named and i want to set nameserver as and

I know how to do it by creating child nameserver.

But the problem is, i have a server example where i have cpanel hosted.

and i have another server i.e. which i want to use as reverse proxy, so my main domain shows only ip as main ip which in the backend, forward all traffic to

My main objective here is to hide my main ip i.e. and create a name server with my reverse proxy ip so i can use it in multiple domain, can it be done?

3 Answers

Hi @sonuyos

That would defeat the purpose of having multiple name servers, since everything would be proxied through server2, so if that went down, then nothing would work.
And you shouldn't look at name servers as parent-child, but more as master-master, since they should be able to run by themselves with or without any of the others.

If you're just looking for branded look, then you could use DigitalOcean's name servers instead of setting up your own servers:

by Pablo Carranza
Learn how to create vanity or branded nameservers with your Droplets.

Thanks for sharing this use full tips with us. Reserve proxies ease the burden on online servers by providing both dynamic and static content. For more information you can visit our blog page:

Reverse proxies act as middlemen between the online server and internet. When browsers make a request, the DNS routes request to the reverse proxy server. You can use multiple reverse proxies to balance the load on web servers.For more, you can visit here:

Have another answer? Share your knowledge.