...
9. echo "nameserver X.X.X.X" | sudo tee /etc/resolv.conf (Create resolv.conf and append the line.)
10. echo "nameserver X.X.X.X" | sudo tee -a /etc/resolv.conf (Append the line in resolv.conf)
...
12. sudo chattr +i /etc/resolv.conf
13. And finally in windows powershell with Administrative rights:
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 6000
References
Reference | URL |
---|---|
Fix DNS resolution in WSL2 | https://gist.github.com/coltenkrauter/608cfe02319ce60facd76373249b8ca6 |