why GetHostByAddress gives me only computer name not actuall web hostname

  • Thread starter Thread starter Rushikesh Joshi
  • Start date Start date
R

Rushikesh Joshi

Hi Friends

I am having some query.

On a server two site hosted
1) magnamags.com
2) stardustindia.com

Now when I am resolving the IP address for this both sites. I am
getting 202.71.136.211 (using GetHostByName).

But now when I am trying to resolve the Host name(s) from IP
202.71.136.211 (using GetHostByAddress) I am getting
mail.magnamags.com

I know why this is happening, but how to solve it. I mean, how can I
get all Host Name from Any Web Hosting Server.

Thanks & Regards,
Rushikesh Joshi
 
Hi,

First you don't have A records in dns server for 202.71.136.211.

Probably you want do:

A record: 202.71.136.211 -> magnamags.com
A record: 202.71.136.211 -> stardustindia.com
MX record: 202.71.136.211 -> mail.magnamags.com

If you add these A records in dns server, then you can get magnamags.com and
stardustindia.com from specified IP.
 
Back
Top