Using herror() to print errors when looking up hosts