Coniguring DNS-over-HTTPS with UniFi OS and AdGuard

UniFi OS introduced the ability to encrypt DNS traffic using DNS-over-HTTPS with custom servers some time in 2024. Ubiquiti call this feature DNS Shield. I use AdGuard DNS as a hosted alternative to Pi-hole for blocking trackers and ads in my home network. AdGuard DNS has long supported DNS-over-HTTPS, but UniFi OS only got first party support recently. Configuration should be easy, but neither…