LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2007, 04:59 PM   #1
desibeli
LQ Newbie
 
Registered: Aug 2005
Posts: 14

Rep: Reputation: 0
Post DynDNS and port redirection


I'm hosting a Mud and a website on a machine, Mud runs on port 4000 and the website on port 8000, since port 80 is blocked by ISP.

I can't figure out how to set up the DNS records so that I can access both on the same name:

http://www.my-mud.com
telnet www.my-mud.com 4000

I tried making an A-record for the www.my-mud.com point to the IP and then make an A-WebHop to point to http://www.my-mud.com:8000, but that didn't work.

Is there another type of record, e.g. SRV that I can use to send http traffic to port 8000? and other traffic to the default port?

Or will have to use two different names, e.g. mud.my-mud.com & www.my-mud.com?

/Thanks
 
Old 10-24-2007, 05:49 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You can't specify port numbers in any way through DNS. That is not part of its capabilities. You can use the same or different names for the 2 targets, but you have to include the port number, using whatever method is correct for the client looking to your server.

If for example, people use a browser to look at your site or play on your MUD, you would have to send them to 'http://my-mud.com:4000' or 'http://my-mud.com:8000', and if connecting by telnet, it has to be 'telnet my-mud.com 4000' or 'telnet my-mud.com 8000'.

You could try SRV records I believe, but not one browser in the world asks for SRV records.

If you want to get rid of the port number in the address, you can pull some redirect and proxy tricks, but DNS cannot do what you are looking for.

Peace,
JimBass
 
Old 10-24-2007, 06:05 PM   #3
desibeli
LQ Newbie
 
Registered: Aug 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the quick answer.
 
Old 10-24-2007, 06:40 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem. After a quick reread of what you wrote originally, you absolutely can run both on one name, and just tag the port on at the end. So your website will exist at http://my-mud.com:8000 and the mud (accessed through telnet) would be 'telnet my-mud.com 4000'.

If that doesn't work, something else is wrong.

Peace,
JimBass

Last edited by JimBass; 10-24-2007 at 10:29 PM. Reason: typo in the 4000/8000s at the end
 
Old 10-24-2007, 07:24 PM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
DynDNS may be able to help you for the website. I think there is a web redirector options, it may require a premium...

But you should be able to redirect www.yourhostname.com to www.yourhostname:8000 and your users will be none the wiser.

There is no such service for telnet redirection. But you could configure your local machine to redirect port 22 to 4000 via iptables or squid or other ways.

DO NOT RUN YOUR MUD ON PORT 22! Doing so will require the engine to run as root. NEVER do this. Find some way for a 'stub' program to redirect packets to port 4000 from port 22.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port 80 redirection omlex Linux - Security 1 02-20-2005 03:22 PM
Help with a port 25 redirection service, DynDNS, and Thunderbird... darkarcon2015 Linux - Software 1 01-20-2005 03:03 PM
Port Redirection JonChristmas Linux - Networking 1 09-04-2004 03:19 AM
VNC port redirection sqn Linux - Networking 5 11-18-2003 09:38 PM
How to sniff port redirection shawnzhou888 Linux - Networking 0 07-18-2003 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration