[C#] Get a domain name basing on the IP address
- by Tony
hi, I need to get a domain name if I have an IP address (e.g. I type 209.85.129.103 and the program should find out that is the Google address)
As far as I've figured out is get the hostname:
IPHostEntry IpToDomainName = Dns.GetHostEntry("209.85.129.103");
string HostName = IpToDomainName.HostName; //it returns "fk-in-f103.1e100.net"
but it's not that I want.
I don't know how to achieve that. Any ideas will be helpful