I have connected my desktop computer (running Ubuntu 16.04) to my Raspberry Pi through a router (ethernet connection). My computer can access internet with USB tethering from my phone. I can SSH to the Raspberry Pi, but it cannot connect to internet.
ping google.com says ping: google.com: Temporary failure in name resolution
sudo apt update says Temporary failure resolving 'raspbian.raspberrypi.org'.
How to forward my computer's internet connection to Raspberry Pi?
The router is only connected to the desktop and the Raspberry Pi.
Update:
I directly connected the Raspberry Pi to my computer through ethernet, and connected a monitor to the Pi. Then I ran ifconfig in the Pi to get its IP address (it was 10.42.0.38, maybe this is the default?)
Then I sshed to the RPi from my desktop, and now it is connected to the internet. However, this does not solve the issue when RPi is connected to a router and there is no way to connect a display.