handle case where hostname lookup fails.