-
Notifications
You must be signed in to change notification settings - Fork 855
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
DNS answers back with dns as A records as well. #4839
Comments
Indeed, I stumbled upon the same problem when trying to connect to a machine which was not available so my SSH decided to use the next IP in the answer. As a workaround, I am pointing my WSL guests to the appropriate resolvers and bypassing the WSL host. The issue is very easy to reproduce with any public hostname. From inside WSL I did the same query against 172.31.16.1 (the WSL bridge), and against 10.136.80.82 which is the DNS resolver which the Windows host is using. For what it's worth, this is WSL2.
dig against WSL host:
Compare the above with the output from our internal DNS resolver, which gives the NS record A addresses in the additional section.
|
I'm seeing this issue as well, for nameservers on our companies' intranet when working remotely on VPN (which will be the case for the foreseeable future). I'm redacting slightly for intranet privacy reasons, but functionally it's the same:
where 172.30.80.1 is the WSL DNS server. As a side note, the DNS search suffixes configured by our VPN on Windows also are ignored by WSL DNS server; I'm sure there's an issue for that elsewhere. |
This issue still exists on 10.0.19041.508, and is most likely the reason for all DNS related problems other issue tickets mention about. Often, other people just complain that ping/apt/something else doesn't connect, which they can't, because those NS servers don't have the services running that you try to reach. |
This looks like #5806 |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Your Windows build number:
Microsoft Windows [Version 10.0.19541.1000]
What you're doing and what's happening:
nslookup docker-01.ky1.home
What's wrong / what should be happening instead:
I have a local bind dns for facilitating a local to my network domain name ky1.home.
When running the command on WSL2 ubuntu and debian i get:
dig response for the same address
As you can see the nameservers are being answered back by the wsl nameserver.
When i run the same command in the standard windows CMD it comes back clean.
On another server on my network running debian i get
Normally this wouldn't be much of an issue except when i try to access a server for something and that server is down i end up getting pointed to my nameserver instead of failing which is fairly annoying.
The text was updated successfully, but these errors were encountered: