DNS servers translate human-readable domains such as Google.com into IP addresses that computers use to connect. The request has to travel from a phone or computer to a resolver first, and standard DNS sends it in plain text.
That leaves the lookup visible along the way.
What encryption changes
Switching to Cloudflare, Google, or Quad9 changes which service answers a DNS request. It does not encrypt the request itself. Traditionally, plain DNS travels over port 53, where an internet provider or the operator of a public Wi-Fi network can read the domains being requested.
Those lookups can expose information about websites, apps, and connected smart devices. The data may also be logged and sold to third parties for advertising. Cloudflare’s role as a DNS resolver is separate from its other services; a related security report covered attackers abusing Cloudflare API keys for phishing.
Encrypted DNS protects the request with encryption similar to the kind used for secure websites. The two common options are DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT). The Internet Engineering Task Force specified DoT in RFC 7858, published in May 2016, and DoH in RFC 8484, published in October 2018.
DoT uses port 853, which makes the traffic easier to block. If it fails, a system may fall back to unencrypted DNS. DoH sends DNS queries over port 443 alongside regular HTTPS traffic, making it harder to block. With encrypted DNS working, an ISP sees a connection to a DNS server but cannot read the area in the query. Encryption protects the DNS message in transit between the client and resolver; it does not conceal every other kind of connection information.
Put it on the router
Setting up encryption on a router can cover devices across the network without configuring each one separately. That matters because smart TVs and gaming consoles may not offer an encrypted DNS option. Many IoT gadgets do not either. The standards define the protocols, but they do not require every device or application to use encrypted DNS.
Router coverage has limits. Some streaming sticks use hard-coded DNS servers that bypass the router. iCloud Private Relay and a browser’s built-in DoH can bypass its setting too. Applications can also use their own DNS behavior instead of the operating system’s resolver.
To allow encrypted DNS on a router, change its default DNS server to one that supports encryption, then turn on the DoH or DoT option. Some routers do not offer that control; on those networks, encrypted DNS must be configured on each device that supports it.
Most router settings are available in an app. For a web portal, enter the router’s IP address in a browser and log in. Common addresses include 192.168.0.1, 192.168.1.1, 10.0.0.1, and 192.168.1.254. If those do not work, run ip route on Linux or ipconfig on Windows in the Terminal, then look for “Default Gateway.”
What DNS cannot hide
Encrypted DNS conceals the requested area inside the DNS query; it does not hide the destination IP address from an ISP. The provider can still use that address to identify the website. A VPN can hide that information from the ISP, but it shifts trust to the VPN provider instead.