LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-22-2006, 02:16 PM   #1
flashl
Member
 
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
Need DNS zone file info to web redirect


I am trying to help two friends. One is on a home cable/DSL network with ports 25 and 80 blocked. The second has a T1 and offered to allow the home user access to redirect port 80.

We have all searched, but are still unclear what the zone file for DNS on the T1 host should look like to make this happen.

A zone file have been created for the home cable user's domain on the T1 host, but we are not certain how to create the A/SRV/CNAME records that will cause http://domain.com:8080 to be redirected to http://domain.com.

Could anyone point to where there are guidelines or rfc docs that explains what to do.

Thanks
 
Old 11-22-2006, 03:13 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You cannot do port translation with DNS. Redirecting port 80 (because http://domain.com is the same as http://domain.com:80) to port 8080 must be done some other way.

Off the top of my head, you could have the A record of www.domain.com point to the T1 host's IP address. The T1 host could run a webserver and the index.html for www.domain.com would be a redirect to www.sub.domain.com:8080. www.sub.domain.com would have an A record that pointed to the broadband network.
 
Old 11-23-2006, 06:30 AM   #3
flashl
Member
 
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks for your reply. I am just curious, do you think that the solution that you proposed is the same that sites like no-ip or dyndns offer?

When I read these sites faqs I got the distinct impression that their solution for home users was some DNS magic that I could not understand.


Again, thanks.
 
Old 11-23-2006, 09:48 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
What the sites you mentioned do is direct the traffic to themself, then have a reverse-proxy running to send the traffic to your HTTP server on a different port. Of course, you could do the same thing by using mod_proxy on the T1 host instead of simply using an HTTP redirect.

Proxying is more transparent and will work for a lot more different types of web apps, deep links, etc, but it also requires that all the traffic goes through the T1 host first before it reaches you. With a redirect, only the first request goes to the T1 host, after that they're on your page and all the requests go directly to your server.

Last edited by chort; 11-23-2006 at 09:50 PM.
 
Old 11-24-2006, 09:29 AM   #5
flashl
Member
 
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Thank you so much for your response. I have been reading and pondering the mystery of what those services were offering for a very loooooong time!

Again, my deepest thanks for your patient and time.
 
  


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
HELP: slave DNS is not updating Zone FIle from Master Cypher12 Linux - Networking 2 09-12-2006 06:12 PM
Cache DNS server and zone file DanielTan Linux - Networking 7 09-26-2005 11:00 AM
DNS zone file question DanielTan Linux - General 3 09-21-2005 09:52 PM
Need help with DNS zone file please:-) TippyToes Linux - Networking 5 04-28-2004 05:32 PM
RFC - DNS - what is required in a zone file Bluesuperman General 0 02-25-2003 05:47 AM

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

All times are GMT -5. The time now is 12:18 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