Solved

NAT and DNS

Posted on 2003-11-17
7
1,219 Views
Last Modified: 2010-04-11
I have my cisco router doing nat for my only public ip address, a.b.c.d. I have my zone file set on my dns server to point my web, mail, and dns to my public ip a.b.c.d.
My question is this. I want people that type in webmail.example.com to go to the mail servers web page and the people who type in www.example.com to go to the www server. But I only have 1 ip and the both use port 80. So i made the router use 8080 for webmail but i dont know how to set that in dns.

DO you?
0
Comment
Question by:mesican
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 18

Expert Comment

by:chicagoan
ID: 9769712
You can't.
You can use your webserver at port 80 to redirect though.
If you publish www.example.com and www.example.com/mail, you can put a page at /mail that redirects them to www.example.com:8080 which will port forward to your other server.
0
 
LVL 16

Expert Comment

by:InteraX
ID: 9770342
Have you thought of using the DNS headers to separate the two sites? They can both sit on the same IP address but if the DNS headers are different then the traffic gets forwarded to the relevant page.
0
 

Author Comment

by:mesican
ID: 9772779
How would you use ths dns header to seperate the two sites?
Would I need to buy another piece of hardware?
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 16

Accepted Solution

by:
The--Captain earned 50 total points
ID: 9781824
>You can't.

Don't be so sure - wouldn't using apache and/or squid to redirect clients to the appropriate internal host based on HTTP/1.1 "Host" headers do the trick?  The client is presenting all the data it needs for the server to determine which site to load...

mesican - if replacing your cisco with a linux box (or dropping in a linux box behind your cisco) is feasible, try reposting this in the apache TA and see if there is anyone there that can help you (also, the linux networking TA might not be a bad idea either).

Cheers,
-Jon

0
 
LVL 18

Expert Comment

by:chicagoan
ID: 9783052
> i made the router use 8080 for webmail but i dont know how to set that in dns.

The answer is you can't

but you can redirect, I gave him one way to solve his problem, interax gave him another, and you gave him a third...

mesican, please come back and tell us what you finally implement

0
 
LVL 16

Expert Comment

by:The--Captain
ID: 9783461
>The answer is you can't

Apparently someone begs to differ.

>interax gave him another

I'm utterly unconvinced of that, and your solution was not what he wanted, which was to have two distinct domains (or subdomains) which transparently serve up different content from one another.  My answer was the only one with that distictive "Yes you can" that answered the original question.  Allow me to refresh your memory:

>My question is this. I want people that type in webmail.example.com to go to the mail servers web page and the people
>who type in www.example.com to go to the www server

He didn't say it couldn't redirect ,*you* did.  My answer gives him exactly the functionality required in the original question. 'Nuff said.

Cheers,
-Jon

0
 
LVL 18

Expert Comment

by:chicagoan
ID: 9783620
not one to want the last word ....

Mexicano,
díganos qué sucede  
0

Featured Post

Surfing Is Meant To Be Done Outdoors

Featuring its rugged IP67 compliant exterior and delivering broad, fast, and reliable Wi-Fi coverage, the AP322 is the ideal solution for the outdoors. Manage this AP with either a Firebox as a gateway controller, or with the Wi-Fi Cloud for an expanded set of management features

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question