Skip to content

Instantly share code, notes, and snippets.

@zozovo
Last active October 4, 2022 21:03
Show Gist options
  • Save zozovo/b9953dbec96aaff89d7bccf6646b7474 to your computer and use it in GitHub Desktop.
Save zozovo/b9953dbec96aaff89d7bccf6646b7474 to your computer and use it in GitHub Desktop.
add DNS over HTTPS support for alidns and dnspod
netsh dns add encryption server=223.5.5.5 dohtemplate=https://223.5.5.5/dns-query
netsh dns add encryption server=223.6.6.6 dohtemplate=https://223.6.6.6/dns-query
netsh dns add encryption server=1.12.12.12 dohtemplate=https://1.12.12.12/dns-query
netsh dns add encryption server=120.53.53.53 dohtemplate=https://120.53.53.53/dns-query
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\223.5.5.5]
"Template"="https://dns.alidns.com/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\223.6.6.6]
"Template"="https://dns.alidns.com/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\2400:3200::1]
"Template"="https://dns.alidns.com/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\2400:3200:baba::1
"Template"="https://dns.alidns.com/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\1.12.12.12]
"Template"="https://doh.pub/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers\120.53.53.53]
"Template"="https://doh.pub/dns-query"
"Flags"=hex(b):00,00,00,00,00,00,00,00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment