Check your browser once to confirm whether you are able to access the google.com from browser.
Please make sure your resolv.conf contains the following:
Hope this helps.
I am not able to access the google.com even in the browser after updating theh eth0 file. Also I have checked the /etc/resolv.conf file and updated what you gave, still not working.
Abhijit, I see that the issue is resolved. Thank you so much.