Enable DoT or DoH by domain name

I’d like to use DoT using the domain name like dns.adguard.com or DoH https://dns.adguard.com/dns-query. Is it possible? Is there a program similar to YogaDNS for Windows I can use? Thanks!

You can use dnscrypt-proxy, which is available in standard Ubuntu repositories:

sudo apt install dnscrypt-proxy

See dnscrypt-proxy documentation for more info