How to use DNS to redirect domain to specific port on my server
- by Tomaszs
I'm running a web server on port 80 and another on port 87.
I would like to use DNS so that www.example.com goes to port 87.
How can I accomplish this using DNS only?
Canonical Question: This question was originally asking about running IIS and Apache on the same server, but the same concepts can be applied to any server software receiving connections from clients. The Answers below describe the technical problems with using DNS to assign a port number for a client to connect.