subdomains to different VMs on one IP address

Posted by efbenson on Server Fault See other posts from Server Fault or by efbenson
Published on 2010-02-17T19:55:19Z Indexed on 2010/04/01 4:03 UTC
Read the original article Hit count: 433

Filed under:
|
|

I have a setup at home with an ESXi server Freenas server and several win7 clients.

I have a domain refactoringme.com I set the @ and WWW domain record to my (current) IP address. I then forwarded port 80 to my local win2k3 server on my Linksys router and used host name matching to run the 5 test sites I have. That all works.

Now I want to use the turnkey machines and move to dedicated VM servers. One for a wiki one for SVN etc.

So how do I get www.refactoringme.com to go to one internal IP address and wiki.refactoringme.com to different internal IP address, while they both use the same external IP address? I added the additional record for wiki to my domain and pointed it to @.

I figured it had to be involving a real firewall. So I installed PFSense on a VM and set it on the DMZ on my Linksys.

From this point I haven't had any luck. I thought that maybe it would be in the DNS Forwarder or maybe in the Rules sections but neither have worked. Am I doing it wrong or on the right track but am missing something.

Thanks for all the help.

© Server Fault or respective owner

Related posts about dns

Related posts about firewall