fixed bug: correctly handle case when never had any IP and DNS fails