[Ilugc] one host IP resolvable to two different hostname

  • From: smal at ccmb.res.in (smal@xxxxxxxxxxx)
  • Date: Fri, 21 Oct 2011 19:34:38 +0530 (IST)

Hi

How to configure Apache 2.2.x to resolve a IP address for multiple hostnames on 
both LAN & WAN? Is it feasible?

(e.g.) Parent domain name: "peter.alex.com" using both LAN & WAN (192.168.1.2, 
127.242.116.226) ---usual scenario.

With child domain name it is supposed to be resolvable to "xavier.alex.com 
using LAN IP of 192.168.1.3 whereas on WAN it should be resolvable to two same 
host name of peter.alex.com and xavier.alex.com using same WAN IP of 
127.242.116.226.

In a nutshell...as follows,

192.168.1.2  TO peter.alex.com
192.168.1.3  TO xavier.alex.com

127.242.116.226 TO both peter.alex.com & xavier.alex.com

If it is achievable, kindly share your valuable thoughts with me.

with regards
s.mahalingam

Other related posts: