Possible Duplicate:
How to redirect domain to specific port

I have a domain and I want the domain to be like this:

example.com -> 32.432.32.34:99

Is this possible?

link|improve this question
Not programming related post on serverfault.com – JonH Nov 18 '09 at 18:13
I know this duplicates an existing question, but I can't find it... – Zoredache Nov 18 '09 at 20:15
Only one duplicate? I'm pretty sure I've seen this one several times this week. – womble Nov 18 '09 at 20:32
feedback

migrated from stackoverflow.com Nov 18 '09 at 20:06

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by womble, Kyle Brandt, Zoredache, Alnitak, Sam Nov 19 '09 at 12:25

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

4 Answers

DNS is only for IP mapping. However, you could use a redirect to do a HTTP 302 and point to the IP:port.

link|improve this answer
feedback

Short answer: no

link|improve this answer
1  
In an effort to provide more info, I found this: DNS does not have the concept of "port number" in its records. (This was completely true in the past but is not quite the case today with SRV records which do include a concept of service and thereby in some sense port.) So ignoring SRV records (which practically no clients except AD domain clients trying to reach DCs would use) you cannot use DNS for this but much rather do such routing on the "application server" (e.g., the Web server usually.) help.lockergnome.com/windows2/… – LymanZerga Nov 18 '09 at 18:11
feedback

no you cannot specify a port.

link|improve this answer
feedback

You can use a redirection service that will handle this for you. Basically respond on port 80 and send an http redirect 301/307 to your intended location.

link|improve this answer
feedback