Can't connect to internet from WSL 2?
updatedSeems to be pretty common, check below what worked for me, found it in this WSL GitHub issue comment
From cmd execute
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
From WSL execute
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "nameserver 8.8.4.4" >> /etc/resolv.conf'