This question already has an answer here:
I'm trying to rescue my Ubuntu 16.10 server installation, since I have accidentally removed the kernel...
Now that I've booted to a usb, and run a shell with the mounted file-systems, DNS does not seem to want to work,
ping google.com returns "unknown host"
and if I ping 192.168.1.1 (gateway) it works fine, and if I ping 188.8.131.52 it also works fine, however I cannot do much without DNS.
There is an image of the errors.
So, my question is: how can I restore my DNS so I can ultamately restore my server?