I have Windows Server 2008 running on my network with the following properties:
- Internal IP: 192.168.1.100
- External IP: 242.24.124.12
Now I have registered a domain (example.com) and have it pointing to the external IP of my server.
Now all is fine and dandy, when I go to example.com, I get pointed to my server.
What I want to do, is set up a DNS on said server, and have it redirect requests to example.com to my internal IP, from internal network.
MSPainted:
So what I want to happen:
When an external host connects to example.com, they use their default DNS and it resolves to the external 242 IP. When an internal hosts goes to example.com, they use the internal server as a DNS which responds with its own 192.168.1.100 IP.
Is it possible to set this up with Windows Server 2008?
What I was thinking is install the DNS role on my windows server, then create an A record for example.com pointing to itself, and have my DHCP server serve 192.168.1.100 as the DNS server. But how would I set it up so my internal hosts use the real DNS when making requests for other domains? Is there anything else I must do to get this to work properly?