Another alternative to change a DNS is using the PowerShell terminal. This method is aimed more at experienced users. With just one command, you can configure DNS without having to do many clicks through Windows menus.
To do this, open PowerShell as an administrator, enter "PowerShell" in the browser and right-click to select the option "Windows PowerShell" and then "Run as administrator."
Next, you will need to determine the name (Alias) of the adapter (for example: the network card) through which you are connected to the Internet. To do this, enter the following command in PowerShell:
Get-NetAdapter | select ifDesc, ifAlias, ifIndex, MediaType | fl
Change DNS server address
Finally, the address of an alternative DNS server is entered
In the example, the name of the adapter used is “ Ethernet ”. If the equipment is connected to the Internet with a network cable, as in this example, the following command must be entered:
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses "220.127.116.11", "18.104.22.168"
In the "Ethernet" field you must use the name of the corresponding interface.
In case the computer is connected via a wireless connection (Wi-Fi), the following command will be entered:
Set-DnsClientServerAddress -InterfaceAlias Wi-Fi -ServerAddresses "22.214.171.124", "126.96.36.199"
Here, too, “Wi-Fi” should be replaced by the name of the adapter used. 188.8.131.52 and 184.108.40.206 are the public addresses of Google's DNS server. In case another type of DNS server is used, the corresponding fields must be replaced.
Know more: computer science vs computer engineering