👉 Lock down your connection with NordVPN here: NordVPN
You’ll learn what DNS over HTTPS (DoH) is, how it encrypts DNS requests, and what it can, and can’t, hide from ISPs, Wi-Fi operators, and trackers. Discover how DoH works with HTTPS and VPNs to strengthen your online privacy and security.
Chapters: 0:00 Intro 0:13 What does DNS do when you visit a website? 1:01 How does DNS over HTTPS work? 1:57 What privacy does DNS over HTTPS actually provide? 2:52 What doesn’t DNS over HTTPS hide? 3:58 How do DNS over HTTPS and VPNs work together? 4:42 Should you use DNS over HTTPS? 5:30 Outro
Disclaimer: Links may earn a commission that supports the channel.
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
DNS over HTTPS (DoH) encrypts DNS queries and responses between your device and a compatible resolver using HTTPS/TLS, as standardized in RFC 8484.
DoH prevents local observers from directly reading or altering DNS lookups, which is especially valuable on public Wi-Fi and other untrusted networks.
DoH is not anonymity: resolvers can see your queries and connecting IP address, while ISPs may still observe destination IPs, timing, traffic volume, and connection patterns.
DoH, HTTPS, DNSSEC, and VPNs solve different problems: DoH protects DNS transport, HTTPS secures website traffic, DNSSEC validates DNS records, and VPNs encrypt and route broader device traffic.
Resolver choice matters because DoH shifts trust: review the provider’s logging, retention, jurisdiction, filtering, security, and data-sharing policies.
Check where DoH is enabled and whether it falls back to plaintext DNS: browser-level settings may override VPN or system DNS, bypass filtering, or disrupt internal domains and captive portals.
For most users, DoH is a useful privacy layer, not a complete solution and works best alongside HTTPS, careful anti-tracking settings, and properly configured network protection.
👉 Put your privacy knowledge into practice with NordVPN for encrypted traffic, IP masking, leak safeguards, and convenient protection across multiple devices.
DNS over HTTPS (DoH) encrypts the DNS requests your device makes when looking up websites and online services. It closes an important privacy gap left by traditional DNS, but it does not make browsing anonymous or hide every detail of an internet connection.
Understanding exactly what DoH protects, and what it does not, can help you choose secure DNS settings without placing too much trust in a single privacy feature.
What Does DNS Do?
The Domain Name System, or DNS, translates human-readable domain names such as example.com into numerical IP addresses that computers use to communicate.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this series.
You enter a domain name into a browser.
The browser or operating system checks whether it already has the answer cached.
If not, it sends a DNS query to a recursive resolver.
The resolver finds the relevant DNS record.
It returns the IP address or another requested record.
Your browser connects to the destination.
The recursive resolver may be operated by an internet service provider, employer, school, VPN provider, public DNS service, or security-filtering provider.
Traditional DNS usually sends requests over UDP or TCP port 53 without transport encryption. As a result, an ISP, Wi-Fi operator, or attacker monitoring the local network may be able to read the domain being requested or interfere with the response.
Even when a website uses HTTPS, the DNS lookup that happens before the website connection may still be exposed. It is similar to sealing a letter while announcing the recipient to everyone nearby.
What Is DNS Over HTTPS?
DNS over HTTPS is a standardized method of sending DNS questions and answers through an encrypted HTTPS connection. It is commonly abbreviated as DoH and is defined in RFC 8484.
DoH changes the transport used between a client and its DNS resolver:
Traditional DNS
DNS over HTTPS
Usually unencrypted
Encrypted using HTTPS and TLS
Commonly uses port 53
Commonly uses port 443
Easy to identify as DNS traffic
Resembles other HTTPS traffic
Local observers may read queries
Local observers cannot directly read query contents
Responses may be altered in transit
TLS helps prevent on-path alteration
Resolver may not be authenticated
Resolver is authenticated using an HTTPS certificate
DoH does not replace DNS. It provides an encrypted and authenticated way to send DNS messages to a compatible resolver.
How DNS Over HTTPS Works
A simplified DNS over HTTPS lookup follows these steps:
The client needs a DNS answer.
A browser, operating system, or application needs the IP address associated with a domain.
The client connects to a DoH resolver.
It establishes an HTTPS connection, normally over port 443.
TLS authenticates the resolver.
The client checks the resolver’s digital certificate, much as it checks a secure website’s certificate.
The DNS query is encrypted.
The requested domain is placed inside the HTTPS connection.
The resolver processes the request.
It may return a cached answer or query other parts of the DNS system.
The answer returns through HTTPS.
Local observers cannot directly read or modify the protected response.
The client connects to the destination.
This is a separate connection from the DoH lookup.
The process can be summarized as:
Browser or device → encrypted DoH connection → recursive resolver
Followed by:
Browser or device → website or online service
The encrypted connection generally protects only the path between the client and recursive resolver. It does not automatically encrypt every communication the resolver makes with authoritative DNS servers elsewhere in the DNS hierarchy.
What DNS Over HTTPS Protects
DNS Queries on the Local Network
DoH prevents nearby network observers from directly reading the domain inside an encrypted DNS request.
This is particularly useful on networks where you do not control or trust the infrastructure, including:
Airports
Hotels
Cafés
Public hotspots
Shared accommodation
Guest Wi-Fi networks
Someone monitoring the local network may see that your device connected to a DoH service, but they should not be able to read the individual DNS question inside that connection.
DNS Responses in Transit
Because DoH uses TLS, it becomes significantly harder for an on-path attacker to replace a legitimate DNS answer with a fraudulent one.
This can reduce the risk of DNS spoofing, in which an attacker attempts to redirect a domain toward an imitation website, advertising system, or malicious server.
Resolver Authentication
The client validates the DoH resolver’s certificate. This helps confirm that it reached the intended service rather than an impersonator.
Encryption without authentication would not be enough: a client also needs confidence that it is communicating with the correct resolver.
Simple DNS Interception
Traditional DNS traffic is recognizable and often easy for a network operator to intercept or redirect. DoH normally uses the same port as ordinary HTTPS traffic, making basic DNS-specific interference more difficult.
This does not make DoH impossible to block. A network can still block known resolver addresses, restrict external traffic, or require use of an approved proxy.
What DNS Over HTTPS Does Not Hide
DoH protects one specific part of an internet connection. It should not be confused with anonymous browsing or complete traffic protection.
The DoH Resolver Can See Your Queries
A standard DoH resolver ordinarily needs to read the requested domain to answer the query. It can also see the IP address connecting to its service.
DoH therefore shifts trust rather than eliminating it. Instead of exposing plaintext DNS to the current network or ISP-provided resolver, you entrust the query to your selected encrypted DNS provider.
When assessing a resolver, consider its:
Logging and retention policies
Jurisdiction
Security practices
Business model
Data-sharing practices
DNSSEC support
Filtering policies
Handling of identifying metadata
The privacy implications of resolver concentration and DNS data collection are discussed in the IETF’s DNS Privacy Considerations.
Destination IP Addresses
After DNS resolution, your device normally connects to the resulting IP address. An ISP or network operator can still observe that destination address unless the connection is routed through a VPN, proxy, Tor, or another intermediary.
Several websites may share one IP address, so the address does not always identify a particular domain. In other cases, it may make the destination relatively easy to infer.
Connection Metadata
DoH does not hide:
Connection timing
Traffic volume
Session duration
The DoH resolver’s IP address
Subsequent destination IP addresses
Traffic patterns that may reveal or suggest activity
Website Content
DoH encrypts DNS resolution, not the website connection. HTTPS is responsible for encrypting page content, URL paths, cookies, forms, and other data exchanged with a website.
If a destination uses unencrypted HTTP, enabling DoH does not secure that website connection.
Cookies and Online Tracking
DoH does not prevent websites, advertisers, or applications from tracking users through:
Cookies
Browser fingerprinting
Tracking pixels
Advertising identifiers
Analytics scripts
Account logins
Cross-site tracking techniques
It also does not hide activity associated with an account. If you sign in to a service, that service can still associate activity with your profile.
Your Public IP Address
Websites still see the public IP address from which the website connection originates. DoH does not change or mask that address.
Complete URLs
DNS normally resolves hostnames rather than complete URLs. A resolver may receive a query for:
example.com
It does not normally receive the full HTTPS URL:
example.com/private/account/page
The URL path is protected during the HTTPS website connection, not by DoH.
DNS Over HTTPS vs. HTTPS, VPNs, and DNSSEC
These technologies protect different parts of an internet connection.
Technology
Main purpose
What it protects
What it does not inherently provide
DoH
Encrypt DNS between a client and resolver
DNS questions and answers on that path
Anonymous browsing, IP masking, encrypted website content
HTTPS
Secure connections to websites and services
Page content, URL paths, forms, cookies, and other data in transit
Traditional DNS queries or destination IP addresses
VPN
Route traffic through an encrypted tunnel
Traffic between the device and VPN server, usually including DNS
Privacy from the VPN operator or complete anonymity
DNSSEC
Validate signed DNS data
Authenticity and integrity of supported DNS records
Query confidentiality
DoT
Encrypt DNS using TLS
Client-to-resolver DNS traffic
Anonymous browsing or website encryption
ECH
Encrypt sensitive TLS handshake fields when supported
Hostname information that may otherwise appear in SNI
DNS queries, destination IP addresses, or traffic patterns
DoH vs. HTTPS
DoH and HTTPS often work together, but they secure separate connections:
DoH encrypts the domain lookup.
HTTPS encrypts the connection to the website.
Using HTTPS without encrypted DNS may leave the lookup visible. Using DoH without HTTPS may protect the lookup while leaving the website traffic exposed.
DoH vs. DNSSEC
DoH securely transports an answer from the selected resolver. It does not guarantee that a dishonest resolver provided truthful information.
DNSSEC uses cryptographic signatures to validate supported DNS records. It is designed to detect forged or modified signed data, not to hide the query.
DoH and DNSSEC are therefore complementary rather than interchangeable.
DoH vs. DNS Over TLS
DNS over TLS, or DoT, provides similar client-to-resolver encryption but normally uses a dedicated service on TCP port 853. DoH generally uses HTTPS on port 443.
Because DoT uses a distinct port, network administrators can more easily identify, permit, or block it. DoH is less distinct from ordinary web traffic.
How DNS Over HTTPS Works With a VPN
A VPN creates an encrypted tunnel between a device and a VPN server. When DNS is correctly routed through that tunnel, the ISP usually sees the VPN connection but not the individual DNS requests inside it.
DoH specifies how a DNS message is encrypted to a resolver. A VPN determines how traffic is routed. This distinction creates several possible configurations:
The VPN sends DNS to its own resolver inside the tunnel.
The browser sends DoH through the tunnel to an external resolver.
The operating system uses a resolver selected by the VPN.
A browser-level DoH setting overrides the VPN-supplied DNS choice.
A routing or implementation problem sends DNS somewhere unintended.
Browser-level DoH does not automatically create a DNS leak. However, it can change which organization receives the queries. Instead of the VPN’s resolver, an external DoH provider may receive them.
When using both technologies, check:
Whether the VPN provides its own DNS service
Whether browser-level Secure DNS is enabled
Which resolver the browser uses
Whether DNS remains inside the intended tunnel
Whether the VPN includes DNS leak safeguards
Browser-Level vs. System-Level DoH
DoH can operate at multiple layers, and the layer matters.
Browser-Level DoH
A browser can send its own DNS queries to a selected resolver. Other applications may continue using the operating system’s DNS configuration.
Possible consequences include:
Different browsers using different resolvers
Browser queries bypassing local DNS settings
The browser taking priority over VPN-supplied DNS
Internal or filtered domains behaving differently in the browser
Firefox and Chrome both provide encrypted DNS features, although their default behavior and configuration options can differ. Firefox refers to parts of its implementation as Trusted Recursive Resolver, while Chrome commonly calls the feature Secure DNS.
Operating-System-Level DoH
An operating system can provide encrypted resolution for multiple applications that rely on its system resolver. This offers broader and more consistent coverage than a browser-only setting.
An individual application can implement DoH independently of the browser and operating system. This may provide consistent resolution, but it can also bypass approved network controls.
Router-Level Encrypted DNS
A router may accept ordinary DNS requests from local devices and use an encrypted connection to an upstream resolver.
In this arrangement:
The router can still read local DNS queries.
DNS may remain unencrypted between each device and the router.
The upstream path from the router to the resolver is encrypted.
Devices can benefit without supporting DoH themselves.
Common DNS Over HTTPS Problems
Parental Controls and DNS Filtering
A family or router may use DNS filtering to block malicious or age-restricted domains. If a browser sends queries to an unrelated external DoH resolver, the original filtering service may never receive those requests.
DoH does not inherently disable filtering. A DoH resolver can provide filtering itself. The problem arises when the selected resolver does not enforce the intended policy.
Workplace and School Networks
Organizations often use DNS for:
Blocking known malicious domains
Detecting compromised devices
Enforcing acceptable-use policies
Resolving internal services
Investigating security incidents
Unauthorized external DoH may bypass these controls. Organizations can instead provide an approved encrypted resolver so that DNS remains protected while internal resources and security policies continue to work.
The NSA recommends that enterprises direct DNS traffic to designated organizational resolvers when adopting encrypted DNS. Its guidance is available through the NSA’s encrypted DNS recommendations.
Internal Domains and Split-Horizon DNS
A company may provide different DNS answers depending on whether a user is inside or outside its network. This is known as split-horizon or split-view DNS.
Using an unrelated public DoH resolver can cause:
Internal domains to stop resolving
Public answers to appear instead of internal ones
Intranet or development services to become unavailable
Security routing to be bypassed
Captive Portals
Hotels, airports, and cafés may require visitors to open a login or terms page before gaining internet access. These captive portals sometimes depend on DNS interception.
Strict encrypted DNS can occasionally interfere with portal detection until authentication is completed.
Secure DNS Fallback
Some configurations fall back to traditional DNS when the DoH resolver cannot be reached. Others fail closed and stop resolving domains.
Mode
Advantage
Disadvantage
Fallback enabled
Better compatibility and reliability
DNS may silently become unencrypted
Fallback disabled
Stronger assurance that DNS remains encrypted
Enabling “Secure DNS” does not necessarily mean every query is always encrypted. The result depends on the browser or system’s protection mode and fallback policy.
Does DNS Over HTTPS Make Browsing Faster?
DoH is not universally faster or slower than traditional DNS.
Establishing a fresh HTTPS connection introduces TCP, TLS, and HTTP processing. However, clients can reduce this overhead by:
Reusing secure connections
Sending multiple queries over one connection
Caching DNS answers
Connecting to nearby resolver infrastructure
Using modern HTTP transport features
Actual performance depends on:
Distance to the resolver
Network routing
Resolver capacity
Cache availability
Packet loss
Congestion
Connection reuse
Security and filtering processes
A nearby, well-operated DoH resolver may perform better than an unreliable ISP resolver. A distant or overloaded DoH service may perform worse. Performance should be evaluated on the actual network rather than assumed from the protocol alone.
Should You Use DNS Over HTTPS?
For many people, DoH is a worthwhile privacy and security layer, especially when connecting through public or untrusted networks.
It can:
Encrypt DNS between a device and resolver
Reduce local DNS monitoring
Make DNS spoofing more difficult
Prevent basic interception of plaintext DNS
Provide consistent resolution across different networks
Before enabling it, determine:
Which resolver will receive your queries.
What that resolver logs and how long it retains data.
Whether your VPN already handles DNS.
Whether you rely on parental controls or protective DNS.
Whether you need access to workplace or school domains.
Whether the setting falls back to unencrypted DNS.
Whether it applies to one browser or the entire device.
DoH works best as one part of a broader privacy setup. HTTPS protects website content, careful browser settings reduce some tracking, and a properly configured VPN can provide broader encrypted routing and IP masking. None of these tools individually provides complete anonymity.
Put DNS Privacy Into a Broader Protection Strategy
DNS over HTTPS protects DNS requests, but it does not change your public IP address or encrypt all traffic between your device and the wider internet. A VPN can add an encrypted route, mask your public-facing IP address from websites, and help protect traffic across phones, tablets, and computers.
Look for safeguards designed to limit DNS and routing exposure if the connection drops or changes. You should also understand the provider’s logging practices, since a VPN shifts trust from the local network and ISP to the VPN service.
Affiliate notice: Some links may earn a commission. Thanks for your support.
Next
FAQ
Quick answers to the questions people usually ask about this topic.
Can my ISP still see which websites I visit when I use DNS over HTTPS?
DoH prevents an ISP or local network operator from directly reading the domains inside your DNS requests. However, they may still see destination IP addresses, connection timing, traffic volume, and the IP address of your DoH resolver. These details can sometimes suggest which service you are using, so DoH alone does not provide anonymous browsing.
How can I tell whether DNS over HTTPS is actually enabled?
Check the browser or operating system’s encrypted DNS settings to confirm that DoH is active and identify the selected resolver. Also review whether the setting permits fallback to traditional DNS: an automatic or fallback mode may silently use unencrypted DNS when DoH is unavailable, while a strict mode may stop resolving domains instead.
How do I choose a trustworthy DoH resolver?
Compare providers based on their logging and retention policies, jurisdiction, security record, business model, data-sharing practices, DNSSEC support, and optional filtering. Remember that DoH transfers visibility from the local network to the resolver, which can ordinarily see both your requested domain and connecting IP address. The IETF discusses these trust considerations in RFC 9076.
Does DNS over HTTPS protect every app on my device?
Not necessarily. Browser-level DoH generally protects only that browser’s DNS lookups, while other applications may continue using the operating system’s resolver. System-level DoH can provide broader coverage for applications that use the system resolver, although individual apps may still implement their own DNS behavior.
Why do internal websites or parental controls stop working after enabling DoH?
The selected external DoH resolver may bypass the local DNS service responsible for filtering or resolving private domains. This can disrupt parental controls, workplace intranets, school services, and split-horizon DNS. Using an approved encrypted resolver that supports the required filtering and internal records can preserve both encryption and network policy.
Can DNS over HTTPS be blocked by a school, employer, or public network?
Yes. Although DoH commonly uses HTTPS port 443 and is less distinct from ordinary web traffic, a network can block known resolver addresses, restrict external connections, require an approved proxy, or enforce organizational DNS policies. Enterprises may direct encrypted DNS to designated internal resolvers, as described in the NSA’s encrypted DNS recommendations.
Why might a captive portal fail when secure DNS is enabled?
Some hotel, airport, and café login pages rely on DNS interception to redirect visitors to a sign-in or terms page. Strict DoH can prevent that redirection and interfere with portal detection. Temporarily completing the network’s authentication process before restoring strict encrypted DNS may resolve the issue, provided you trust the network enough to connect.
Can DNS over HTTPS prevent a DNS leak when using a VPN?
DoH can encrypt a DNS request, but whether the request follows the intended VPN route depends on the VPN, browser, operating system, and resolver configuration. Browser-level DoH may send queries through the VPN tunnel to an external resolver or override the VPN’s preferred DNS provider. Check the VPN’s DNS settings, resolver choice, routing behavior, and leak safeguards rather than assuming that DoH alone prevents leaks.
What should I use if I want broader protection than DNS over HTTPS?
DoH protects DNS lookups but does not mask your public IP address or encrypt all device traffic. A properly configured VPN can add an encrypted route, IP masking, DNS leak safeguards, and coverage across multiple devices. As a practical next step, use NordVPN to apply these protections to everyday connections while keeping DoH’s limits in perspective.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn privacy knowledge into everyday protection
The series explains online privacy. NordVPN helps you put it into practice with encrypted connections, IP masking, and apps for everyday devices. Reduce network-level exposure without building your own setup. It’s an added privacy layer, not complete anonymity or a replacement for safer browsing habits.
🔒Encrypted connectionsHelp shield VPN-routed traffic from observers on shared Wi-Fi.
👁Less ISP visibilityLimit what your provider can see about browsing carried through the VPN.
🎭Masked public IPShow websites the VPN server’s address instead of your own.
📱Privacy across devicesPut connection-level protection to work on your phone and computer.