Created
October 13, 2021 17:39
-
-
Save zhiyuan-lin/d2b883d67d4d72644d475b012bed9bd4 to your computer and use it in GitHub Desktop.
Add AdGuard DNS as DNS-over-HTTPS Resolver for Windows 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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