# AdBlock DoH - Windows 11 # 以管理员运行 PowerShell netsh dns add encryption server=94.140.14.14 dohtemplate=https://dns.liubei.org/dns-query autoupgrade=yes udpfallback=no netsh dns add encryption server=94.140.15.15 dohtemplate=https://dns.liubei.org/dns-query autoupgrade=yes udpfallback=no $a=Get-NetAdapter|?{$_.Status -eq 'Up'}|Select -First 1 if($a){Set-DnsClientServerAddress -InterfaceIndex $a.ifIndex -ServerAddresses ('94.140.14.14','94.140.15.15');Write-Host "Done: $($a.Name)" -ForegroundColor Green} Write-Host "DoH: https://dns.liubei.org/dns-query"