Skip to content

Instantly share code, notes, and snippets.

@1999AZZAR
1999AZZAR / DoH Setup with cloudflared.md
Last active November 14, 2026 12:08
This guide explains how to set up DNS over HTTPS (DoH) on a Linux system using `cloudflared`. DoH ensures that your DNS queries are encrypted and secure, protecting your online privacy and preventing third-party monitoring of your internet activity.

UPDATE: I've built a full Web UI to automate and manage this! Check out the complete, interactive version of this setup (which now also includes a 1-click Privacy VPN mode using Unbound + DNSCrypt + WARP) here: 1999AZZAR/doh-switcher


This guide explains how to set up DNS over HTTPS (DoH) on a Linux system using cloudflared. DoH ensures that your DNS queries are encrypted and secure, protecting your online privacy and preventing third-party monitoring of your internet activity.

Setting Up DNS over HTTPS (DoH) Using cloudflared

# This is my implmentation of calculating Global Average Symmetric Price (GASP) as it's mentioned in this video: https://www.youtube.com/watch?v=wpmTuNvGQjQ
# Presenter in the video doesn't explain briefly how to calculate the GASP, but, I kinda figured it out myself
order_book = {
'bids': [
[97, 0.1],
[96, 0.2],
[95, 6]
],