[ad_1]
Bonjour,
I looked from the web et got lots of solutions but none of them work.
On Windows 11, I use Ubuntu 22.04 (WSL 2). I moved it on another drive. I also use Docker desktop and Devilbox (I can’t use xdebug with VSC for the moment but is another question).
My problem is when WSL restart (or probably after a time too), the Windows hosts file is overwrite.
The solution I have found is to add the following entry to /etc/wsl.conf:
[network]
generateHosts = true
generateResolvConf = true
I tried with and without generateResolvConf. But it doesn’t work. How I can keep the windows hosts file ?
[ad_2]