How to manually change the DNS setting in Windows 10, with CLI.
I created two small CMD-files, one for Google DNS, and one for a local DNS, and placed them on my Desktop.
The “reg add” line all on 1 line. Replace the Interfaces with your own.
Google DNS
@ECHO OFF
CLS
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1x0x0x6x-3×78-4×79-9x3x-87x8766xxx7x} /v NameServer /d “8.8.8.8 8.8.4.4” /f
IPCONFIG /ALL
PAUSE
Local DNS
@ECHO OFF
CLS
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1x0x0x6x-3×78-4×79-9x3b-87x8766xxx7x} /v NameServer /d “10.0.0.11 10.0.0.12” /f
IPCONFIG /ALL
PAUSE
You might need to reboot your computer.