Fixed handeling of no DNS resolution