2 Answers
- Newest
- Most votes
- Most comments
0
I think WSL uses a different DNS server than your operating system. It uses a docker network dns server.
Try and update your /etc/resolv.conf to the same name server as your windows machine and see if this resolves the issue
This should be a permanent fix https://dev.to/abhiweb/set-persist-google-dns-server-in-wsl2-notes-4364
Thank you Gary Mclean! Since I have AWS VPN connection, I updated the nameserver to the DNS server associated to the VPN, but it didn't work. The one associated with my wi-fi connection didn't work either. Any more suggestions?
Relevant content
- Accepted Answerasked 8 months ago
- asked 5 years ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
It’s exactly what my answer was.