This article describe how to use DoH with Openwrt. Using dnscrypt-proxy 2 as up-stream DNS server and dnsmasq forward all the DNS queries to dnscrypt-proxy 2.
I do prefer to complie packages directly into Openwrt. If you prefer to install by opkg please switch to openwrt's original software feeds.