Question: can nslookup but not ping?
Answer: If nslookup works but ping fails, it's possible that the hosts file was edited by a malware or another application, and that can cause this and similar problems to appear. To fix the problem, it's advised to check your hosts file and make sure that everything is in order.