Changed to gethostbyname()