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 stopped working after Windows 11 22H2 #8845

Closed
1 of 2 tasks
ceecko opened this issue Sep 22, 2022 · 4 comments
Closed
1 of 2 tasks

DNS resolution stopped working after Windows 11 22H2 #8845

ceecko opened this issue Sep 22, 2022 · 4 comments

Comments

@ceecko
Copy link

ceecko commented Sep 22, 2022

Version

Microsoft Windows [Version 10.0.22621.521]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1-microsoft-standard-WSL2

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

WSL cannot reach the defined nameserver after upgrade to Windows 11 22H2.
Ping to the nameserver does not work.

Expected Behavior

DNS resolution shall work.
It worked before upgrade to Windows 11 22H2.

Actual Behavior

$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.25.0.1
$ ping 172.25.0.1
PING 172.25.0.1 (172.25.0.1) 56(84) bytes of data.
^C
--- 172.25.0.1 ping statistics ---
12 packets transmitted, 0 received, 100% packet loss, time 11443ms

Diagnostic Logs

Networking works ok

$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=9.26 ms
^C
--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 9.256/9.256/9.256/0.000 ms
@Loccko
Copy link

Loccko commented Sep 22, 2022

Have the same problem after update, well done Ms.....
As an TEMPORARY solution:

  1. sudo nano /etc/resolv.conf
  2. Remove line out the nameserver nameserver 17...
  3. add this new line nameserver 8.8.8.8
  4. ctrl + o and ctrl + x to write a quit
  5. sudo nano /etc/wsl.conf
  6. Paste the following in:
[network]
generateResolvConf = false
  1. ctrl + o and ctrl + x to write a quit
  2. close WSL and reopen

Thanks to yebocal #5336 (comment)

@ceecko
Copy link
Author

ceecko commented Sep 26, 2022

This was an issue with ESET Internet Security.
Firewall started blocking the traffic.

You can reconfigure the firewall and DNS starts working again.

@ceecko ceecko closed this as completed Sep 26, 2022
@RiccardoManzan
Copy link

@ceecko , i have not ESET internet security, then i guess that is not the issue.
Anyway yeah i guess that some sort of windows firewall rule has been changed during 22h2 update which broke dns resolution for hyper-v machines and WSL.
Could you be more specific on what we should reconfigure on windows firewall in order to make the DNS reachable again?

@michal-kralik
Copy link

Not sure about your setup but I had to whitelist the subnet used by WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants