I have a server with debian that uses the xen kernel. I've successfully created and started 2 xen nodes, lets call them xen1.domain.com and xen2.domain.com. They both have their own internal ip and they can be connected to interally. But the problem is that I only have 1 external ip. Is it possible for them to share the same external ip yet be able to connect to each one of them? I have a domain but I'm not sure how to set up the DNS records to work with this. Does anyone know how to do this?
Yes, you need a load-balancer.
It 'own's the external IP and then uses one of a variety of methods to decide which of the internal servers to send the request to.
These are used everywhere all the time to deal with service outages etc. There are hardware ones such as those made by Cisco and F5 and software ones too (some are free, do some googling around).
It can't be done seamlessly. You have two options:
Then you can connect via ssh if you specify the port number.