Using combination of nslookup and ping