From a domain to an IP address

Before visiting a website, a device needs to find the IP address associated with its domain. This lookup is called DNS resolution.

For example, the following domain and address illustrate the idea; they are not a live lookup:

www.example.com → 93.184.216.34

How do traditional DNS, DoH, and DoT differ?

Traditional DNS commonly uses UDP or TCP port 53 without encrypting the query. Devices on the network path that can observe the traffic can read the queried domain.

DoT (DNS over TLS) encrypts DNS communication with TLS and uses standard port 853; DoH (DNS over HTTPS) carries DNS over HTTPS, usually on port 443. Both protect queries and responses in transit, making them harder for networks along the way to observe or modify.

In short, traditional DNS sends queries directly; DoT adds TLS to DNS communication; DoH puts DNS queries in HTTPS requests.

Turnout DNS (updns) supports DoH and DoT upstreams as well as ordinary UDP and TCP. You can choose upstreams for your network and use different resolution rules for different domains.

See an updns audit

This example from the project guide assumes Google-DoH is an upstream using DoH. Your actual rules and upstreams may differ.

Command

updns google.com

Example output

From the project guide; actual output depends on configuration, cache, and network conditions.

Domain       : google.com.
Query Type   : A / AAAA
Query Path   : Cache Hit
Matched Rule : US Access
Upstream     : A=Google-DoH / AAAA=Google-DoH
Action       : IPv4 + IPv6
Response     : NOERROR

How to read it

Upstream shows A=Google-DoH and AAAA=Google-DoH: both cached answers came from the example's encrypted DoH upstream. Query Path is Cache Hit, so this query was answered directly from valid cache without another upstream request.

Where does encryption apply?

In this example, DoH protects transport between updns and the upstream; it does not automatically encrypt ordinary DNS between clients and the router. The chosen upstream can still see the queries sent to it, so choosing a trusted upstream matters.

Encrypted DNS is not a VPN: it does not automatically hide other network connections or website visits. A website's HTTPS connection provides separate protection.

Continue to the complete guide