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

generateResolvConf creates nameserver with IPv6 and DNS resolution doesn't work #10810

Closed
1 of 2 tasks
sommella opened this issue Nov 22, 2023 · 11 comments
Closed
1 of 2 tasks
Labels

Comments

@sommella
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.2715]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

4.4.0-22621-Microsoft

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

I have generateResolvConf = true in /etc/wsl.conf
and /etc/resolve.conf is generate like this:
nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
nameserver fec0:0:0:ffff::3
search lan

Expected Behavior

If manually edited, following configuration works:
nameserver 192.168.2.1
search lan

Actual Behavior

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

Diagnostic Logs

No response

@devicelocksmith
Copy link

Also impacted by this

@chanpreetdhanjal
Copy link

Could you please follow the steps below and attach the diagnostic logs? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@sommella
Copy link
Author

sommella commented Dec 7, 2023

WslLogs-2023-12-06_19-32-18.zip

As requested. I have done a ping and a nslookup from WSL, while collecting.

@chanpreetdhanjal
Copy link

Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

It should create a folder like [WslNetworkingLogs-date_ver.zip]

@sommella
Copy link
Author

sommella commented Dec 8, 2023

Hi,
Network logs collected but the file is 123MB and github is not allowing me to attach it.
What should I do?
ty

@chanpreetdhanjal
Copy link

Can you please try it again? I had other customers successfully attach networking logs to github.

@sommella
Copy link
Author

WslNetworkingLogs-2023-12-12_09-25-50.zip

Done a new capture with less app open (to reduce the size of the dump)
Here is it

Tnx

@achojak
Copy link

achojak commented Feb 27, 2024

I have upgraded WSL today and experiencing the same issue

WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.3155

The only workaround I could find for this problem was disabling IPv6 on each of my network adapters.
You might need to reboot your PC after changing these settings.

disable-ipv6

@CatalinFetoiu
Copy link
Collaborator

hello. sorry for the delay following up on this.

I recommend turning on dnsTunneling

If you still encounter DNS issues after doing this, please collect a new set of networking logs

thanks

@Msprg
Copy link

Msprg commented Oct 21, 2024

Hello, I have the same issue and wasn't able to solve it by enabling or disabling the DNS tunneling. Have any of you managed to find a better solution than to turn off ipv6 on all NICs in the system? Should I open a new issue?

@CatalinFetoiu
Copy link
Collaborator

@Msprg please open a separate issue. thanks

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

No branches or pull requests

7 participants