I wonder, is it possible to setup Encrypted DNS automatically?
I can setup DNS servers just fine, but they are always Unencrypted.
Code:
reg add "HKLM\System\CurrentControlSet\Services\Dnscache\Parameters" /v "EnableAutoDoh" /t REG_DWORD /d "2" /f
netsh dns add encryption server=185.228.168.10 dohtemplate=https://doh.cleanbrowsing.org/doh/adult-filter autoupgrade=yes udpfallback=no
netsh dns add encryption server=185.228.169.11 dohtemplate=https://doh.cleanbrowsing.org/doh/adult-filter autoupgrade=yes udpfallback=no
wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("185.228.168.10","185.228.169.11")
This entry has to be created manually via Settings, I guess interface name changes after every install?
Code:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\{5db3e81b-9b64-4972-8860-c1c9a19f6e79}\DohInterfaceSettings\Doh\185.228.168.10" /v "DohFlags" /t REG_QWORD /d "1" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\{5db3e81b-9b64-4972-8860-c1c9a19f6e79}\DohInterfaceSettings\Doh\185.228.169.11" /v "DohFlags" /t REG_QWORD /d "1" /f