return ip address given host name --\n -- \(thanks to Beej's Guide to Network Programming, 2012\)