Learn how to deploy Unbound DNS in Debian 12, and then configure it to act as a forwarding DNS resolver that uses TLS encryption, for encrypted DNS lookups.
Learn how to configure a Stubby server on your local network, in order to use it for DNS over TLS.