How to redirect different domain names to different IP addresses?

Posted on May 27, 2008 under domain news and reports | 4 Comments

I got 2 domain names, www.domain1.com and www.domain2.com. They have the same external IP address 10.10.10.10.

My router can redirect an external IP address to a LAN address.
(10.10.10.10 to 192.168.0.1)

Now I want www.domain1.com redirecting to 192.168.0.2, www.domain2.com redirecting to 192.168.0.3

I don't know if any software can do that for me. If there is, please let me know.

Thanks.
I don't want to use different port (althought I could). I don't want people to type like http://www.domain2.com:445 to visit my site.

My route is an instagate that has the ability to redirect one external IP address to one LAN IP. But I need to redirect to different LAN IP according to domain names ('cause there is only one external IP). So I'm assuming the domain name is the only thing I can use to differentiate them. Thanks for answering.

4 Responses to “How to redirect different domain names to different IP addresses?”

  1. My best friends are trators..... Says:

    blah

  2. pink_floyd_is_cool Says:

    look up some stuff on DNS…

  3. arthurdent42000 Says:

    What router are you using? A lot of SOHO class routers only allow for a single translation, but larger routers will allow multiple. Let me know and I can work up a sample config.

  4. txengineer762 Says:

    It sounds like you are talking about Network address translation. If you are trying to direct traffic at one address but designate it for two servers running the same application you would need a load balancer (like F5). If you are running differentiated services on different ports you need to do port address translation instead, that way your external address stays the same but you port traffic can go two different directions (i.e. port 80 traffic goes to 192.168.0.2 and port 445 to 192.168.0.3)

Leave a Reply