Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
How to use DNS to redirect domain to specific port on my server

So here's the deal: I have a domain (say, mydomain.net) that I want to create subdomains for. Specifically, I want, say, crm.mydomain.net to map to xxx.yyy.zzz.www:5555 where the letters refer to an IP address. Is there any way to do this?

share|improve this question

marked as duplicate by Chris S Sep 14 '12 at 1:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 10 down vote accepted

Ports are not part the "normal" DNS system. There's no way to add a port to a A or CNAME record.

Side Note: Some software supports SRV records which do include a port number. This is very uncommon and I don't know of any web browsers which support this (which is probably what you're asking about).

If the websites are one the same machine, you can use host headers to differentiate. I'm guessing you've got Dynamics CRM installed; which defaults to port 5555; you can add an additional binding in IIS for port 80 with a specific host header.
If they're on different machines, you can use a reverse proxy to send traffic to each machine as is appropriate. ISA Server or Forefront TMG can do this; or there's dedicated devices, alternates like HAProxy, Squid, etc, etc.

share|improve this answer

if your app on 5555 is web-based :

create an "A" record in dns for crm.mydomain.net to point to xxx.yyy.zzz.www

on the machine that is xxx.yyy.zzz.www setup a website on port 80. use redirection (from the webserver or from the default doc) to automatically do a html redirect to http://crm.mydomain.net:5555

in a defualt doc, it would look like :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="REFRESH" content="0;url=http://crm.mydomain.net:5555"></HEAD>
</HTML>
share|improve this answer
    
This really doesn't help. I want everything on port 80. –  Dmitri Nesteruk Dec 12 '10 at 10:08
    
@Dmitri, If this is Dynamics CRM, it only installs to port 5555 if you do not use the Default IIS Site and have the installer create an additional site. If you do not have a website on Port 80 on the machine, you can disable the Default Site and add Port 80 to the CRM Site. If you're disabling Port 5555 you have to run the client deployment wizard again, as the configuration file they pull from the server has to be updated with the new port. I'd strongly suggest talking this over with the MS Partner you purchased the software from. –  Chris S Jan 5 '11 at 14:03

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