Hello I need help with local DNS networking. On my network I have a server with 6 virtual servers all with there own local IP address like shown below.
Virtual Server 1 – 192.168.1.201
Virtual Server 2 – 192.168.1.202
Virtual Server 3 – 192.168.1.203
Virtual Server 4 – 192.168.1.204
Virtual Server 5 – 192.168.1.205
Virtual Server 6 – 192.168.1.206
Lets say I install Apache and put up a website on Virtual Server 2 and Virtual Server 3. I then can enter the local IP address while I am on the network and the website will load fine.
If I forward port 80 in my routers admin panel to 192.168.1.202 or 192.168.1.203 I can access the site by typing in my public IP address into the URL bar.
So now I can go to Godaddy and change the A record of one of my domains and when I go to the site everything loads fine.
This works fine and dandy if I only want to utilize one of my virtual server. What I would like to do is forward my public IP address at Virtual Server 1 and then it gets routed through Local DNS to Virtual Server 2 or Virtual Server 3 depending on the domain that was entered. I think the right way to do this is using Bind DNS and setting up zone files. I have tried to get this working but cant get the local DNS to route. Any help or direction is greatly appreciated!
what is the purpose of this? what do you exactly want to do? load balancing or different domains pointed to different servers? you could try installing a nginx based webproxy on one of the servers and setting it to forward the traffic to desired server, by domain or desired rules.