Skip to content

Instantly share code, notes, and snippets.

@kasuken
Last active April 27, 2023 17:28
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kasuken/cfd04087e3070a7f8b6a986219d84d24 to your computer and use it in GitHub Desktop.
Set and Reset DNS Settings with PowerShell
A collection of my favorites DNS
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ResetServerAddresses
Set-DnsClientServerAddress -InterfaceAlias "Wi-fi" -ResetServerAddresses
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("1.1.1.1","1.0.0.1")
Set-DnsClientServerAddress -InterfaceAlias "Wi-fi" -ServerAddresses ("1.1.1.1","1.0.0.1")
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("8.8.8.8","8.8.4.4")
Set-DnsClientServerAddress -InterfaceAlias "Wi-fi" -ServerAddresses ("8.8.8.8","8.8.4.4")
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("208.67.222.222","208.67.220.220")
Set-DnsClientServerAddress -InterfaceAlias "Wi-fi" -ServerAddresses ("208.67.222.222","208.67.220.220")
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("9.9.9.9","149.112.112.112")
Set-DnsClientServerAddress -InterfaceAlias "Wi-fi" -ServerAddresses ("9.9.9.9","149.112.112.112")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment