Internet page not loading, ping not working but host www.example.com return an IP
Ok. I fixed it.

A bit of more details first.

dig / nslookup / host commands were working. So I actually had access to internet.

The problem was ping and all Browser using the System resolver that was not working.

I unload then reloaded the /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist with the -w option. And it worked.

Hope it can help,