Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got two addresses: ipaddress and ipaddress:100. The first one uses the default port of 80, but the second server (running GitLab) uses port 100. I have multiple IP addresses, but I am wondering if it is possible to have DNS link an address like git.domain.com to ipaddress:100?

Is this possible with DNS? I have full domain and root access, so any option is available.

share|improve this question
up vote 3 down vote accepted

DNS only translates names into IP addresses and is oblivious to any port numbers.

However, you can use Apache as a reverse proxy to make the content accessible at git.domain.com by editing the virtual host file. I believe this answer on Server Fault shows one method of how to do this that should work well for you.

share|improve this answer
In the answer you linked to would all the ports be changed to 80? – ComputerLocus Jan 23 '14 at 4:57
Only for the specific virtual host file you are editing. The ports would also not actually be changed to 80 they would just become accessible though Apache as the Apache service would be acting as a proxy/middleman. – Analog Jan 23 '14 at 14:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.