You are correct. However, you can’t mitm traffic through DNS alone. Each device would need to install a certificate for that to function. Also, OP specifically mentioned nextdns features, and nextdns does not do that.
Comment on selfhosting alternative to nextdns
chiisana@lemmy.chiisana.net 1 year agoIt’s not so absolute; your DNS provider could resolve domains to their own server’s IP and MITM your traffic. This is how some of those DNS based region bypass work — by re-routing your traffic through their server in a supported region.
friend_of_satan@lemmy.world 1 year ago
lemmyvore@feddit.nl 1 year ago
How exactly would that work? You would have to accept broken certificates or even no TLS at all for that to work.
chiisana@lemmy.chiisana.net 1 year ago
As the person I replied to mentioned, these kind of providers would often also get you to install a cert that they’d use to sign with. Once it is installed, the certificates wouldn’t appear broken anymore.
lemmyvore@feddit.nl 1 year ago
You’d have to install a cert for each domain. It’s not likely to happen. The only provider where this works is Cloudflare but that’s because they force you to use them as registrar and DNS so they can issue duplicate certs for any domain.
chiisana@lemmy.chiisana.net 1 year ago
A CA cert is higher up can sign for any desired domain. Certificates are a chain of trust and as long as the entire chain can be validated (by the root level installed by the user), then the entire cert will appear valid. During installation, that’s what gets installed and then the provider signs for whatever domain you’re visiting that they’d need (or want) to MITM.
Cloudflare uses LetsEncrypt, Google and a few other CAs to sign their certs.