Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: DNS resolution #20

Open
s-seidel opened this issue Jan 20, 2022 · 5 comments
Open

Feature request: DNS resolution #20

s-seidel opened this issue Jan 20, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@s-seidel
Copy link

Would it be possible to add a DNS resolver to wsld? I imagine that one could then set /etc/resolv.conf to 127.0.0.1 and wsldhost.exe would perform the DNS lookup on the Windows host. That would solve a lot of issues with the current state of it, for example that the Windows Firewall blocks the WSL interface by default.

@nbdd0121 nbdd0121 added enhancement New feature or request help wanted Extra attention is needed labels Jan 20, 2022
@nbdd0121
Copy link
Owner

What's the issue with DNS lookup in WSL? I haven't observed any weird with it.

@s-seidel
Copy link
Author

microsoft/WSL#4285
There are workarounds, but for example my employer forces a firewall that doesn't allow exceptions for the WSL network interface, so most of those workarounds don't work for me.

@nbdd0121
Copy link
Owner

Wouldn't setting the DNS server in WSL to the same server used by Windows work?

@s-seidel
Copy link
Author

Well, but that changes depending on which network the host is connected to and also doesn't work with VPN and split DNS for example.

@slonopotamus
Copy link

also doesn't work with VPN

No it does. I have WSL2 DNS happily working together with OpenVPN connection. And you even can access VPN resources from WSL2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants