When I start the first WSL terminal (ubuntu 20.04 bash in my case), WSL generates the
/etc/hosts file based on the host file of my windows system
If I now change the
%WINDIR%\System32\drivers\etc\hosts, e.g. add some entries, the
/etc/hosts in my WSL is not updated. Even if I close all WSL terminals and open a new one. Only reboot of my windows system helps.
Is there a way I can manually trigger the update of the
/etc/hosts so that I do not have to reboot?