Remove ping test (bnc#901744)

Some environments do not allow to send pings. The real point of the
code was to check if DNS resolution is working. So just do a DNS
test.