Created
July 16, 2025 17:05
-
-
Save tojo17/689e10eb4a163a9c7d13b14d8b90025b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| powershell.exe -c "Get-DnsClientServerAddress -AddressFamily IPv4|Select -ExpandProperty ServerAddresses" | tr -d '\r' | sed 's/^/nameserver /' | sudo tee /etc/resolv.conf >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment