diff --git a/src/utils/Individual-Tweaks.psm1 b/src/utils/Individual-Tweaks.psm1 index 7bdadec5..fb960791 100644 --- a/src/utils/Individual-Tweaks.psm1 +++ b/src/utils/Individual-Tweaks.psm1 @@ -158,10 +158,10 @@ function Disable-EncryptedDNS() { } function Enable-EncryptedDNS() { - # Adapted from: https://techcommunity.microsoft.com/t5/networking-blog/windows-insiders-gain-new-dns-over-https-controls/ba-p/2494644 - Write-Status -Types "+" -Status "Setting up the DNS over HTTPS for Google and Cloudflare (ipv4 and ipv6)..." - Set-DnsClientDohServerAddress -ServerAddress ("8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", "2001:4860:4860::8844") -AutoUpgrade $true -AllowFallbackToUdp $true - Set-DnsClientDohServerAddress -ServerAddress ("1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001") -AutoUpgrade $true -AllowFallbackToUdp $true + # Adapted from: https://learn.microsoft.com/en-us/windows-server/networking/dns/doh-client-support + Write-Status -Types "+" -Status "Setting up the DNS over HTTPS for Cloudflare and Google (ipv4 and ipv6)..." + Set-DnsClientDohServerAddress -ServerAddress ("1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001") -AllowFallbackToUdp $false -AutoUpgrade $false -DohTemplate "https://cloudflare-dns.com/dns-query" + Set-DnsClientDohServerAddress -ServerAddress ("8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", "2001:4860:4860::8844") -AllowFallbackToUdp $false -AutoUpgrade $false -DohTemplate "https://dns.google/dns-query" Write-Status -Types "+" -Status "Setting up the DNS from Cloudflare and Google (ipv4 and ipv6)..." #Get-DnsClientServerAddress # To look up the current config. # Cloudflare, Google, Cloudflare, Google