hi,
i want to get the hostname for the specified IP address.
# host www.google.com
www.google.com has address 173.194.69.104
www.google.com has address 173.194.69.105
www.google.com has address 173.194.69.106
www.google.com has address 173.194.69.147
www.google.com has address 173.194.69.99
www.google.com has address 173.194.69.103
# host 173.194.69.99
99.69.194.173.in-addr.arpa domain name pointer bk-in-f99.1e100.net.
Is there any way to get host name as "www.google.com" for the given IP address (173.194.69.99)?
"gethostbyaddr" function also returns same host name(bk-in-f99.1e100.net.) as above but i want "www.google.com" as the host name.
thanks in advance:)
Regards,
kavitha