I'm new to dns admin so please be gentle. Here is my set-up:
Domain name with a few A records points to my personal IP. example.com server1.example.com server2.example.com Router forwards all port 80 requests to a Ubuntu VM box with Bind9 and Webmin installed Bind9 is then supposed to resolve the server1.example.com and server2.example.com Then send them to some more VM's that host host web apps.
I think i have my master record set up for the domain on the Bind9 box correctly, but when go to the domain, I get the holding page for my Ubuntu VM web server and not the server1 or server2 boxes.
It appears to be getting to my Bind9 box but no further. Is this because I have the hosted DNS record on the internet and another on my internal box? or are they supposed to work together? Is it because my Bind9 isn't listening correctly?
I have been using webmin to set up the bind9, and it keeps saying all my config files are okay.
Any help, or pointers for things to look for would be gratefully received.
Here are two suggestions:
You'll need to reconfigure your router to send the http requests to the proper web app server, and not just send them all to the Ubuntu VM box.
You'll need to reconfigure your Ubuntu VM box to act as a reverse proxy. This site gives a good breakdown of how to reverse proxy with apache: http://www.apachetutor.org/admin/reverseproxies
What's happening is that the http request is being sent to your private IP per DNS. Once the http hits your private IP, the request is routed to your Ubuntu VM web server. Your Ubuntu server is listening on port 80, gets the request, and displays your page.