DNS over TLS (DoT) or DNS over HTTPS (DoH) is really to stop man-in-the-middle attacks, effectively to authenticate a response is genuine and not tampered with - think of it as if you're sending a letter with a tamper proof seal and requires a signature when delivered.
For privacy it's pretty useless as the encryption doesn't actually achieve anything. While men in the middle can't see the payload of the DNS request, they will see the IP address in the subsequent web request stream, even though they can't see what you're looking at on that site. It's like the letter above had an address in it, and you then send another parcel with a tamper proof seal requiring a signature to the address that was in the first letter... but the postie can now see the address!
For performance it's also slower in terms of latency. Both DoT and DoH use TCP not UDP like normal DNS, so this means an ACK packet needs to be sent back and forth basically meaning you need two 'pings' to the DNS server instead of one to get the response - so double the latency. Theoretically DoT is simpler - just a DNS request in a TLS stream - while DoH is a DNS request over HTTP over TLS - but in practice the differential is meaningless as there's so much more optimisation in both hardware and software for full HTTPS. But a normal DNS request will always be twice as fast as it requires half the packets. This is somewhat mediated with DoQ (DNS over QUIC, which is HTTPS but over UDP), but that's just a kludge looking for a problem.
The best as others have said is to use a VPN. Preferably to a server you control and therefore trust, but using a VPN service is OK. Most VPN technologies use UDP and have developed their own reliability techniques in the protocol, so therefore the 'best' option is to use bog standard DNS over a UDP-based VPN, ie like Wireguard or well set up OpenVPN.
If you're interested in the authentication side, there's another DNS feature that's called DNSSEC which is a set of extra DNS requests that normal DNS uses that effectively 'signs' the DNS request but is unencrypted (read above as to why encryption is pointless), so you can use the authenticating features of DoT/H with the speed of standard DNS. The downside is most consumer routers won't have the slightest clue how to use DNSSEC as they mainly use software called dnsmasq which will support DNSSEC, but it needs a friendly DNS server and a smart client to be set up to request and handle DNSSEC properly upstream (few do, least of all ISP DNS servers).
Instead, get a Raspberry Pi with PiHole and unbound set up as an
All-Around DNS Solution and you get the full benefit of DNSSEC, a great ad blocker, and the benefit of speed of standard DNS. Set up unbound to query the entire DNS network from the root servers and switch on DNSSEC, and it will authenticate the entire chain then cache the lot (ie it'll be slow at first, then speed up dramatically). The same Pi if it's a Pi 4 can probably run the VPN too, but probably not to gigabit speeds.
This way you can watch your pr0n fast, ad-free (and therefore even faster) and have minimum latency skipping to the good bits 😎
Edit: grammar
Edited by zzing123 (Tue 14-Sep-21 01:36:57)