-
wsl2 에서 curl, wget 실행시 unable to resolve host address 문제dev/etc 2020. 10. 13. 10:19
github.com/microsoft/WSL/issues/5256#issuecomment-666545999
WSL2 DNS issues · Issue #5256 · microsoft/WSL
Your Windows build number: Microsoft Windows [Version 10.0.19041.264] (desktop) Microsoft Windows [Version 10.0.19041.264] (laptop) What you're doing and what's happening: on wsl2 on my des...
github.com
1. /etc/wsl.conf 생성
2. wsl.conf 내용 입력
[network]
generateResolvConf=false
3. shell 종료
4. shell 접속
5. sudo rm /etc/resolv.conf 로 심볼링크 삭제
6. /etc/resolv.conf 생성
7. resolv.conf 내용 입력
namespace 8.8.8.8
8. wsl --shutdown 으로 종료
9. shell 접속
10. 완료