Created
July 9, 2015 17:25
-
-
Save jordanfarrer/6770ae4308b863249a3c to your computer and use it in GitHub Desktop.
PowerShell Set/Reset DNS
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
# This will give a list of interfaces (along with index) | |
Get-DnsClient | |
Set-DnsClientServerAddress -InterfaceIndex <Interface Index> -ServerAddresses ("<IP Address>", "<IP Address 2>") | |
Set-DnsClientServerAddress -InterfaceIndex <Interface Index> -ResetServerAddresses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment