Resolves the hostname for the IP address indicated by the `addr'
This returns TRUE and the resolved hostname to the `name' buffer,
or FALSE on error. The `addr' may be either IPv4 or IPv6 address.
This is synchronous function and will block the calling process.