public marks

PUBLIC MARKS from ghis with tags windows & vpn

13 February 2021 18:00

12 February 2021 15:00

Troubleshooting the Windows Subsystem for Linux | Microsoft Docs

(via)
If after connecting to a VPN on Windows, bash loses network connectivity, try this workaround from within bash. This workaround will allow you to manually override the DNS resolution through /etc/resolv.conf. Take a note of the DNS server of the VPN from doing ipconfig.exe /all Make a copy of the existing resolv.conf sudo cp /etc/resolv.conf /etc/resolv.conf.new Unlink the current resolv.conf sudo unlink /etc/resolv.conf sudo mv /etc/resolv.conf.new /etc/resolv.conf Open /etc/resolv.conf and a. Delete the first line from the file, which says "# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line.". b. Add the DNS entry from (1) above as the very first entry in the list of DNS servers. c. Close the file. Once you have disconnected the VPN, you will have to revert the changes to /etc/resolv.conf. To do this, do: cd /etc sudo mv resolv.conf resolv.conf.new sudo ln -s ../run/resolvconf/resolv.conf resolv.conf

ghis's TAGS related to tag windows

backup +   cloud +   command-line +   comparison +   compression +   cron +   data +   desktop +   dock +   docker +   drivers +   dual boot +   geek +   image +   kernel +   languages +   lifehack +   linux +   live distrib +   nvidia +   optimisation +   organization +   password +   photography +   photos +   retouche +   security +   software +   taskbar +   tips +   tool +   tools +   ubuntu +   ui +   usb +   virtualization +   vpn +   wsl +