philsmicronet
asked on
Retreiving the Hostname from an IP Address
I am writing a log file analyser and I want to resolve the IP address into a Hostname. How do I do this?
I will be using Visual C.
I will be using Visual C.
Use the WINSOCK gethostbyaddr() or the asynchronous version WSAAsyncGetHostByAddr().
ASKER
If I have a dotted ip address (say 192.168.40.10) how to I use the gethostbyaddr function. MSDN is not very specific on how to do this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much. MSDN is not very specific about this stuff