handle cases where the hostname can't be resolved