Linux Web Server Cannot Ping Localhost or Anything on the Internet

My ubuntu 12.04 server was working fine a few days ago. I didn't change any server configurations, but today all of a sudden I can't ping anything. What could be the potential issue here? I can't even ping 127.0.0.1

Below are my ifconfig stats:

What else would one look for in this scenario?

1

1 Answer

Look's like DNS problem. In your screen show there is output from ping command trying to ping google.com and it says: unknown host as it cannot resolve the domain name google.com to ip in order to ping it. Can you please check the contents of the following file: /etc/resolv.conf. Just type in the console: cat /etc/resolv.conf It should output something like: nameserver X.X.X.X

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest