[Ilugc] one host IP resolvable to two different hostname
- From: smal at ccmb.res.in (smal@xxxxxxxxxxx)
- Date: Sun, 23 Oct 2011 06:38:03 +0530 (IST)
----- Original Message -----
From: "0" <0@xxxxxxxxxxx>
To: "ILUG-C" <ilugc at ae.iitm.ac.in>
Sent: Saturday, October 22, 2011 4:30:32 PM
Subject: Re: [Ilugc] one host IP resolvable to two different hostname
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
Hi
I have taken 127.... as an example but I should have chosen some other number
other than 127.242..which is loopback address. However, the requiement is as
such it stands.
with thanks
s.mahalingam
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Other related posts: