Skip to content

Instantly share code, notes, and snippets.

@zhiyuan-lin
Created October 13, 2021 17:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhiyuan-lin/d2b883d67d4d72644d475b012bed9bd4 to your computer and use it in GitHub Desktop.
Save zhiyuan-lin/d2b883d67d4d72644d475b012bed9bd4 to your computer and use it in GitHub Desktop.
Add AdGuard DNS as DNS-over-HTTPS Resolver for Windows 11
# You need to run these in a Admin PowerShell under Windows 11
Add-DnsClientDohServerAddress -ServerAddress '94.140.14.14' -DohTemplate 'https://dns.adguard.com/dns-query' -AllowFallbackToUdp $False -AutoUpgrade $True
Add-DnsClientDohServerAddress -ServerAddress '94.140.15.15' -DohTemplate 'https://dns.adguard.com/dns-query' -AllowFallbackToUdp $False -AutoUpgrade $True
Add-DnsClientDohServerAddress -ServerAddress '2a10:50c0::ad1:ff' -DohTemplate 'https://dns.adguard.com/dns-query' -AllowFallbackToUdp $False -AutoUpgrade $True
Add-DnsClientDohServerAddress -ServerAddress '2a10:50c0::ad2:ff' -DohTemplate 'https://dns.adguard.com/dns-query' -AllowFallbackToUdp $False -AutoUpgrade $True
# Confirm that the records have been added
Get-DnsClientDohServerAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment