[Ilugc] one host IP resolvable to two different hostname
- From: 0@xxxxxxxxxxx (0)
- Date: Sat, 22 Oct 2011 16:30:32 +0530
How to configure Apache 2.2.x to resolve a IP address for multiple hostnames
on both LAN& WAN? Is it feasible?
I am not sure whether I understand your question correctly. Why do you
need apache to resolve the hostname ? Do you need the DNS resolution as
a part of a server side script or something similar ?
(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
Also, 127.242.116.226 is a loopback address (127.0.0.0/8), I am not
quite sure what you are trying to achieve.
$ traceroute 127.242.116.226
traceroute to 127.242.116.226 (127.242.116.226), 30 hops max, 60 byte
packets
1 127.242.116.226 (127.242.116.226) 0.475 ms 0.027 ms 0.026 ms
It will help if you can give more details and if you are not aware of
the special addresses, you can find here on wiki,
http://en.wikipedia.org/wiki/IPv4#Special-use_addresses
--
0
Other related posts: