simple gethostbyname proc