You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WSL resolv.conf issues with tailscale status change #3690
Disconnecting/Reconnecting to tailscale crashes WSL Ubuntu and deletes resolv.conf
Steps to reproduce
New install of wsl ubuntu 20.04.
jay@Nautilus:~$ 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.17.32.1
On the Windows system: Disconnect/Reconnect to tailscale.
jay@Nautilus:~$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
jay@Nautilus:~$ sudo touch /etc/resolv.conf
jay@Nautilus:~$
On the Windows system: Disconnect/Reconnect to tailscale.
jay@Nautilus:~$ cat /etc/resolv.conf
# resolv.conf(5) file generated by tailscale
# DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN
nameserver 100.100.100.100
search corp.ts.net tailscale.com.beta.tailscale.net ts.tailscale.com ts-dns.test
After rebooting, resolv.conf disappears again, and must be manually created or touched before tailscale will set nameservers.
Are there any recent changes that introduced the issue?
These symptoms might also have been masked because of #3437 -- once that was fixed, it probably opened the floodgates with respect of triggering the code in question.
a14d445 means that resolv.conf will only be written if a TS_DEBUG_CONFIGURE_WSL environment variable exists. I'm going to close this issue as resolved.
Activity
JayWStapleton commentedon Jan 10, 2022
Behaviour is also observed in 1.18.2
1.16.2 does not have this bug.
crawshaw commentedon Jan 10, 2022
I suspect this was broken a while ago by some unrelated changes to this code, but we have no tests so never noticed. Maybe a320d70?
dblohm7 commentedon Jan 10, 2022
These symptoms might also have been masked because of #3437 -- once that was fixed, it probably opened the floodgates with respect of triggering the code in question.
voltagex commentedon Jan 11, 2022
As I mentioned in the other bug on this, I don't think Tailscale should be touching things it doesn't own - at least not without asking first.
DentonGentry commentedon Jan 22, 2022
a14d445 means that resolv.conf will only be written if a TS_DEBUG_CONFIGURE_WSL environment variable exists. I'm going to close this issue as resolved.