added testing of ip while DNS resolving