# 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. 


:::warning
MS Active Directory syadmins should not use this approach. [Reference to Article](https://outline.cybersift.io/s/cs-dns/doc/31-agent-usage-pPlpU9CCfX)

:::

# Setup in Microsoft Windows


:::tip
Looking to setup DoH using GPO? Microsoft has a good article here:  
<https://learn.microsoft.com/en-us/windows-server/networking/dns/doh-client-support#configuring-doh-through-group-policy>

:::

## Setup an “automatic template”

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

```powershell
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


 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2FmOTIwZTVkLTIxM2UtNDU4OS1hZmNjLTg4NDY0MTdmYjFlMi8zZGZjMDY5Ny1iNzdhLTRkZTQtYTJhNy1lYzE2NGQ5MjVjYTkvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTU0NDg3MDAsImV4cCI6MTc5NTUzNTEwMH0.ld_eZQr2VNHGH72GYV0Ck5btLTR62z9IiKTzVvngFNU)



---


:::info
tags:

* DoH
* DNS over HTTPs 
* Setup

:::

---

**Documents**

- [1.0 Getting Started](https://outline.cybersift.io/s/cs-dns/doc/10-getting-started-NMJCaCwWay)
- [2.0 Usage](https://outline.cybersift.io/s/cs-dns/doc/20-usage-RQu7CDpi18)
- [3.0 Agent Configuration](https://outline.cybersift.io/s/cs-dns/doc/30-agent-configuration-yndQmWm7z7)
- [4.0 Ingesting Logs](https://outline.cybersift.io/s/cs-dns/doc/40-ingesting-logs-jpnthtJtSU)
- [FAQ](https://outline.cybersift.io/s/cs-dns/doc/faq-pgdwP7oqza)