Redirect sub-domain to ip and port!?

Status
Not open for further replies.

ziycon

New Member
Can you redirect a sub-domian like me.mysite.com to 11.11.11.11:1234? I've tried everything but can't do it, is it possible to do in the .ht file?
 

Forbairt

Teaching / Designing / Developing
You'll want to add an A record for the subdomain.
 

mneylon

Administrator
Staff member
There are two things:

1 - the subdomain

2 - the port

The subdomain is just a dns addition

For the port - it depends on what you are sending it to ie. your dsl line or something else, as you might need to do the redirection at the router level on the dsl line
 

ziycon

New Member
I have say a voice comms server like Teamspeak and the ip is 11.11.11.11:1234 and i want people to be able to put ts.mysite.com into the program and it to connect.
 

niall

New Member
I have say a voice comms server like Teamspeak and the ip is 11.11.11.11:1234 and i want people to be able to put ts.mysite.com into the program and it to connect.

Right, DNS A records are only concerned with mapping the name to the part before the colon, so ts.mysite.com to 11.11.11.11 There is a DNS record type called SRV which could do what you want, but it mightn't be needed.

The client program should be able to hide the fact that it's connecting to port 1234 and just allow the user to enter ts.mysite.com. That's presuming that port 1234 is the default port for the application you're using. This is just the same are you don't care about port 80 and port 443, you simply tell your browser whether you're connecting via http or https and it decides which port to connect to in the background.

Niall.
 
Status
Not open for further replies.
Top