When you ping a domain, the application will look up your default gateway server to get the ip address for sending ICMP ping packets. The application will try to send the packet according to that returned ip address. If your gateway has problems or you are blocked by your gateway, this ip address may not be correct.