I have a questions about resolving an IP into its domain name and vice versa. For example,
I am familiar with a solution for the example above. However, there are some IP that I cannot get the domain names. For example and this is something I am making up.
When I try to resolve 188.8.131.52 using the solution I currently use, the winsock API function returns 184.108.40.206 instead of CORENT_WIN2k. The only program I know that returns the corrent domain name is mIRC (a chat program).
I use getaddrinfo() and getnameinfo(). Again, the solution works well except for some weird IP addresses similar to the one I made up.
I would like to know is there a parameter somewhere for getaddrinfo() and/or getnameinfo() that will solve the solution example? Or maybe is there another technique?