You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Cloudflare Gateway, you can filter DNS over HTTPS (DoH) requests by [DNS location](/cloudflare-one/connections/connect-devices/agentless/dns/locations/) or by user without needing to install the WARP client on your devices.
12
11
@@ -34,7 +33,6 @@ Your DNS queries will now be sent to Gateway for filtering. To filter these requ
34
33
35
34
### Configure operating system for DoH
36
35
37
-
38
36
<Detailsheader="Windows 11">
39
37
40
38
1. Obtain the `A` and `AAAA` record values associated with your location's DoH endpoint.
@@ -71,20 +69,18 @@ Your DNS queries will now be sent to Gateway for filtering. To filter these requ
71
69
72
70
4. Under **DNS server assignment**, select **Edit**.
73
71
74
-
5. In the drop-down menu, choose *Manual*.
72
+
5. In the drop-down menu, choose _Manual_.
75
73
76
74
6. Enable **IPv4**.
77
75
78
-
7. In **Preferred DNS** and **Alternate DNS**, enter the IPv4 addresses from your `A` record command. Set **DNS over HTTPS** to *On (automatic template)*.
76
+
7. In **Preferred DNS** and **Alternate DNS**, enter the IPv4 addresses from your `A` record command. Set **DNS over HTTPS** to _On (automatic template)_.
79
77
80
78
8. Enable **IPv6**.
81
79
82
-
9. In **Preferred DNS** and **Alternate DNS**, enter the IPv6 addresses from your `AAAA` record command. Set **DNS over HTTPS** to *On (automatic template)*.
83
-
80
+
9. In **Preferred DNS** and **Alternate DNS**, enter the IPv6 addresses from your `AAAA` record command. Set **DNS over HTTPS** to _On (automatic template)_.
84
81
85
82
</Details>
86
83
87
-
88
84
<Detailsheader="Windows Server 2022">
89
85
90
86
Obtain the `A` and `AAAA` record values associated with your location's DoH endpoint.
For more information, refer to [Microsoft's DoH guide](https://learn.microsoft.com/en-us/windows-server/networking/dns/doh-client-support) for Windows Server 2022 and newer.
The response contains a unique DoH token associated with the user. This token expires in 24 hours. We recommend setting up a refresh flow for the DoH token instead of generating a new one for every DoH query.
If the site is blocked and you have enabled [**Display block page**](/cloudflare-one/policies/gateway/configuring-block-page/#turn-on-the-block-page) for the policy, the query will return `162.159.36.12` (the IP address of the Gateway block page). If the block page is disabled, the response will be `0.0.0.0`.
278
-
264
+
If the site is blocked and you have enabled [**Display block page**](/cloudflare-one/policies/gateway/block-page/#turn-on-the-block-page) for the policy, the query will return `162.159.36.12` (the IP address of the Gateway block page). If the block page is disabled, the response will be `0.0.0.0`.
279
265
280
266
<Detailsheader="Example response">
281
267
282
268
```json
283
269
{
284
-
"Status": 0,
285
-
"TC": false,
286
-
"RD": true,
287
-
"RA": true,
288
-
"AD": false,
289
-
"CD": false,
290
-
"Question": [
291
-
{
292
-
"name": "example.com",
293
-
"type": 1
294
-
}
295
-
],
296
-
"Answer": [
297
-
{
298
-
"name": "example.com",
299
-
"type": 1,
300
-
"TTL": 60,
301
-
"data": "162.159.36.12"
302
-
}
303
-
]
270
+
"Status": 0,
271
+
"TC": false,
272
+
"RD": true,
273
+
"RA": true,
274
+
"AD": false,
275
+
"CD": false,
276
+
"Question": [
277
+
{
278
+
"name": "example.com",
279
+
"type": 1
280
+
}
281
+
],
282
+
"Answer": [
283
+
{
284
+
"name": "example.com",
285
+
"type": 1,
286
+
"TTL": 60,
287
+
"data": "162.159.36.12"
288
+
}
289
+
]
304
290
}
305
291
```
306
292
307
-
308
293
</Details>
309
294
310
295
You can verify that the request was associated with the correct user email by checking your [Gateway DNS logs](/cloudflare-one/insights/logs/gateway-logs/). To filter these requests, build a DNS policy using any of the Gateway [identity-based selectors](/cloudflare-one/policies/gateway/identity-selectors/).
0 commit comments