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
Close WSL terminal and run wsl --shutdown to restart the WSL instance. Open a new WSL terminal.
step 3:
ls /etc confirm folder, no /etc/resolv.conf file. sudo nano /etc/resolv.conf set up company nameserver.
step 4:
re-step 2, if WSL instance restart, /etc/resolv.conf always is deleted. We must set up a new /etc/resolv.conf for every restart WSL instance.
Expected Behavior
[network]
generateResolvConf = false
My understanding is to turn off the auto-generating function, But he seems to have deleted the ResolvConf function. I need persistence to be set in the /etc/resolv.conf file.
Actual Behavior
Every restart WSL instance, always deleted /etc/resolv.conf.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Version
Microsoft Windows [Version 10.0.22000.978]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
None.
Repro Steps
I want to set up the company
nameserver
to/etc/resolv.conf
.step 1:
Ref doc https://learn.microsoft.com/en-us/windows/wsl/wsl-config add
/etc/wsl.conf
and config:step 2:
Close WSL terminal and run
wsl --shutdown
to restart the WSL instance. Open a new WSL terminal.step 3:
ls /etc
confirm folder, no/etc/resolv.conf
file.sudo nano /etc/resolv.conf
set up companynameserver
.step 4:
re-step 2, if WSL instance restart,
/etc/resolv.conf
always is deleted. We must set up a new/etc/resolv.conf
for every restart WSL instance.Expected Behavior
My understanding is to turn off the auto-generating function, But he seems to have deleted the ResolvConf function. I need persistence to be set in the
/etc/resolv.conf
file.Actual Behavior
Every restart WSL instance, always deleted
/etc/resolv.conf
.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: