DNS over HTTPS on Ubuntu

edit April 2026: works on Ubuntu 26.04, because systemd-resolved still does not support DoH. Enhance your privacy and protect yourself from your ISP. Hide your DNS requests behind a random HTTPS connection. This guide will work on Ubuntu 26.04 (and 24.04 and so on). This guide also