I know that it is not possible to configure DNS so that different subdomains get pointed to the same IP, but with different ports. I.e.:
alfa.example.com 10.10.10.1 :550
beta.example.com 10.10.10.1 :560
Because DNS only provides names and addresses - no port numbers.
I have several subdomains, though they are not all for web applications. For example, some of them are been used for terminal servers, other are for mail servers etc.
For this reason, I need different port and I dont want to make the port fixed in the local machine .
Maybe the solution is by setting up proxy servers for those addresses. They can proxy requests or setting up server for the ports that can provide them to the client.
Can you please help me find the best solution?