954,323 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

DNS SRV to redirect to IP:port ?

Issue: I need example.no-ip.org to point to example.no-ip.org:20202

I have read that this is not possible with just DNS.
However no-ip.org lets me set up DNS SRV (records?).
Ive have followed this guide to set it up, but it does not redirect to IP : PORT

http://www.no-ip.com/support/guides/other/configuring_srv_records_with_no-ip.html#1

Still cant get it to work. example.no-ip.org only points to the IP, no port.

Q: Is it possible to do what i describe?
Q2: How? Is it just my SRV setup that is messed up?


Here is a screenshot after creating the records(?):
http://i43.tinypic.com/219b6om.jpg
(five was the default level of priority)

Thanks to anyone who bothered reading this, or can provide help!

genesis.aix
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Not possible with DNS. What you would need to do is do the redirect on the web site itself. So, have the website listen on port 80, then do a redirect to port 20202. Redirects can be done at the website configuration, via a URL rewrite, meta tag "refresh" or via code such as with server side scriting (asp.net, php, etc...).

JorgeM
Posting Pro
576 posts since Dec 2011
Reputation Points: 51
Solved Threads: 55
Infraction Points: 5
 

Thanks for your reply ITG-JM!

At the moment i just have a Host redirect at no-ip.org. So the adress itself just points to a IP. I guess it would cost extra to get the adress as a website.

I cannot use website listen, because the adress is used in a application (minecraft) wich by default uses port 25565. This leads them onto a different server.

I find it abit wierd these systems (DNS) has these limitations.

genesis.aix
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

SRV records aren't designed to do that. SRV helper records can send traffic to a specific host based on destination port, but can't redirect that port.

For example, if you have a dns zone called sip.company.com, clients can use that zone as the registrar address. Behind the scenes you setup SRV record so that anyone who requests sip.company.com and is looking for tcp 5060 will be sent to server1.sip.company.com.

CimmerianX
Junior Poster
170 posts since Jul 2010
Reputation Points: 22
Solved Threads: 29
 

Thanks for the information CimmerianX!

How can i best phrase the question? (im also seeking help on other forums)
Are the glorious serverdays over? or is there anyway i can solve the problem?

genesis.aix
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Sounds to me like you want an IP port forward. You would need something in between the 2 devices to take the originating request and redirect the port to the new host's port.

Many consumer routers/firewalls can do this right out of the box.

For a host, you can look at squid proxy or even just IPTables.

CimmerianX
Junior Poster
170 posts since Jul 2010
Reputation Points: 22
Solved Threads: 29
 

Just to be clear, there are two servers set up behind the same external IP. Server A has been portforwarded in the router with the clients default port. So when people use his adress (a) they get onto his server, but also when they use my adress (b) they also get to his server (a).

Im trying to get the adress example.no-ip.org (hereby exampleB.no-ip.org) to point to server B.

Sorry for the crappy explanations. Also i should have included all this information from the start.

Here is a more visual explanation to the problem:

Minecraft users group A (def.port:25565) -> exampleA.no-ip.org -> server external IP w/def.port --> end up on server A

Minecraft users group B (def.port:25565) -> exampleB.no-ip.org -> server external IP w/def.port --> end up on server A

Servers:
A w/port 25565 - portforwarded in router to A
B w/port 20202 - portforwarded in router to B

Web redirect only works with port 80? Is there any other way to make it so all who goes to exampleB.no-ip.org:25565 gets redirected to exampleB.no-ip.org:20202?

genesis.aix
Newbie Poster
4 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

In your router config, just create another port forwarding rule that listens on port 20202 and maps that to server B. The only issue here is that your clients will have to absolutely send the traffic to your public IP destined on port 20202 or whatever other port you want. It just can be the same port that you are using to map to server A.

Alternatively, if you can get your ISP to give you another public IP, and your router allows for a configuration of two public IPs, then each IP can map directly back to one server each.

JorgeM
Posting Pro
576 posts since Dec 2011
Reputation Points: 51
Solved Threads: 55
Infraction Points: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: