|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
2 DNS entries, 1 IP
I'm kind of a newbie, and I'm not sure this is the right place for this, but perhaps someone can help me.
I have 2 Domain Names (a.com, b.com) which map to the same IP address. That IP address consists of a router which has a basic firewall and routes all web requests on port 80 to an internal ip address. What I want to do is, based on what Domian Name is accessed, route that request to a certain internal machine. For example, when someone accesses a.com, it will be routed to 10.10.10.1, but when b.com is hit, it gets routed to 10.10.10.2. These are internal address that the router gives the machines and aren't accessable to the public. Thanks! |
|
#2
|
|||
|
|||
|
You would need to use a proxy inforon of the web servers to do the mapping for you (Apache can do this).
|
|
#3
|
|||
|
|||
|
Thanks... I was looking through mod_proxy and started playing with that, although I could only get a.com and b.com to go to the same machine with ProxyPass (ProxyPass / URL). I was trying to use RemoteProxy (RemoteProxy URL URL), but that did nothing. How would I tell the incoming request to route b.com URL's to the b.com machine and a.com requests to the a.com machine?
|
|
#4
|
||||
|
||||
|
by having a.com resolve to one LAN ip and b.com resolve to the other LAN ip. You can do this with the hosts file on the proxy machine or you can setup a DNS server. If you already have a DNS server and it is the one that resolves both domains to the same IP, then you can use "views" to have the DNS server resolve to local addresses for local lookups, and the public address for public lookups.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > 2 DNS entries, 1 IP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|