Skip to content

Instantly share code, notes, and snippets.

@Lushiane
Lushiane / wsl-vpn-fix.sh
Created September 20, 2021 20:58 — forked from MatMercer/wsl-vpn-fix.sh
Fix WSL 2 DNS resolution when connected to Cisco AnyConnect VPN
#!/bin/bash
#--------------------------------------------------------------------------------#
# #
# Fix WSL DNS resolution with Cisco AnyConnect #
# #
# ! Don't forget to set this configuration in /etc/wsl.conf: #
# [network] #
# generateResolvConf = false #
# #
# Based on: #