LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-24-2003, 06:20 PM   #1
charon's coin
LQ Newbie
 
Registered: Jul 2003
Distribution: valhalla7.3
Posts: 4

Rep: Reputation: 0
Question port# authority using dns or other?


Is there a way to have my dns computer tell a browser to go to a specific ip and port#

<problem>
I'm looking to change port# used to access my http server. It's listening on port80 but i would like to change it to another port#. I want to accomplish this from/using my dns computer

<my situation>
I have a single static ip (wan side) from my isp and a linksys router. One machine (redhat's valhalla) is dns bind 9.2.0. It is working from the lan side address 192.168.1.1 and is directing http to a second machine (apache2.0.47) virtualhosting from address 192.168.1.2. Dns is forwarded through the router via port53. Apache is working through port80 and the url's are on target

It's not a pressing problem. Just something I'd like to learn more about. Any help would be good

Last edited by charon's coin; 08-24-2003 at 08:35 PM.
 
Old 09-08-2003, 03:08 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
An old question, but the same answer...
in short, no... dns will only serve up numbers...
 
Old 09-13-2003, 06:09 PM   #3
charon's coin
LQ Newbie
 
Registered: Jul 2003
Distribution: valhalla7.3
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for replying Peter.

It's looking more like multiple wan ip addresses and a little iptable-ing to make it work. Would you care to share another way to do this?

Alex.
 
Old 09-14-2003, 10:01 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
First choice would be some non-masqueraded packet routing from a friendly external server to change the destination ports and address but not the original source address.
Your dns serves up the external address.
You need to have a spoofing SNAT entry in your own POSTROUTING to say it originated from the friendly server or the connections won't route properly.

Second choice for me would be an http page on an external server (eg Geocities) serving redirects to your virtual names.
This means your dns supplies one numeric host address and the client browser adds the character paths, eg http://66.218.77.68:/virtual/server which get redirected to the browser as http://virtual.url.no:81/pages/to/view by the http page.
People can then Bookmark the final address.

Third and most complete choice would be to set up an external proxy with the redirects.

For the last two, it would mean you do the dns to supply the external server address, but have to play around with the paths you advertise to match the paths you can get on the external server.

(And if the proxy/redirect is external, it kinda follows that some of the webpages are too...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DNS, authority zone mrpc_cambodia Red Hat 3 01-18-2005 10:19 PM
DNS/BIND domain 'authority' tisource Linux - Software 7 07-15-2004 07:16 AM
Port Forwarding via DNS enigmaweb Linux - Networking 5 08-22-2003 01:36 PM
how to open port 53 (DNS)? importboy03 Linux - Security 3 02-07-2003 04:17 AM
BIND DNS and port 1038 sslee Linux - Networking 2 07-04-2001 05:25 PM


All times are GMT -5. The time now is 01: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration