Fix DNS settings, and added non-zero timeout