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.