add cache for gethosbyname