[SOLVED] ping 8.8.8.8 works but failed to ping http://www.google.com/

  1. Need to add a nameserver in /etc/resolv.conf file by running this to modify:

run vi /etc/resolv.conf

2. add this line to the file :

nameserver 8.8.8.8

3. Run this to verify:

ping -c10 www.google.com