I run a small software company. What I want to do is provide external access to our developers when on-the-go, say labs.company.com, with company.com being hosted elsewhere.
Here's what happens today:
- When a user enters labs.company.com a CNAME records tells to look for our_company.office-on-the.net
- our_company.office-on-the.net has an A Record which points to my changing IP Address (DynDNS)
- My router forwards petitions for services 80, 21, 22, 2222, 4444 to our only server.
- The server has virtual hosts to handle different ports.
With the arrival of new servers, I would like store different tools on different servers. Something like:
- company.com our hosting provider
- labs.company.com server0
- svn.labs.company.com server1
- frameworks.labs.company.com server2
I'd like to use the same ports for the distinct servers, like ssh -p 222 me@frameworks.labs.company.com
and ssh -p 222 me@svn.labs.company.com
How can I create an internal DNS server to send the petition to distinct servers on my LAN based on the URL regardless of what port is it ?
What would the port forwarding be like in my router ?