VPNs and Encrypted DNS Protect Different Parts of a Connection

Laptop beside a docking station and cables

DNS over HTTPS and a VPN address different privacy problems. Encrypted DNS mainly protects the request that translates a website name into a network address. A VPN creates an encrypted tunnel from your device to a remote VPN server. Both technologies change a trust boundary, and neither promises complete anonymity.

What happens when you open a website

Before a browser reaches a website, it usually needs to find the site’s network address. DNS performs that lookup. Other data then travels between your device and the web server. DNS over HTTPS wraps DNS queries inside ordinary HTTPS requests and sends them over port 443. This makes it harder for attackers to forge or alter DNS traffic. Cloudflare’s DNS over HTTPS explanation describes this protection.

What a VPN changes

A VPN routes traffic through a remote server and encrypts the connection between your device and the VPN service. A local network therefore has a harder time reading the contents of that connection, and the website will typically see the VPN server’s IP address. The VPN provider becomes an important party you must trust. Cloudflare’s VPN overview explains tunnels, IP addresses, and common uses.

A public Wi-Fi comparison

Imagine using a café’s Wi-Fi. DoH can protect the DNS request, making it harder for the network to read or alter the requested domain through the DNS exchange. It does not automatically encrypt every other part of the connection and does not replace a VPN. A VPN protects the route from your device to the VPN server more broadly, while giving the VPN provider a central role in handling and forwarding traffic.

How to choose

If your goal is specifically to protect DNS queries, DoH addresses that limited purpose. If you want traffic to travel through a remote server, a VPN may fit. In either case, check which provider you trust and what the website itself can collect. Signing in to an account can still connect activity with you, whether DoH or a VPN is active.

Diesen Artikel auf Deutsch lesen.

Photo by Ximeg, Wikimedia Commons · CC BY-SA 3.0. Cropped and resized. The adapted photograph uses the same image license.