whoisy.online

What Is DNS over HTTPS (DoH) and How to Enable It on Any Device ?

Stacy D Lowery
Stacy D Lowery
Network & Security Specialists
15 min read1420 views
What Is DNS over HTTPS (DoH) and How to Enable It on Any Device ?

DNS over HTTPS (DoH) wraps your domain lookups inside encrypted HTTPS traffic on port 443. You might see a padlock icon in your browser bar, yet your device still broadcasts every domain you visit in plain text over port 53. That's why public Wi-Fi networks hijack your pages or ISPs silently block domains while you're trying to work. It's an easy leak. Below, you'll learn how DoH works, how to enable it on any device, and how to verify your DNS setup with whoisy.online.

What Is DNS over HTTPS (DoH)?

DNS acts as the internet's phonebook, translating human-readable domains like whoisy.online into the numerical IP addresses your router needs to connect. DNS over HTTPS changes how that lookup travels by wrapping your domain requests inside an encrypted HTTPS session instead of sending them out in the open. It keeps your browsing destinations private from anyone sitting between your device and the DNS resolver—the server that answers your lookup requests. Simple idea, huge impact.

The Privacy Problem With Traditional Unencrypted DNS

Standard DNS was designed in the 1980s, decades before public Wi-Fi snooping or aggressive ISP data logging became everyday realities. Every time you type a domain into your browser, your device fires off a plain-text UDP packet over port 53. Anyone on the network path can read it.

Your ISP, a hotel router, or an attacker on the same coffee shop Wi-Fi sees every single domain you request, even when the destination site itself uses HTTPS. That's a massive blind spot. Worse yet, because traditional DNS doesn't verify who sent the answer, a rogue network can silently hijack the response—a technique known as DNS spoofing—and point your browser to a fake IP address before the page even loads.

How DoH Uses HTTPS Encryption to Protect DNS Queries

DoH closes both the eavesdropping and tampering gaps by sending your DNS queries over port 443 using standard HTTP/2 or HTTP/3 requests wrapped in TLS encryption. To your ISP or local network admin, a DoH lookup looks identical to loading a normal encrypted webpage. They can't read the domain name inside the packet.

If someone on the network tries to alter the returned IP address in transit, the TLS cryptographic check fails immediately and your device drops the tampered response. You get verified, encrypted communication directly between your browser or operating system and a trusted DoH resolver like 1.1.1.1 or 8.8.8.8. No plain-text leaks on port 53, and no silent redirects.

How DNS over HTTPS Works Step by Step.

When you type a site name into your browser, your device has to find the matching IP address before anything can load. With DoH turned on, your browser doesn't just shout that name out in plain text over the local network. Instead, it packs your DNS request inside an encrypted HTTPS session and sends it straight to a DoH server. It's a pretty simple shift under the hood, and it changes how your traffic moves from start to finish.

Standard DNS Lookup vs. DoH Resolution Flow.

With a standard DNS lookup, your computer sends your DNS request as a small UDP packet on port 53. That packet goes straight to your router and then out to your ISP's DNS server in plain text. Anyone who sits on that network path can read the exact site you want to visit, and they can even swap out the IP address on the way back.

When you switch to DoH, that whole flow gets a lot tighter. First, your browser opens a TLS connection to a DoH server like 1.1.1.1 or 8.8.8.8 on port 443. Once that encrypted tunnel is up, your browser wraps your DNS request inside an HTTP GET or POST message and sends it through. The DoH server looks up the IP address for you, sends the answer back inside that same tunnel, and your browser loads the page.

If you ever want to see what a raw DoH query looks like from your own terminal, you can test it with curl -H "accept: application/dns-json" "[https://1.1.1.1/dns-query?name=example.com&type=A](https://1.1.1.1/dns-query?name=example.com&type=A)". Most folks don't need to run that every day, but it shows how your DNS request is really just a normal web call.

Port 443 and Why DoH Traffic Blends In With Regular Web Traffic.

Every time you open a bank site or check your email, your browser talks to the server on port 443. That's the exact same port DoH uses for your DNS request. Because standard DNS runs on port 53, it sticks out like a sore thumb to any firewall or network filter.

When your DNS request moves over to port 443, it looks just like regular web traffic to your ISP or a public Wi-Fi router. They can see that you opened a connection to a server IP, since the IP header isn't hidden, but they can't peek inside the encrypted data to read the domain you asked for. Because almost every network has to keep port 443 open so regular web traffic doesn't break, a strict office or hotel firewall can't block DoH by shutting down one port. If they tried to block port 443, the whole web would stop working for everyone on that network.

DNS Vs Doh Privacy In Transit
DNS Vs Doh Privacy In Transit

DNS over HTTPS vs. DNS over TLS and Standard DNS.

When you want to lock down your DNS request, you'll run into two main encrypted options, and both of them beat standard DNS by a mile. DNS over HTTPS and DNS over TLS both use TLS encryption to keep your ISP from reading where you go online. The real gap between them comes down to which port they use and how they behave when they hit a strict firewall.

Comparison Table of Standard DNS, DoH, and DoT.

If you look at how these three protocols move your DNS request across the web, the trade-offs show up right away. Here's how standard DNS, DoH, and DoT stack up side by side.

FeatureStandard DNSDNS over HTTPS (DoH)DNS over TLS (DoT)
Default PortPort 53Port 443Port 853
Transport ProtocolUDP or TCPHTTPS over TCP or QUICTLS over TCP
EncryptionNone (plain text)Full TLS encryptionFull TLS encryption
Firewall TraversalEasily read or blockedBlends in with web trafficEasy for firewalls to block
Ideal Use CaseLocal LAN lookupsPublic Wi-Fi and browsersHome routers and corporate nets

When to Choose DoH Over DoT?

Most of the time, I tell folks to pick DoH when they're out on public Wi-Fi or stuck behind a strict firewall. Because DoH sends your DNS request on port 443, it hides right inside your normal web traffic. A hotel router or an office filter can't block port 443 without breaking the whole web for everyone on that network.

DoT takes a different path by running on port 853, which is a dedicated lane just for encrypted DNS. That's actually great if you run your own network at home or manage an office, since you can still see and control DNS traffic on port 853 without snooping on the domains inside. Still, that dedicated port is a weak spot when you travel. If a strict firewall blocks port 853, your DoT setup stops working right away, and your device might fall back to plain text on port 53.

If you just want something that works in your browser on any Wi-Fi network without a fuss, go with DoH. You get the same TLS protection as DoT, and you don't have to worry about a strict firewall dropping your connection on port 853.

Benefits and Downsides of DNS over HTTPS.

Turning on DoH fixes a lot of old privacy holes, but it isn't a magic fix for every setup. You get much better privacy when you're out on public Wi-Fi, yet you might also run into a few snags on your network at home or at work. It's worth looking at both sides of the coin before you change your setup.

Key Privacy and Anti-Tampering Advantages.

The biggest win with DoH is that your ISP and local Wi-Fi routers can't read your DNS request in plain text anymore. When you sit at an airport or a hotel, anyone sniffing traffic on your network won't see a neat list of every site you open. That alone stops a lot of cheap tracking and ad injection that some ISPs still pull off.

You also get solid protection against DNS spoofing, which is when a bad actor hijacks your lookup and sends you to a fake site. Because your browser checks the TLS certificate of the DoH server before it trusts the answer, nobody in the middle can tamper with the IP address you get back. If someone tries to mess with the packet on the way, your browser catches the mismatch and drops it right away.

Limitations for Network Monitoring and Enterprise Filtering.

That same encryption that keeps you safe on public Wi-Fi can cause real headaches for IT teams who run office or school networks. Most company firewalls watch port 53 to block phishing links or spot a laptop that's talking to a known malware server. Once a browser starts sending your DNS request over port 443 to an outside DoH server, those local filters go blind.

You'll even see this happen at home if you run a local ad blocker like Pi-hole on your network. If Chrome or Firefox decides to bypass your router and talk straight to 1.1.1.1 over HTTPS, your local blocklists stop working completely. For most folks running a custom home LAN, you have to turn off browser DoH or point your local DNS server to handle the encrypted upstream hop instead.

Latency Overhead and DNS Centralization Risks.

Setting up a fresh TLS tunnel takes a bit more work than firing off a single UDP packet in plain text. On a brand-new connection, that extra handshake can add 15ms to 30ms to your first lookup. Still, modern browsers keep that HTTPS connection open in the background with HTTP/2 or HTTP/3, so after the first hit, the speed gap is pretty much invisible for most folks.

The bigger catch is centralization. When you stop using your ISP's resolver and move your DNS request to a public DoH server, you're just shifting your trust from one company to another. Right now, a huge chunk of global DoH traffic flows straight to just a handful of giant providers like Cloudflare and Google, which gives those few firms a massive view of web traffic if they ever decide to log it.

How to Enable DNS over HTTPS on Browsers and Operating Systems.

You can turn on DoH right inside your browser in under a minute, or you can set it up across your whole device so every app uses it. I usually tell folks to pick a reliable DoH server first, then decide if they only care about web browsing or if they want full system coverage. Either way, the setup is pretty simple once you know which menu to open.

Public DoH Providers Comparison Table.

Before you touch any settings on your device, you need to pick a DoH server that matches what you care about. Some focus on raw speed with under 20ms ping, while others block malware or let you build custom filter lists. Here's how the four biggest public DoH providers stack up.

ProviderIPv4 AddressCopyable DoH URLPrivacy & Filtering
Cloudflare1.1.1.1[https://cloudflare-dns.com/dns-query](https://cloudflare-dns.com/dns-query)Fast, no-logs audit, no default filtering
Google Public DNS8.8.8.8[https://dns.google/dns-query](https://dns.google/dns-query)High uptime, broad global reach, basic logs
Quad99.9.9.9[https://dns.quad9.net/dns-query](https://dns.quad9.net/dns-query)Non-profit, blocks known malware domains
NextDNSCustom per accountCustom account URLFull ad blocking and custom blocklists

Enabling DoH in Google Chrome, Mozilla Firefox, and Microsoft Edge.

If you only want to encrypt your DNS request while you browse the web, turning it on in your browser is the fastest way to go. Most modern browsers already have built-in support for a DoH server, so you don't have to install any extra plugins.

  1. In Google Chrome, open Settings, head to Privacy and security, and click Security. Scroll down until you see Use secure DNS, turn it on, and pick a provider from the list or paste in a custom DoH URL.
  2. In Mozilla Firefox, open Settings, click Privacy & Security, and scroll all the way down to DNS over HTTPS. Pick Increased Protection or Max Protection, then choose Cloudflare, NextDNS, or your own custom DoH URL from the drop-down menu.
  3. In Microsoft Edge, open Settings, go to Privacy, search, and services, and scroll down to the Security block. Toggle on Use secure DNS to specify how to lookup the network address for websites, then pick a DoH server from the list.

Configuring System-Wide DoH on Windows 11 and macOS.

Browser settings only cover your web tabs, which means your desktop apps and background updates still send plain-text lookups on port 53. If you want every app on your device to use a DoH server, you'll need to set it up at the OS level.

On Windows 11, open Settings, go to Network & internet, and click on your active Wi-Fi or Ethernet link. Click Edit next to DNS server assignment, switch it from Automatic to Manual, and turn on IPv4. Type 1.1.1.1 as your preferred DNS, switch DNS over HTTPS to On (automatic template), and hit Save. Windows 11 knows the DoH templates for major servers like Cloudflare and Google right out of the box.

macOS handles things a bit differently because Apple doesn't give you a simple toggle in System Settings for DoH. Instead, you have to install a small mobileconfig profile from a trusted provider like Cloudflare, Quad9, or NextDNS. Once you download that profile, open System Settings, go to Privacy & Security, scroll down to Profiles, and double-click the file to install it on your device.

Setting Up DoH on Android and iOS.

Phones jump between cell towers and public Wi-Fi all day, so encrypting your DNS request on mobile is honestly where you get the most value. Both Android and iOS support encrypted DNS at the system level, though they use slightly different paths to get there.

On Android 9 and newer, open Settings, tap Network & internet, and select Private DNS. Choose Private DNS provider hostname and type in a host like one.one.one.one or dns.google, then tap Save. Just keep in mind that Android's built-in Private DNS uses DoT on port 853 by default, so if a strict Wi-Fi network blocks that port, you'll want to use an app like Cloudflare 1.1.1.1 or NextDNS to force DoH over port 443.

On iOS, Apple uses the exact same profile method as macOS. You can either download a DoH profile from your provider's site and approve it under Settings, General, and VPN & Device Management, or you can install the official NextDNS or Cloudflare app from the App Store and flip one switch to route your DNS request over HTTPS.

How to Verify Your DNS Configuration and Network Privacy.

Flipping a switch in your browser or OS settings is only half the job, because a silent fallback can still push your DNS request back to port 53. I always run a few quick checks right after I change my DNS setup so I know for sure it's working. You don't want to find out weeks later that a router rule or a browser leak was exposing your traffic the whole time.

Checking Domain DNS Records and Resolution With the whoisy.online DNS Lookup Tool.

One of the easiest ways to spot DNS tampering is to check what your device sees against a clean, outside lookup. If your ISP was hijacking a domain or serving stale records before you turned on DoH, the IP address your machine gets won't match the real record on the public web.

You can open the DNS lookup tool on whoisy.online, type in a domain you visit often, and look at the A or AAAA records it pulls back. Then, run dig example.com +short in your own terminal and see if the IP address matches up. If both give you the same IP, your DoH server is resolving domains cleanly without anyone in the middle messing with the answer.

DNS Match Verification Dashboard
DNS Match Verification Dashboard

Testing for WebRTC Leaks and Latency Alongside DoH on whoisy.online.

Encrypting your DNS request stops your ISP from reading your lookups, but it doesn't hide your real IP address from the sites you visit. Even if you pair DoH with a proxy or a VPN, WebRTC—a browser feature built for live voice and video calls—can still slip past your tunnel and expose your local or public IP.

To make sure your browser isn't giving you away, run the WebRTC leak test on whoisy.online and check which IP addresses show up on the screen. If you see your real home IP while your proxy is on, you'll need to turn off WebRTC in your browser settings.

While you're there, it's also smart to run the speed and ping test on whoisy.online after you switch to a new DoH server. Most good resolvers keep your ping under 40ms, so if you notice sudden lag or high jitter on your connection, try swapping to a closer DoH provider and test it again.

Frequently Asked Questions

Questions & Answers

Clear, authoritative answers to the most common questions on this subject.

Tags:#DNS
Stacy D Lowery

Stacy D Lowery

Network & Security Specialists

Graduate in Computer Science with 6+ years of hands-on experience in IT infrastructure and system administration.