-
Notifications
You must be signed in to change notification settings - Fork 816
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
WSL 2 DNS resolver is completely confused, reports addresses of zone nameservers, not just addresses of destination host #6051
Comments
I tried this step…
… from the documentation, but it just brought me back to the beginning to report another feedback. Sorry, no idea how to get the link. |
Duplicate of #5806 and probably few others. I also have this problem, and on my case it's caused by VPN client being active on the host. Happens both with PaloAlto GlobalProtect and Pulse Secure clients. The issue is visible in all Hyper-V clients, including Windows Sandbox, so not limited to WSL2. Whenever VPN is active, Hyper-V DNS returns all NS records mixed with A records. The only workaround is to use external nameserver addresses directly, which obviously causes some headache both in WSL2 and windows sandbox. |
I don’t even have any VPN running… the physical box is just a laptop on a company LAN (which I access over RDP due to WFH). |
Oooooh, fucking autoclose bots… way NOT to deal with your users! |
Environment
Steps to reproduce
I’m trying to use the built-in DNS resolver to connect to all (ip,port) tuples of a destination host/port. I’ve built a reduced example that just prints them and then exits:
After compiling this, on a normal GNU/Linux system (ignore the port, just use 1 for this purpose) I get:
On WSL 1, I get the same output, for what it’s worth.
On WSL 2, I get spammed with:
These are completely wrong; for example
193.99.145.37
is one of the nameservers forheise.de.
and not one of the A and AAAA RRs for the hostnamewww.heise.de
.Using external nameservers fixes this…
… so this is clearly an issue in the WSL-provided nameservers.
WSL logs:
These are apparently uploaded separately.
Expected behavior
The nameserver gives the results it is asked for.
Actual behavior
The nameserver also lists completely unrelated results, such as the zone’s NS records’ addresses.
The text was updated successfully, but these errors were encountered: