2 Servers 2 domains 1 public IP address
I have two servers: ServerA and ServerBI have two domain names: DomainA and DomainB
I have one public IP address: 62.215.X.X
ServerA has two Ethernet cards. One with the public IP 62.215.X.X which is connected to the DSL router. The other one with 192.168.0.1 which is connected to a Swtich.
NATing is enabled on ServerA (I use Firestarter). DNS is running on ServerA.
ServerB has one Ethernet card with IP 192.168.0.2 which is connected to the Switch.
NOW, what i want to do is to have all requests for DomainA to be forwarded to ServerA.
Also, I want to have all requests for DomainB to be forwarded to ServerB.
Is that possible?
for example if someone is doing
1- DomainA (from browser)
2- ftp DomainA
3- ssh username@DomainA
Or whatever client application which uses DomainA, i want it to forward this request to the server application in ServerA.. And the same goes for ServerB.
Is this possible? if so, how ??? can DNS do this ???
(I know I can create virtual hosts in apache........ but I'm seeking a solution to be applied to all internet applications such FTP, SSH, elc).