Daily Weekly Monthly

Daily Shaarli

All links of one day in a single page.

August 27, 2021

How to Change DNS Server Using PowerShell? - Technoresult

Get-DnsClientServerAddress
Set-DNSClientServerAddress "Wi-Fi" --ServerAddresses ("1.1.1.1"," 8.8.8.8")
Set-DNSClientServerAddress "InterfaceAlias" --ServerAddresses ("preferred-DNS-address", "alternate-DNS-address")

Open Command Prompt and type ipconfig /flushdns.

This command will flush the DNS.

PowerTip: Use PowerShell to Set Primary and Secondary DNS Server Addresses | Scripting Blog

Set-DNSClientServerAddress --interfaceIndex 12 --ServerAddresses (“10.0.0.1”,”10.0.0.2”)