An error message recieved within my VS Code WSL terminal when attempting to clone a new Git repository.
ssh: Could not resolve hostname github.com: Temporary failure in name resolution.
fatal: Could not read from remote repository.
A ping response brings back a name resolution error.
I needed to edit the /etc/resolv.conf file. I’m using Vim here.
sudo vim /etc/resolv.conf
Within vim, add 184.108.40.206 and 220.127.116.11 as nameserver addresses.
Now try ping github if successful the clone should work.
If unsuccessful look elsewhere 😉