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

DNS Resolution not working on Windows build 22533.1001 #7938

Closed
1 of 2 tasks
dorinlazar opened this issue Jan 16, 2022 · 9 comments
Closed
1 of 2 tasks

DNS Resolution not working on Windows build 22533.1001 #7938

dorinlazar opened this issue Jan 16, 2022 · 9 comments

Comments

@dorinlazar
Copy link

Version

Microsoft Windows [Version 10.0.22533.1001]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.10.74.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Mon Oct 18 19:27:44 UTC 2021

Distro Version

Fedora Release 35

Other Software

No response

Repro Steps

do anything needing hostname resolution.

`Errors during downloading metadata for repository 'copr:copr.fedorainfracloud.org:wslutilities:wslu':

Expected Behavior

Actually do hostname resolution

Actual Behavior

After a timeout, an error - couldn't resolve. Commands ran as root or as normal user.

Diagnostic Logs

No response

@dorinlazar
Copy link
Author

the issue appeared after the Windows update to version 10.0.22533.1001.

@stijnherreman
Copy link

stijnherreman commented Jan 18, 2022

Same problem here but still on build 22523. First noticed the issue yesterday when I couldn't rebuild a devcontainer in VS Code, but all lookups appear to fail.

$ sudo apt update
Err:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 https://download.docker.com/linux/ubuntu hirsute InRelease
  Temporary failure resolving 'download.docker.com'

Update: a reboot did not fix it, but installing build 22533 did.

@dorinlazar
Copy link
Author

Update: a reboot did not fix it, but installing build 22533 did.

For me this happened on the first reboot after installing 22533 - but a reboot later it was fixed. I'm waiting for a comment from the devs, I also sent a full set of logs to the support team, maybe they can identify the issue.

@stijnherreman
Copy link

stijnherreman commented Jan 29, 2022

The issue came back with build 22543 and it persists even after multiple reboots. The network adapter seems to be broken or missing. ipconfig lists an entry with Ethernet adapter vEthernet (WSL) but Get-NetAdapter doesn't list it.

@haggen
Copy link

haggen commented Mar 23, 2022

I started having this issue today out of nowhere. No updates or changes since yesterday when it was working alright. Build 22000.588.

➜ ping google.com
ping: google.com: Temporary failure in name resolution

@stijnherreman
Copy link

stijnherreman commented Apr 5, 2022

I've finally pinned down the cause for my issue. It's Windows Defender Firewall, as mentioned in #4285, #5256, #4139 and others. Disabling the firewall or adding a (temporarily working) rule with New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow lets DNS resolution work again.
I'm also seeing the many DNS rules just like the commenter at #4285 (comment) which may be related to the problem.

Edit: I've created #8236 with steps to reliably fix and reproduce my specific issue.

@jkrukoff
Copy link

jkrukoff commented Apr 20, 2022

After a slow ring update to 22598.1 I started seeing this issue with DNS resolution in my WSL 2 environment. The above firewall rule addition allowed DNS to function again.

Other windows networking resets and fixes as mentioned in these threads did not help.

I'm not seeing any incoming DNS firewall rules being created, unlike above poster and linked comment.

I do have Hyper-V and Docker Desktop installed and running.

@OneBlue
Copy link
Collaborator

OneBlue commented May 3, 2022

/dupe #8365

@ghost
Copy link

ghost commented May 3, 2022

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost closed this as completed May 3, 2022
@ghost ghost added the duplicate label May 3, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants