Solved

NAT and DNS

Posted on 2003-11-17
7
1,216 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
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
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Hi All,  Recently I have installed and configured a Sonicwall NS220 in the network as a firewall and Internet access gateway. All was working fine until users started reporting that they cannot use the Cisco VPN client to connect to the customer'…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now