DNS over HTTPS vs DNS over TLS
Your browser offers “secure DNS”, your phone may have a “private DNS” setting, and both exist to encrypt the lookups that turn site names into addresses. DNS over HTTPS (DoH) and DNS over TLS (DoT) are the two protocols behind such settings. Each protects the exchange between your device and its chosen resolver against casual inspection and modification on the network. Neither makes your browsing wholly invisible or anonymous.
How DoH and DoT carry a query
DoH maps DNS queries and responses onto HTTPS exchanges, as defined in RFC 8484. On the network it uses the same port 443 as ordinary web traffic and looks much like it. DoT carries DNS messages inside a dedicated TLS connection, specified by RFC 7858, and has its own port, 853. That makes DoT easy for a network administrator to recognise, allow or block, while DoH is harder to tell apart from other HTTPS.
Both need support in the client and in the resolver, and the client has to authenticate the resolver it talks to. Neither a port number nor a protocol label proves that the service at the other end is trustworthy.
Where you usually find each one
DoH is often built into a browser or an application and may use ordinary HTTPS infrastructure. DoT is commonly configured in the operating system or by the network. These are common patterns, not guarantees: actual behaviour depends on the device, the application and network policy.
A switch labelled “secure DNS” does not, on its own, tell you which provider is selected or whether the device can fall back to ordinary unencrypted DNS when the encrypted resolver fails. Both are worth finding out.
What stays visible with encrypted DNS
The operator of the resolver you chose receives every query it has to answer. The destination website still sees your connection, and other parties on the network may see the IP addresses you connect to and other metadata. Encrypted DNS does not erase browser history, cookies, account sign-ins or anything you submit to a site. For a privacy decision, look at the full connection path and at the resolver’s data policy.
DNSSEC does a different job
DNSSEC lets a resolver validate the origin and integrity of signed DNS data when the chain of trust is configured. It does not encrypt the queries between you and the resolver. A DoH or DoT resolver can validate DNSSEC as well, so treat the mechanisms as complementary, not interchangeable. To measure how quickly a particular resolver answers, enter its IP address in the 2ip DNS response time test.
Finding out which resolver you really use
Start by establishing whether the browser follows the system DNS configuration or uses its own encrypted resolver. Then look up a name with the 2ip DNS lookup tool and compare the answer with what your selected resolver returns. A difference does not always mean a leak, because a CDN may tailor answers to the resolver’s location and other conditions. Test, too, what happens when the encrypted resolver is unavailable.
On a managed network, think before you change anything. Filtering, internal names and security policy may require a particular resolver, and an arbitrary DNS change can break internal resources. Identify who operates the network, which names must resolve and whether an alternative DNS path is allowed.
Picking a resolver, then testing it
Judge a provider on its availability, data handling, DNSSEC validation and behaviour on failure, not on a single privacy promise. After the change, test ordinary websites and any internal names you need. If the underlying problem is an incorrect authoritative record, changing the DNS transport cannot correct it: you will receive the same wrong answer over an encrypted channel.