So I got a pi 3.0 and it has been running a apache webserver with php just fine. I have not logged into it in a while. Today, however, I was planning to install openvpn which failed to install. So I figured let me just update it with apt-get update but it returned errors:
root@raspberrypi:/home/pi# apt-get update Err http://mirrordirector.raspbian.org jessie InRelease Err http://archive.raspberrypi.org jessie InRelease Err http://mirrordirector.raspbian.org jessie Release.gpg Could not resolve 'mirrordirector.raspbian.org' Err http://archive.raspberrypi.org jessie Release.gpg Could not resolve 'archive.raspberrypi.org' Reading package lists... Done W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg Could not resolve 'mirrordirector.raspbian.org' W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/Release.gpg Could not resolve 'archive.raspberrypi.org' W: Some index files failed to download. They have been ignored, or old ones used instead.
I am connected via ssh from a remote location and the webserver is still running.
P.S. when I ping google.com or any website it cannot resolve host name.