What Is DNS over HTTPS (DoH)? What It Hides and Where It Stops
DNS over HTTPS encrypts the website names your device looks up. What it hides, what it does not, how it differs from a VPN, and how to turn it on.
CasperVPN Team
Reviewed by Omar Atarabay, Founder
November 25, 2026
DNS over HTTPS (DoH) is a way of sending your device's DNS lookups, the step that turns a website name into an address, inside encrypted HTTPS traffic instead of as plain text. With DNS over HTTPS on, the Wi-Fi network and your internet provider can no longer read or change the list of website names you look up, but the DNS service you send them to still sees them, and the rest of your traffic is not hidden. DNS over HTTPS was published as an internet standard, RFC 8484, in 2018.
Checked on 24 November 2026.
What is DNS, and why does it need encrypting?
DNS, the Domain Name System, is the internet's address book: before your phone or laptop can open a website, it asks a DNS server for the address that matches the name you typed. Plain DNS sends that question and the answer as unencrypted text, usually on port 53. Anyone who handles your connection, such as the cafe Wi-Fi owner, the hotel network or your internet provider, can read every website name your device looks up, keep a record of it, or send back a false answer that leads you to a fake site. Encrypting DNS closes that gap for the lookup step. Our post what is a DNS leak shows what happens when those lookups escape a VPN.
How does DNS over HTTPS work?
DNS over HTTPS works by wrapping each DNS question in a normal encrypted HTTPS request, the same kind of connection your browser uses for a secure website, and sending it to a DNS service that supports it. The steps are simple:
Because the lookup looks like any other HTTPS traffic, the network in between cannot read it and cannot easily change it.
What does DNS over HTTPS not hide?
DNS over HTTPS does not hide three things. First, the DNS service you choose still sees every website name you look up, so you are moving trust from your network to that service. Second, your device still connects to the website's IP address, and the network can see that address, which often points to the site or its host. Third, during the start of many secure connections, the website name can still be sent in readable form, unless the site and browser both use a newer feature that encrypts it. DNS over HTTPS also does nothing for the content of your traffic outside the browser or device that uses it. It is a useful privacy step, not full protection.
What is the difference between DNS over HTTPS and DNS over TLS?
DNS over HTTPS and DNS over TLS both encrypt DNS lookups; the difference is how the encrypted traffic travels. DNS over TLS (DoT), published as RFC 7858 in 2016, uses its own port, 853, so a network can see that DNS is happening, even though it cannot read it, and can choose to stop that port. DNS over HTTPS (DoH) uses port 443, the same port as secure websites, so it blends in with normal web traffic. Both give the same main benefit on public Wi-Fi: the network can no longer read your lookups. Android's Private DNS setting uses DNS over TLS, while browsers usually offer DNS over HTTPS in a setting called secure DNS.
Is DNS over HTTPS the same as a VPN?
No, DNS over HTTPS is not the same as a VPN. DNS over HTTPS encrypts only the lookup step, so the network cannot read which names you look up, but it can still see which IP addresses you connect to and how much data you send. A VPN encrypts all the traffic from your device to the VPN server, including DNS lookups, website connections and app traffic, and websites see the VPN server's IP address instead of yours. When a VPN is connected, DNS lookups normally go through the VPN tunnel to the VPN's own DNS, so adding DNS over HTTPS on top gives little extra on the same device. Our guide what is a VPN and how does it work explains the tunnel in plain words.
How do you turn on DNS over HTTPS?
You turn on DNS over HTTPS in your browser or your device's network settings. The exact names differ between versions, but these steps cover most devices:
Should you use DNS over HTTPS?
You should use DNS over HTTPS if you often use public Wi-Fi without a VPN, because it stops the network owner from reading the website names you look up. Choose the DNS service with care: it sees every lookup, so read its privacy policy and how long it keeps records. If you already use a VPN on that device, DNS over HTTPS adds little, because the VPN already carries your lookups through its encrypted tunnel. DNS over HTTPS can get in the way on some work, school or hotel networks that rely on their own DNS, so switch it off if a network login or a work tool stops working.
How does CasperVPN handle DNS lookups?
CasperVPN is a VPN app for iPhone, iPad and Android that carries your device's traffic, including DNS lookups, through its encrypted tunnel, so the Wi-Fi network sees only that a VPN is in use. CasperVPN keeps no activity logs: no browsing activity, connection destinations or DNS queries are stored. Premium adds unlimited data, every server location and a kill switch, which stops traffic if the VPN connection drops. You can compare the free and Premium plans on the CasperVPN pricing page.
FAQ
Does DNS over HTTPS hide my browsing from my internet provider?
DNS over HTTPS hides the website names you look up from your internet provider, but not the IP addresses you connect to or, on many sites, the name sent when the secure connection starts. For fuller privacy from the network, a VPN encrypts all of your traffic.
Does DNS over HTTPS slow down the internet?
DNS over HTTPS can add a very small delay to the first lookup of each website name, because of the encryption step. Most people do not notice it in normal use, and later lookups are often saved on the device.
Is DNS over HTTPS safe to turn on?
Yes, DNS over HTTPS is safe to turn on for most people. Pick a DNS service you trust, because it sees your lookups. Switch it off for a moment if a Wi-Fi login page or a work network stops working.
Do I need DNS over HTTPS if I use a VPN?
You usually do not need DNS over HTTPS on a device that already uses a VPN, because the VPN carries your DNS lookups inside its encrypted tunnel. Run a DNS leak test with the VPN on to make sure the lookups really go through it.
Tags: