exit with status 2 in case of DNS failure, like ping and fping