3.5 DNS over HTTPs

Terminology: DoH = DNS Over HTTPS

Introduction

Windows 10, Windows 11 (as well as Android, IOS, and MACOS) support DNS Over HTTPS. CS-DNS acts as a DOH server so an alternative to using the CS-DNS Agent is to use DoH directly.

MS Active Directory syadmins should not use this approach. Reference to Article

Setup in Microsoft Windows

Setup an “automatic template”

Run the following powershell script (as admin) and replace API_KEY_HERE with the appropriate key:

Add-DnsClientDohServerAddress 
    -ServerAddress '94.23.164.198' 
    -DohTemplate 'https://API_KEY_HERE.cs-dns.cybersift.online/dns-query' 
    -AllowFallbackToUdp $False -AutoUpgrade $True
    
Get-DNSClientDohServerAddress

Configure Windows DNS settings to use DoH

This is fairly straightforward and involves

  1. Opening the “Network and Internet” settings

  2. Edit DNS settings and set them to Manual

  3. Enter the IP 94.23.164.198

  4. The URL (complete with API key) that you used in the script above should appear automatically


tags:

  • DoH

  • DNS over HTTPs

  • Setup