Skip to content

Instantly share code, notes, and snippets.

@jordanfarrer
Created July 9, 2015 17:25
Show Gist options
  • Save jordanfarrer/6770ae4308b863249a3c to your computer and use it in GitHub Desktop.
Save jordanfarrer/6770ae4308b863249a3c to your computer and use it in GitHub Desktop.
PowerShell Set/Reset DNS
# 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