Do not use gethostbyname in threaded resolver