-
Notifications
You must be signed in to change notification settings - Fork 846
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
WSL2 does not boot with localy installed DNS server #10889
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
I experience the same issue on Windows Pro build 22631.2861 & WSL2. I'm using Acrylic DNS Proxy and WSL distro fails to start with the same error. Stopping the service allows the distro to start, then starting the service afterwards doesn't interfere with WSL. |
Here's the logs: |
Here's the root cause:
@keith-horton: Is a known issue ? |
Sorry, that's not the root cause. The original source of the failure is this: 2064 03912.03244 2024-01-06T10:38:28.920 [Microsoft-Windows-Host-Network-Service] 'IpICSHlpStartDnsServer' : '0xFFFFFFFF'. @oakrc , can you please see if the shared access service is running. From the traces we have, it looks like attempts to RPC to that service are failing. sc query sharedaccess We'll need network logs to hopefully pinpoint what failed. https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1 Thanks! |
I had the same issue with Win 11 Pro 22000.2538 and Technitium DNS Server. |
Same problem for me with Technitium also. PS C:\Users\john> sc query sharedaccess SERVICE_NAME: sharedaccess |
This looks to be failing because SharedAccess is trying to bind to 0.0.0.0:53, but something is already bound to that port. If Technitium runs a DNS Server, then that would prevent WSL to start in this mode. If you are on Windows 11, you can use dnsTunneling instead (which is actually more reliable). |
I'm not 100% certain what DNS tunnelling will do for me off-hand. I see a few posts about it being added last year, and now being enabled by default, but I didn't find a clear explanation of how it works or how to make use of it. Do you have a link handy? My use case for Technitium is to define wildcard subdomains that all route to my WSL instance that is running my development web server. Can DNS tunnelling step in and address that? In any case, I did find after my earlier post above that switching Technitium to bind to 127.0.0.1:53 instead of 0.0.0.0:53 solved the start up issue for me, which is consistent with your summation above. |
DNS Tunneling helps in a couple of ways.
Your solution also works - binding to a more precise address than 0.0.0.0 should effectively allow both to coexist. |
Would I be able to set up that wildcard A record as described with DNS tunnelling? Although Technitium is fine at the moment, I would be happy to remove it from my toolchest if I can achieve the same without it. |
Windows Version
Windows 11 Enterprise 10.0.22621
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04.3 LTS
Other Software
technitium dns
Repro Steps
I have installed technitium dns as windows service.
When I boot my host and try start WSL2 then the I hot the error:
When I turn off the DNS service start WSL2 and start the DNS server then everything is running fine. Even if I do shutdown wsl with
wsl --shutdown
Expected Behavior
WSL2 starts
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: