Pengwin
Pengwin copied to clipboard
Provide better handling about WireGuard for Windows
Describe the bug If you enable WireGuard for Windows, your WSL can't correctly resolve dns without specifying it.
To Reproduce Steps to reproduce the behavior:
- Install WireGuard from https://www.wireguard.com/install/
- Connect to random working tunnel
- In wsl, try
nslookup google.comandnslookup google.com 8.8.8.8
Expected behavior Both works correctly.
Screenshots
Failed:
Success:

Additional context I know it can be solved (with steps I described below), but I think Pengwin can provide better compatibiliy about this.
Basic Troubleshooting Checklist
[x] I have searched Google for the error message. [x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled. [x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues. [x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues. [ ] I have reset Pengwin: Settings->Apps->Apps & features->Pengwin->Advanced Options->Reset. [ ] I have disabled and re-enabled WSL in Windows Features. [ ] I have run Windows 10 updates and restarted.
What other troubleshooting have you attempted?
It can be solved by disabling generateResolvConf in /etc/wsl.conf and other weird tweaks. As disabling it isn't enough, there are unknown problem about /etc/resolv.conf being symbolic link.
Pengwin Version
Find: Settings->Apps->Apps & features->Pengwin->Advanced Options->Version.
Insert here: 20.8.3.0
Windows Build
Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
OS Name: Microsoft Windows 10 ??? OS Version: 10.0.19041 N/A Build 19041 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free BIOS Version: American Megatrends Inc. 1607, 2019/6/17
For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number
Very interesting WSL1 or WSL2 ?
Thanks for reporting
WSL2