{"id":3872,"date":"2025-12-31T23:59:46","date_gmt":"2025-12-31T20:59:46","guid":{"rendered":"https:\/\/www.dchost.com\/blog\/what-is-dns-over-https-doh-and-dns-over-tls-dot\/"},"modified":"2026-11-04T23:52:53","modified_gmt":"2026-11-04T20:52:53","slug":"what-is-dns-over-https-doh-and-dns-over-tls-dot","status":"publish","type":"post","link":"https:\/\/www.dchost.com\/blog\/en\/what-is-dns-over-https-doh-and-dns-over-tls-dot\/","title":{"rendered":"What Are DNS over HTTPS (DoH) and DNS over TLS (DoT)?"},"content":{"rendered":"<div class=\"dchost-blog-content-wrapper\"><p>DNS is one of those pieces of internet plumbing that usually \u201cjust works\u201d until you start looking closely at privacy, security and compliance. Then you realise something uncomfortable: classic DNS queries are sent in clear text, exposing the hostnames in those queries to observers who can inspect that traffic. Over the last few years, DNS over HTTPS (DoH) and DNS over TLS (DoT) have emerged to fix exactly this problem by encrypting DNS traffic in transit. For hosting teams, developers and IT managers, this is not an abstract browser feature; it directly affects how you debug DNS, design network policies and plan your hosting infrastructure.<\/p>\n<p>In this article, we will unpack what DoH and DoT actually are, how they differ from each other and from DNSSEC, what privacy and security gains they bring, and where their limits are. We will also look at their impact on hosting environments: shared hosting, <a href=\"https:\/\/www.dchost.com\/vps\">VPS<\/a>, <a href=\"https:\/\/www.dchost.com\/dedicated-server\">dedicated server<\/a>s and colocation. As dchost.com, we will keep the focus on real-world implications you will feel in your daily operations: logging, monitoring, troubleshooting, corporate policies and customer support.<\/p>\n<div id=\"toc_container\" role=\"navigation\" aria-label=\"Table of Contents\" data-nosnippet class=\"toc_transparent no_bullets toc_numbered toc_title_center\"><p class=\"toc_title\">\u0130\u00e7indekiler<\/p><ul class=\"toc_list\"><li><a href=\"#Classic_DNS_in_Plain_Text_The_Problem_DoH_and_DoT_Try_to_Solve\"><span class=\"toc_number toc_depth_1\">1.<\/span> Classic DNS in Plain Text: The Problem DoH and DoT Try to Solve<\/a><\/li><li><a href=\"#What_Is_DNS_over_HTTPS_DoH\"><span class=\"toc_number toc_depth_1\">2.<\/span> What Is DNS over HTTPS (DoH)?<\/a><ul><li><a href=\"#Why_Browsers_Love_DoH\"><span class=\"toc_number toc_depth_2\">2.1.<\/span> Why Browsers Love DoH<\/a><\/li><li><a href=\"#DoH_from_a_Hosting_Perspective\"><span class=\"toc_number toc_depth_2\">2.2.<\/span> DoH from a Hosting Perspective<\/a><\/li><\/ul><\/li><li><a href=\"#What_Is_DNS_over_TLS_DoT\"><span class=\"toc_number toc_depth_1\">3.<\/span> What Is DNS over TLS (DoT)?<\/a><\/li><li><a href=\"#DoH_vs_DoT_Key_Differences_and_Trade-Offs\"><span class=\"toc_number toc_depth_1\">4.<\/span> DoH vs DoT: Key Differences and Trade-Offs<\/a><\/li><li><a href=\"#How_DoHDoT_Compare_to_DNSSEC_and_Other_Security_Measures\"><span class=\"toc_number toc_depth_1\">5.<\/span> How DoH\/DoT Compare to DNSSEC and Other Security Measures<\/a><\/li><li><a href=\"#Privacy_and_Security_Benefits_in_Real_Life\"><span class=\"toc_number toc_depth_1\">6.<\/span> Privacy and Security Benefits in Real Life<\/a><ul><li><a href=\"#What_Encrypted_DNS_Hides_from_On-Path_Observers\"><span class=\"toc_number toc_depth_2\">6.1.<\/span> What Encrypted DNS Hides from On-Path Observers<\/a><\/li><li><a href=\"#What_Stays_the_Same_Limits_of_DoHDoT\"><span class=\"toc_number toc_depth_2\">6.2.<\/span> What Stays the Same (Limits of DoH\/DoT)<\/a><\/li><\/ul><\/li><li><a href=\"#Impact_on_Hosting_Infrastructure\"><span class=\"toc_number toc_depth_1\">7.<\/span> Impact on Hosting Infrastructure<\/a><ul><li><a href=\"#Authoritative_DNS_Almost_Business_as_Usual\"><span class=\"toc_number toc_depth_2\">7.1.<\/span> Authoritative DNS: Almost Business as Usual<\/a><\/li><li><a href=\"#Recursive_Resolvers_on_VPSDedicated_Servers\"><span class=\"toc_number toc_depth_2\">7.2.<\/span> Recursive Resolvers on VPS\/Dedicated Servers<\/a><\/li><li><a href=\"#Monitoring_Logging_and_Compliance\"><span class=\"toc_number toc_depth_2\">7.3.<\/span> Monitoring, Logging and Compliance<\/a><\/li><li><a href=\"#Network_Policies_and_Firewalls\"><span class=\"toc_number toc_depth_2\">7.4.<\/span> Network Policies and Firewalls<\/a><\/li><li><a href=\"#DNS_Troubleshooting_Gets_a_New_Twist\"><span class=\"toc_number toc_depth_2\">7.5.<\/span> DNS Troubleshooting Gets a New Twist<\/a><\/li><li><a href=\"#DNS_Strategy_Registrar_DNS_Hosting_DNS_Cloud_DNS\"><span class=\"toc_number toc_depth_2\">7.6.<\/span> DNS Strategy: Registrar DNS, Hosting DNS, Cloud DNS<\/a><\/li><\/ul><\/li><li><a href=\"#DoHDoT_for_Website_Owners_What_You_Should_Actually_Do\"><span class=\"toc_number toc_depth_1\">8.<\/span> DoH\/DoT for Website Owners: What You Should Actually Do<\/a><ul><li><a href=\"#1_Understand_That_Visitors_May_Already_Use_Encrypted_DNS\"><span class=\"toc_number toc_depth_2\">8.1.<\/span> 1. Understand That Visitors May Already Use Encrypted DNS<\/a><\/li><li><a href=\"#2_Enable_DNSSEC_and_Keep_Your_Zone_Healthy\"><span class=\"toc_number toc_depth_2\">8.2.<\/span> 2. Enable DNSSEC and Keep Your Zone Healthy<\/a><\/li><li><a href=\"#3_Harden_the_Rest_of_the_Stack_TLS_and_HTTP_Security_Headers\"><span class=\"toc_number toc_depth_2\">8.3.<\/span> 3. Harden the Rest of the Stack: TLS and HTTP Security Headers<\/a><\/li><li><a href=\"#4_For_Advanced_Teams_Consider_Internal_DoTDoH_Architecture\"><span class=\"toc_number toc_depth_2\">8.4.<\/span> 4. For Advanced Teams: Consider Internal DoT\/DoH Architecture<\/a><\/li><\/ul><\/li><li><a href=\"#Summary_and_Hosting_Planning\"><span class=\"toc_number toc_depth_1\">9.<\/span> Summary and Hosting Planning<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Classic_DNS_in_Plain_Text_The_Problem_DoH_and_DoT_Try_to_Solve\">Classic DNS in Plain Text: The Problem DoH and DoT Try to Solve<\/span><\/h2>\n<p>Before talking about encryption, it helps to quickly revisit how traditional DNS works. When a browser or server wants to reach <code>example.com<\/code>, it performs a DNS query. Typically this looks like:<\/p>\n<ul>\n<li>Your device asks the configured resolver (often your ISP, a local resolver on your network, or a resolver run by your hosting provider).<\/li>\n<li>If the answer is not cached, that resolver queries the DNS hierarchy as needed: root servers \u2192 TLD servers \u2192 authoritative nameservers for the domain, or forwards the query to an upstream resolver.<\/li>\n<li>The resolver returns the final IP address to your device and often caches it for a while.<\/li>\n<\/ul>\n<p>In classic DNS, these queries and responses travel mostly over UDP or TCP on port 53, in clear text. An observer able to inspect that traffic \u2013 such as a network administrator, your ISP, or an attacker who can tap the connection \u2013 can see which domain names are being looked up. Those queries do not directly reveal what you do on an HTTPS site, and they are not a definitive browsing history: applications and background activity also trigger lookups. They do reveal the queried hostnames and query times.<\/p>\n<p>On top of that, unauthenticated DNS is susceptible to spoofing and manipulation. That is where technologies like DNSSEC enter the picture, providing authenticity and integrity for DNS data. If you are not yet familiar with it, we have a separate deep dive on <a href=\"https:\/\/www.dchost.com\/blog\/en\/what-is-dnssec-and-when-should-you-enable-it-a-practical-setup-guide\/\">what DNSSEC is and when you should enable it<\/a>. DoH and DoT address a different (but related) problem: confidentiality of DNS traffic in transit.<\/p>\n<h2><span id=\"What_Is_DNS_over_HTTPS_DoH\">What Is DNS over HTTPS (DoH)?<\/span><\/h2>\n<p><strong>DNS over HTTPS (DoH)<\/strong> is a protocol that sends DNS queries over standard HTTPS (usually port 443), instead of plain UDP\/TCP on port 53. In simple terms, your DNS lookups are wrapped inside normal HTTPS requests to a DoH server.<\/p>\n<p>At a high level, the flow looks like this:<\/p>\n<ol>\n<li>Your browser or operating system is configured to use a DoH resolver.<\/li>\n<li>When it needs to resolve a hostname, it creates an HTTPS request to the resolver\u2019s URL (for example, <code>https:\/\/resolver.example.net\/dns-query<\/code>).<\/li>\n<li>The DNS question is encoded inside that HTTPS request, often using the DNS wire format and the <code>application\/dns-message<\/code> content type.<\/li>\n<li>The DoH resolver processes the request, performs the recursive DNS resolution if needed, and sends the answer back inside the HTTPS response.<\/li>\n<li>Your browser\/OS decodes the DNS message and uses the IP address as usual.<\/li>\n<\/ol>\n<p>Because everything rides on HTTPS:<\/p>\n<ul>\n<li>The DNS query and response are <strong>encrypted<\/strong> in transit using TLS.<\/li>\n<li>To the network, DoH traffic looks like any other HTTPS request to that resolver host.<\/li>\n<li>Without access to the TLS plaintext, middleboxes, ISPs or Wi\u2011Fi hotspots cannot directly read the queried hostnames from DoH messages. They can still observe the resolver endpoint, traffic timing and volume.<\/li>\n<\/ul>\n<h3><span id=\"Why_Browsers_Love_DoH\">Why Browsers Love DoH<\/span><\/h3>\n<p>DoH became widely known because major browsers introduced support for it and in some cases enabled it by default with specific resolvers. From the user\u2019s perspective, this has a few benefits:<\/p>\n<ul>\n<li><strong>Privacy from local networks:<\/strong> Administrators of coffee shop Wi\u2011Fi, hotels or even some corporate networks can no longer trivially inspect DNS queries in clear text.<\/li>\n<li><strong>Resistance to basic DNS injection:<\/strong> Simple on-path manipulation of port 53 traffic (to inject ads, block certain domains, etc.) is much harder when queries are encrypted inside HTTPS.<\/li>\n<li><strong>Shared security model:<\/strong> DoH uses HTTPS and certificate validation, like HTTPS web content, but the connection to the DNS resolver is distinct from the connection to the website.<\/li>\n<\/ul>\n<p>However, this design also has consequences. Network administrators lose some visibility and control they used to have at the DNS level. For example, internal DNS-based filters, family-safe resolvers or split-horizon setups can be bypassed if an application hardcodes its own DoH resolver.<\/p>\n<h3><span id=\"DoH_from_a_Hosting_Perspective\">DoH from a Hosting Perspective<\/span><\/h3>\n<p>From the point of view of your website and your hosting infrastructure at dchost.com, DoH has two important characteristics:<\/p>\n<ul>\n<li><strong>Authoritative DNS is not directly changed.<\/strong> Your domain\u2019s authoritative nameservers still receive standard DNS queries over UDP\/TCP; the DoH part happens between the client and their chosen resolver.<\/li>\n<li><strong>Client behaviour may differ.<\/strong> If a browser or system uses a remote DoH resolver instead of the local resolver you control, some of your assumptions about DNS-based controls, logging and troubleshooting change.<\/li>\n<\/ul>\n<p>This means you do not need to rewrite your DNS zone files to &#8220;support DoH&#8221;. But you should understand that many of your visitors\u2019 queries might reach your nameservers via large public resolvers that terminate DoH\/DoT, rather than via ISP resolvers or your own recursive infrastructure.<\/p>\n<h2><span id=\"What_Is_DNS_over_TLS_DoT\">What Is DNS over TLS (DoT)?<\/span><\/h2>\n<p><strong>DNS over TLS (DoT)<\/strong> is another standard for encrypting DNS queries, but instead of hiding them inside HTTPS, it places DNS messages inside a dedicated TLS tunnel, usually on port 853.<\/p>\n<p>Conceptually, the steps look like this:<\/p>\n<ol>\n<li>The client (your OS, a DNS forwarder, or a recursive resolver) initiates a TLS handshake to the DoT server (resolver) on port 853.<\/li>\n<li>Once the TLS session is established, the client sends classic DNS messages inside that encrypted channel.<\/li>\n<li>The DoT server resolves the queries and sends responses back over the same TLS connection.<\/li>\n<\/ol>\n<p>Key points about DoT:<\/p>\n<ul>\n<li>It <strong>keeps DNS as DNS<\/strong>, only wrapped in TLS; there is no HTTP layer.<\/li>\n<li>It uses a <strong>dedicated port (853)<\/strong>, which makes it easy to identify and filter at the network level if desired.<\/li>\n<li>It is often used between devices and resolvers, and between resolvers themselves (for example, a forwarding resolver talking to an upstream), rather than directly inside user applications.<\/li>\n<\/ul>\n<p>DoT is particularly attractive in infrastructure and ISP environments: you want encrypted DNS, but you also want clear separation from web traffic and predictable behaviour for firewalls and monitoring tools.<\/p>\n<h2><span id=\"DoH_vs_DoT_Key_Differences_and_Trade-Offs\">DoH vs DoT: Key Differences and Trade-Offs<\/span><\/h2>\n<p>Both DoH and DoT encrypt DNS queries with TLS. The most important differences are in integration, network behaviour and operational control.<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Aspect<\/th>\n<th>DNS over HTTPS (DoH)<\/th>\n<th>DNS over TLS (DoT)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Transport protocol<\/td>\n<td>HTTPS (HTTP\/2 or HTTP\/3) over TLS<\/td>\n<td>Raw DNS messages over TLS<\/td>\n<\/tr>\n<tr>\n<td>Default port<\/td>\n<td>443 (same as normal HTTPS)<\/td>\n<td>853 (dedicated to DoT)<\/td>\n<\/tr>\n<tr>\n<td>Visibility to networks<\/td>\n<td>Looks like generic web traffic; hard to distinguish from other HTTPS<\/td>\n<td>Usually identifiable by port 853; that port can be allowed\/blocked explicitly, but DNS message contents remain encrypted<\/td>\n<\/tr>\n<tr>\n<td>Typical clients<\/td>\n<td>Browsers and applications; some OSes<\/td>\n<td>Operating systems, routers, recursive resolvers<\/td>\n<\/tr>\n<tr>\n<td>Policy control<\/td>\n<td>Harder for network admins to centrally control when apps hardcode resolvers<\/td>\n<td>Easier to enforce at network level via firewalls and resolver configuration<\/td>\n<\/tr>\n<tr>\n<td>Operational simplicity<\/td>\n<td>Requires HTTP stack; more complex but reuses web infrastructure<\/td>\n<td>Simpler protocol; fits naturally into existing DNS stacks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In practice, many organisations use a mix: DoT between internal resolvers and upstream providers, and DoH primarily on end-user devices or where HTTP-based integration is convenient.<\/p>\n<h2><span id=\"How_DoHDoT_Compare_to_DNSSEC_and_Other_Security_Measures\">How DoH\/DoT Compare to DNSSEC and Other Security Measures<\/span><\/h2>\n<p>DoH\/DoT do not replace DNSSEC. They solve different parts of the problem.<\/p>\n<ul>\n<li><strong>DoH\/DoT:<\/strong> Encrypt DNS traffic in transit so that on-path observers cannot easily see or modify queries and responses.<\/li>\n<li><strong>DNSSEC:<\/strong> Cryptographically signs DNS records so that the client can verify that the data came from the legitimate authoritative source and was not tampered with, even if the transport path was not trusted.<\/li>\n<\/ul>\n<p>You can (and often should) use both together. A realistic layered approach looks like this:<\/p>\n<ul>\n<li>Run DNSSEC for your domains so that resolvers can validate the authenticity of your DNS data.<\/li>\n<li>Use DoT or DoH between clients and supporting resolvers, and when forwarding queries to supporting upstream resolvers, to protect those connections against passive monitoring and response injection.<\/li>\n<li>Harden your web stack with modern TLS and HTTP security headers such as HSTS, CSP and X-Frame-Options. Browse our <a href=\"https:\/\/www.dchost.com\/blog\/\">blog<\/a> for related security guidance.<\/li>\n<\/ul>\n<p>Even with DoH\/DoT, a malicious or misconfigured resolver can still lie to clients. For signed zones with a valid chain of trust, DNSSEC validation can detect forged data. To protect against a malicious resolver, clients must validate independently rather than trust that resolver\u2019s validation claim. DNSSEC does not encrypt queries; DoH\/DoT hide their contents from on-path observers on the encrypted connection, but do not eliminate connection metadata.<\/p>\n<h2><span id=\"Privacy_and_Security_Benefits_in_Real_Life\">Privacy and Security Benefits in Real Life<\/span><\/h2>\n<p>Let\u2019s move beyond theory and look at what changes when you adopt DoH\/DoT, either as a user, as an organisation, or inside your hosting environment.<\/p>\n<h3><span id=\"What_Encrypted_DNS_Hides_from_On-Path_Observers\">What Encrypted DNS Hides from On-Path Observers<\/span><\/h3>\n<p>On an unencrypted DNS path, an observer or active attacker can:<\/p>\n<ul>\n<li>See the hostnames in queries sent over that path in clear text.<\/li>\n<li>Correlate timestamps and IPs to build a detailed browsing profile.<\/li>\n<li>Inject fake responses or block lookups for certain hostnames.<\/li>\n<\/ul>\n<p>With DoH or DoT in place between the client and resolver:<\/p>\n<ul>\n<li>The hostname being resolved is <strong>encrypted<\/strong> inside the TLS tunnel.<\/li>\n<li>Observers can see the resolver\u2019s IP address, traffic timing and sizes, but cannot directly read the queried names from the encrypted payload. Other traffic may still reveal or help infer destinations.<\/li>\n<li>With certificate validation and no fallback to plain-text DNS, port-53 response injection cannot alter queries carried over DoH\/DoT. This does not protect against a compromised client, resolver or TLS trust configuration.<\/li>\n<\/ul>\n<p>This is especially valuable on untrusted networks (public Wi\u2011Fi, hotels, conferences) and in environments where DNS is used for censorship or traffic shaping.<\/p>\n<h3><span id=\"What_Stays_the_Same_Limits_of_DoHDoT\">What Stays the Same (Limits of DoH\/DoT)<\/span><\/h3>\n<p>There are also things DoH and DoT do <strong>not<\/strong> fix:<\/p>\n<ul>\n<li><strong>Your resolver still sees the queries you send it.<\/strong> The DoH\/DoT operator can log those queries. Encrypting the network path does not remove the need to trust the resolver.<\/li>\n<li><strong>IP-based metadata remains.<\/strong> Even if DNS is encrypted, observers can still see which IP addresses you connect to. For some services, this alone reveals a lot.<\/li>\n<li><strong>DNS authenticity is separate.<\/strong> A compromised or malicious resolver can forge answers. Independent DNSSEC validation can detect forged signed data, but trusting that resolver\u2019s validation claim is not enough.<\/li>\n<li><strong>Application-level tracking is unchanged.<\/strong> Cookies, browser fingerprints and other web tracking mechanisms are not touched by DoH\/DoT.<\/li>\n<\/ul>\n<p>From a compliance perspective (GDPR, KVKK and similar regulations), DoH\/DoT are only one piece of the privacy puzzle. The way you store and anonymise logs on your servers still matters a lot. For that side, we recommend reviewing our article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/log-anonymization-ip-masking\/\">log anonymisation and IP masking techniques for KVKK\/GDPR\u2011compliant hosting logs<\/a>.<\/p>\n<h2><span id=\"Impact_on_Hosting_Infrastructure\">Impact on Hosting Infrastructure<\/span><\/h2>\n<p>DoH\/DoT affect several hosting environments: shared hosting, VPS, dedicated servers and colocation.<\/p>\n<h3><span id=\"Authoritative_DNS_Almost_Business_as_Usual\">Authoritative DNS: Almost Business as Usual<\/span><\/h3>\n<p>Your zone files and authoritative DNS configuration do not need to change just because clients start using DoH\/DoT. Client-side DoH\/DoT encrypts the connection between the <em>client and their resolver<\/em>; it does not by itself encrypt the resolver\u2019s connections to authoritative nameservers.<\/p>\n<p>The main differences you might notice over time are:<\/p>\n<ul>\n<li><strong>Changing resolver mix:<\/strong> More queries might come from large public resolvers that provide DoH\/DoT to end users, rather than from ISP resolvers.<\/li>\n<li><strong>Different resolver behaviour:<\/strong> Cache policies can affect when changed records become visible. QNAME minimisation changes which query names authoritative servers see, while ECS (EDNS Client Subnet) can affect location-dependent answers and cache variants. These are resolver choices, not effects of DoH\/DoT itself; TTLs still govern normal cache lifetimes.<\/li>\n<\/ul>\n<p>If you need a refresher on how DNS records, TTLs and gotchas work, our article <a href=\"https:\/\/www.dchost.com\/blog\/en\/common-dns-record-mistakes\/\">DNS records explained like a friend<\/a> is a good companion to this piece.<\/p>\n<h3><span id=\"Recursive_Resolvers_on_VPSDedicated_Servers\">Recursive Resolvers on VPS\/Dedicated Servers<\/span><\/h3>\n<p>An organisation can run its own recursive resolvers on VPS or dedicated servers \u2013 for example, a local Unbound or BIND instance used by multiple application servers in a private network. Here, DoT and DoH become active design choices:<\/p>\n<ul>\n<li><strong>Upstream encryption:<\/strong> With supporting resolver software, you can forward queries to an upstream resolver over DoT, encrypting that connection. This does not automatically encrypt the upstream resolver\u2019s subsequent queries.<\/li>\n<li><strong>Internal DoT for clients:<\/strong> You can expose DoT on a supporting resolver so that internal clients (office networks, other servers, containers) use encrypted DNS within your infrastructure. Restrict recursive access to authorised clients rather than exposing an unrestricted public resolver.<\/li>\n<li><strong>DoH gateways:<\/strong> In some architectures, you might deploy a DoH endpoint that forwards requests to an internal resolver. This lets browsers and applications talk HTTPS while you keep DNS logic under your control.<\/li>\n<\/ul>\n<p>For a self-managed deployment, verify that the chosen plan provides the administrative access, firewall controls and permitted network connectivity needed for your DNS architecture.<\/p>\n<h3><span id=\"Monitoring_Logging_and_Compliance\">Monitoring, Logging and Compliance<\/span><\/h3>\n<p>When you start encrypting DNS inside your network with DoT\/DoH, the place where you can observe and log DNS queries shifts towards your resolvers. For hosting teams, that means:<\/p>\n<ul>\n<li><strong>Less visibility on raw network taps:<\/strong> Packet captures on intermediate switches and firewalls no longer show DNS payloads; you see only TLS sessions.<\/li>\n<li><strong>More importance for resolver logs:<\/strong> If you need DNS query logs for debugging, analytics or security, collect them at a point where queries are decrypted, such as the resolver, client or DoH gateway (and handle them carefully for privacy and regulatory reasons).<\/li>\n<li><strong>Careful data retention:<\/strong> Encrypted DNS is good for privacy on the wire, but if you log every query with full IPs and hostnames, you may create a more sensitive dataset. That ties back to the log anonymisation practices mentioned earlier.<\/li>\n<\/ul>\n<p>DNS-log access and retention controls depend on who operates the resolver and on the hosting arrangement. Establish who collects the logs, who can access them and how long they are retained, and align those choices with your organisation\u2019s KVKK\/GDPR obligations.<\/p>\n<h3><span id=\"Network_Policies_and_Firewalls\">Network Policies and Firewalls<\/span><\/h3>\n<p>From a network-security point of view, DoH and DoT change how you enforce DNS-related policies:<\/p>\n<ul>\n<li><strong>With DoT:<\/strong> You can allow outbound TCP\/853 only to your chosen resolvers and block the rest. This restricts DoT on its standard port, but does not force all DNS through those resolvers: plain-text DNS, DoH and other paths require separate controls and client policy.<\/li>\n<li><strong>With DoH:<\/strong> It becomes harder to distinguish DNS traffic from generic HTTPS on port 443. You may need more advanced firewall rules (SNI-based, IP-based, or using TLS inspection where legally and ethically appropriate) if you want to block unauthorised DoH endpoints.<\/li>\n<li><strong>For servers in data centres:<\/strong> Many organisations simply restrict all outbound access from production servers and explicitly allow only specific resolvers and service endpoints. In such setups, controlling DoT is straightforward; controlling DoH requires tighter egress rules on HTTPS traffic.<\/li>\n<\/ul>\n<p>On a VPS or dedicated server with sufficient administrative privileges, you can implement host-level egress restrictions in your firewall (for example using <code>ufw<\/code>, <code>firewalld<\/code>, <code>iptables<\/code> or <code>nftables<\/code>), as covered in our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/vps-firewall-configuration\/\">firewall configuration on VPS servers<\/a>.<\/p>\n<h3><span id=\"DNS_Troubleshooting_Gets_a_New_Twist\">DNS Troubleshooting Gets a New Twist<\/span><\/h3>\n<p>DoH and DoT also change how you troubleshoot DNS issues when something does not resolve as expected.<\/p>\n<p>Consider these hypothetical troubleshooting scenarios:<\/p>\n<ul>\n<li>You change a DNS record and flush the system resolver\u2019s cache, but your browser still resolves the old IP. The browser could be using DoH with a different resolver, or retaining an answer in its own DNS cache.<\/li>\n<li>A corporate network uses an internal-only zone under a domain it controls, illustrated here as <code>internal.example.com<\/code> (<code>example.com<\/code> is reserved for documentation). Users whose browsers query a public DoH resolver may fail to resolve private names in that zone because the resolver lacks the internal DNS view. This example avoids <code>.local<\/code>, which has special multicast DNS semantics and can cause a separate resolution problem.<\/li>\n<li>From your VPS, <code>dig<\/code> shows the correct DNS answer, but a user\u2019s laptop does not. The difference is that your VPS queries your hosting resolver directly, while the laptop goes through an external DoH resolver that has not yet refreshed its cache.<\/li>\n<\/ul>\n<p>When debugging DNS today, always ask:<\/p>\n<ul>\n<li>Which resolver is the client actually using?<\/li>\n<li>Is that resolver reached over classic DNS, DoT or DoH?<\/li>\n<li>Does that resolver see the same data as your authoritative nameservers?<\/li>\n<\/ul>\n<p>Our detailed guides on DNS behaviour, such as <a href=\"https:\/\/www.dchost.com\/blog\/en\/dns-propagation-timing-ttl-and-checks\/\">why DNS propagation can take time and how to speed it up<\/a>, and our troubleshooting article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/website-not-resolving-fix-dns-probe-finished-nxdomain-and-common-dns-errors-step-by-step\/\">fixing DNS_PROBE_FINISHED_NXDOMAIN and other DNS errors<\/a>, become even more relevant in a world where multiple resolvers and protocols coexist.<\/p>\n<h3><span id=\"DNS_Strategy_Registrar_DNS_Hosting_DNS_Cloud_DNS\">DNS Strategy: Registrar DNS, Hosting DNS, Cloud DNS<\/span><\/h3>\n<p>DoH and DoT do not determine where to host your authoritative DNS: a registrar, hosting provider or specialised DNS platform. That choice is separate from choosing recursive resolvers for your devices and applications. Operating your own resolvers can give you more visibility and policy control for clients configured to use them; it does not control which resolvers visitors use to look up your website.<\/p>\n<p>If you are considering how to design that stack, our article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/cloudflare-dns-vs-hosting-dns-how-to-choose-the-best-nameserver-strategy\/\">Cloudflare DNS vs hosting DNS and nameserver strategy<\/a> covers the trade-offs between registrar DNS, hosting DNS and third-party DNS providers, and how they fit together.<\/p>\n<h2><span id=\"DoHDoT_for_Website_Owners_What_You_Should_Actually_Do\">DoH\/DoT for Website Owners: What You Should Actually Do<\/span><\/h2>\n<p>Most website owners and teams hosting with dchost.com do not need to roll out their own DoH\/DoT infrastructure from day one. But there are several practical steps that make sense in 2025 and beyond.<\/p>\n<h3><span id=\"1_Understand_That_Visitors_May_Already_Use_Encrypted_DNS\">1. Understand That Visitors May Already Use Encrypted DNS<\/span><\/h3>\n<p>Modern browsers and operating systems offer encrypted DNS options, though availability and defaults vary by product, configuration and network policy. Visitors may therefore use DoH or DoT to reach their resolver without any change to your website. This protects that DNS transport leg, not necessarily the resolver\u2019s onward queries.<\/p>\n<p>Keep the resolver choice in mind when troubleshooting and interpreting DNS logs. A client asks its resolver for an address; the resolver may answer from cache or query authoritative DNS. The client then connects to the web server separately. DoH\/DoT change the DNS transport, not this separation between name resolution and web traffic.<\/p>\n<h3><span id=\"2_Enable_DNSSEC_and_Keep_Your_Zone_Healthy\">2. Enable DNSSEC and Keep Your Zone Healthy<\/span><\/h3>\n<p>DoH\/DoT protect transport to a resolver; DNSSEC provides a separate way to validate signed DNS data. Signing your zones and maintaining a valid chain of trust lets validating resolvers or clients detect forged data. A client relying solely on a compromised resolver\u2019s validation is not protected from that resolver\u2019s lies; protection against it requires independent validation by the client or another trusted component.<\/p>\n<p>Before enabling DNSSEC, confirm that your DNS provider supports zone signing and your registrar supports publishing the required DS record for your TLD. The setup details depend on both providers; the high-level process and operational tips are covered in our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/what-is-dnssec-and-when-should-you-enable-it-a-practical-setup-guide\/\">DNSSEC deployment for domains and hosting<\/a>.<\/p>\n<h3><span id=\"3_Harden_the_Rest_of_the_Stack_TLS_and_HTTP_Security_Headers\">3. Harden the Rest of the Stack: TLS and HTTP Security Headers<\/span><\/h3>\n<p>Encrypted DNS is only one part of end-to-end security. Once the DNS lookup completes, your visitors still need:<\/p>\n<ul>\n<li>Strong TLS configuration (TLS 1.2\/1.3, modern ciphers, proper certificate management).<\/li>\n<li>Secure cookies, HSTS, CSP and other HTTP security headers.<\/li>\n<li>Application-level protections against XSS, SQL injection and other web vulnerabilities.<\/li>\n<\/ul>\n<p>Review HTTP security headers alongside TLS settings on your web server. For related server-side guidance, browse the <a href=\"https:\/\/www.dchost.com\/blog\/\">DCHost blog<\/a>.<\/p>\n<h3><span id=\"4_For_Advanced_Teams_Consider_Internal_DoTDoH_Architecture\">4. For Advanced Teams: Consider Internal DoT\/DoH Architecture<\/span><\/h3>\n<p>If you are running multi-server environments (for example, multiple VPS, application clusters or a colocation rack), you may want to:<\/p>\n<ul>\n<li>Deploy an internal recursive resolver that speaks DoT to upstream providers.<\/li>\n<li>Expose DoT to your internal servers and configure their DNS clients to use it, centralising and encrypting those client-to-resolver queries.<\/li>\n<li>Optionally provide a DoH endpoint for internal applications that expect HTTPS-based DNS.<\/li>\n<\/ul>\n<p>This kind of architecture requires sufficient OS and firewall control, whether on a VPS, a dedicated server or colocated hardware. It can also be integrated with central logging and SIEM solutions, while respecting privacy through careful log minimisation.<\/p>\n<h2><span id=\"Summary_and_Hosting_Planning\">Summary and Hosting Planning<\/span><\/h2>\n<p>DNS over HTTPS (DoH) and DNS over TLS (DoT) are not future proposals anymore; they are actively used by browsers, operating systems and resolvers. They encrypt DNS queries on the connection between the client and its chosen resolver, protecting that leg from passive inspection and tampering when TLS authentication is enforced. The resolver still sees the queries, and its onward DNS traffic is not automatically encrypted. At the same time, they do not replace other mechanisms like DNSSEC, TLS or HTTP security headers; they sit alongside them as part of a layered security model.<\/p>\n<p>For you as a site owner, developer or infrastructure engineer, the key shifts are in understanding where DNS queries flow, which resolvers are involved, and how that affects logging, compliance and troubleshooting. Your authoritative DNS zones, web server configuration and <a href=\"https:\/\/www.dchost.com\/ssl\">SSL certificate<\/a>s still need the same care as before, but the network between users and resolvers becomes less transparent and more privacy-preserving.<\/p>\n<p>When planning hosting, distinguish a website\u2019s authoritative DNS needs from any recursive resolver you intend to operate. For the latter, evaluate OS access, firewall control, certificate renewal, monitoring and support responsibilities for the chosen plan. Include DoH\/DoT in your DNS and TLS roadmap where they address a concrete client-privacy or internal-network requirement.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>DoH and DoT encrypt DNS connections, not the entire resolution path. Explore their differences, how DNSSEC complements them, and what hosting teams should consider for resolver policies and monitoring.<\/p>\n","protected":false},"author":1,"featured_media":13241,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-3872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/comments?post=3872"}],"version-history":[{"count":6,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3872\/revisions"}],"predecessor-version":[{"id":13243,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/3872\/revisions\/13243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media\/13241"}],"wp:attachment":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media?parent=3872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/categories?post=3872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/tags?post=3872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}