Saltar al contenido principal

DNS Over HTTPS (DoH): Implicaciones para el filtrado de WiFi público

Esta guía de referencia técnica explica cómo DNS over HTTPS (DoH) elude el filtrado de contenido tradicional del puerto 53 en redes WiFi públicas. Proporciona estrategias de mitigación prácticas y neutrales para arquitectos de red y gerentes de TI, con el fin de recuperar la visibilidad, garantizar el cumplimiento y proteger el acceso de invitados en entornos empresariales.

📖 6 min de lectura📝 1,392 palabras🔧 2 ejemplos prácticos3 preguntas de práctica📚 8 definiciones clave

Escuchar esta guía

Ver transcripción del podcast
Welcome to the Purple Technical Briefing. I'm your host for today's session, and we're going to spend the next ten minutes on a topic that's quietly undermining content filtering policies across thousands of public WiFi deployments right now — DNS over HTTPS, or DoH. If you're running guest WiFi at a hotel, a retail estate, a stadium, or a public sector facility, and you haven't specifically addressed DoH in your network architecture, there's a reasonable chance your filtering policy has a significant gap in it. Let's work through exactly what that gap is, why it matters, and what you can do about it. Section one — context and the problem statement. Let's start with a quick recap of how traditional DNS filtering works, because understanding the bypass mechanism requires understanding what's being bypassed. When a guest device connects to your WiFi and tries to visit a website, the first thing it does is send a DNS query — essentially asking what's the IP address for this domain? That query travels over UDP or TCP on port 53. Your network infrastructure intercepts that query, routes it to your chosen DNS resolver, and that resolver checks the domain against your filtering policy. If the domain is on a blocklist — malware, adult content, gambling, whatever your acceptable use policy specifies — the resolver refuses to return the IP address, and the connection never happens. This is the foundation of every DNS-based content filtering deployment. It's cost-effective, it doesn't impact throughput, and it's been the standard approach for venue operators for the better part of a decade. DNS over HTTPS breaks this model. Here's how. DoH wraps DNS queries inside standard HTTPS traffic on port 443. From your network's perspective, it looks identical to any other encrypted web traffic. There's no way to distinguish a DoH query from a user loading a webpage, streaming a video, or accessing a banking app. The query goes directly to an external DoH resolver — Google's 8.8.8.8, Cloudflare's 1.1.1.1, or any number of others — over an encrypted channel that your DNS filter cannot inspect. The result? Your carefully configured DNS filtering policy is completely bypassed. The device resolves the domain directly, without your resolver ever seeing the query. Now, this isn't a deliberate attack by your guests. In most cases, it's entirely passive. Firefox has had DoH enabled by default since 2020. Chrome auto-upgrades DNS queries to DoH if the configured resolver supports it. Android 9 and above supports Private DNS with DNS over TLS by default. iOS has supported DoH configuration profiles since iOS 14. These are mainstream consumer devices doing what their manufacturers intended. Your guests aren't trying to bypass your filtering. Their devices are just doing it automatically. Section two — the technical deep dive. Let's get into the mechanics. There are two primary DoH implementation patterns you'll encounter in the field. The first is application-level DoH, where the application — typically a browser — maintains its own DoH configuration independently of the operating system's DNS settings. Firefox is the canonical example. When Firefox is installed and DoH is enabled, it ignores the system DNS resolver entirely and sends all its DNS queries to its configured DoH provider, which defaults to Cloudflare. Your DHCP-assigned DNS server is irrelevant. Your port 53 interception rules are irrelevant. Firefox is having a completely separate DNS conversation over port 443 that you cannot see. The second pattern is OS-level DoH, where the operating system itself handles the upgrade. Chrome and Windows 10 and 11 take this approach. They check whether the system's configured DNS resolver — the one assigned by your DHCP server — has a corresponding DoH endpoint. If it does, they automatically upgrade to DoH. This is called opportunistic DoH. If you're assigning 8.8.8.8 as your guest DNS server, Chrome will automatically use Google's DoH endpoint. If you're assigning 1.1.1.1, it'll use Cloudflare's DoH endpoint. The distinction matters for your mitigation strategy, which we'll get to shortly. There's a third vector worth mentioning: DNS over TLS, or DoT. This operates on port 853 and encrypts DNS queries using TLS rather than wrapping them in HTTPS. It's easier to block than DoH because it uses a dedicated port, but it's increasingly common on Android devices with Private DNS enabled. Your mitigation strategy needs to address both. Now let's talk about why this is a compliance and operational risk, not just a technical curiosity. Under GDPR, if your acceptable use policy states that you filter certain categories of content, and your technical controls don't actually enforce that policy, you have a gap between your stated data protection and content governance commitments and your actual technical implementation. That's a defensibility problem if you ever face a regulatory inquiry or an incident. Under the UK's Online Safety Act, venue operators providing public internet access have obligations around protecting users — particularly minors — from harmful content. If DoH is silently bypassing your content filtering, you may not be meeting those obligations. For venues that fall under PCI DSS scope — particularly those where payment card data flows over networks adjacent to guest WiFi — PCI DSS version 4.0 requires that you monitor and control DNS traffic as part of your network security controls. Unmonitored DoH traffic is a gap in that control framework. And from a pure security standpoint, DoH has been actively exploited by malware. Threat actors have used DoH as a command-and-control channel because it blends into normal HTTPS traffic. The GodLua backdoor used DoH for command-and-control communications. PsiXBot malware used Google's DoH service. If your security monitoring relies on DNS visibility to detect malicious activity, DoH blind spots are a real threat. Section three — implementation recommendations. Right, let's get practical. There are three primary mitigation strategies, and in most venue deployments, you'll want to implement all three in combination. Strategy one: block known DoH resolver endpoints at the firewall. This is your first line of defence and the most immediately deployable option. Maintain a blocklist of known DoH resolver IP addresses and domains — Google, Cloudflare, Quad9, NextDNS, AdGuard, and others — and deny outbound HTTPS traffic to those endpoints from your guest VLAN. The IETF and various security vendors publish and maintain these lists. The curl project on GitHub maintains a comprehensive list of known DoH resolvers that's a good starting point. This approach handles the majority of DoH traffic because, as research from Carnegie Mellon's Software Engineering Institute has shown, most DoH traffic goes to a small number of well-known resolvers. Users who know enough about DNS to configure a custom DoH resolver are a very small minority. The limitation of this approach is that it's a blocklist, and blocklists require maintenance. New DoH resolvers appear regularly. But combined with the other strategies, it provides solid coverage. Strategy two: TLS inspection on your next-generation firewall. Next-generation firewalls from vendors including Palo Alto Networks, Fortinet, Check Point, and Cisco Firepower support TLS inspection — also called SSL inspection or deep packet inspection. When enabled, the firewall acts as a man-in-the-middle for HTTPS traffic, decrypting it, inspecting the payload, and re-encrypting it before forwarding. This allows the firewall to identify DoH traffic even when it's going to an unknown resolver. Palo Alto's App-ID can identify DoH traffic specifically and apply policy to it. Fortinet's FortiGate has similar capability. The key configuration step is to ensure your guest VLAN traffic is routed through the inspection policy. The operational consideration here is certificate trust. For TLS inspection to work on guest devices, those devices need to trust your inspection certificate. On managed corporate devices, this is straightforward — you push the certificate via MDM. On unmanaged guest devices, it's more complex. The practical approach for guest WiFi is to use the captive portal acceptance flow to inform users that traffic may be inspected for content filtering purposes, and to rely on the combination of DoH resolver blocking and DNS interception as your primary controls, with TLS inspection as a secondary layer for higher-risk environments. Strategy three: force DNS interception and redirect. Configure your firewall or wireless controller to intercept all outbound DNS traffic on UDP and TCP port 53 and redirect it to your compliant DNS resolver. This doesn't stop DoH, but it ensures that any DNS traffic that does fall back to port 53 — because DoH failed or wasn't available — is captured and filtered. Combine this with blocking port 853 outbound from the guest VLAN to prevent DNS over TLS from bypassing your controls. For managed endpoints — corporate devices, staff devices — you have an additional option: Group Policy or MDM configuration to disable DoH at the browser and OS level. In Firefox, the network.trr.mode preference set to 5 disables DoH entirely. In Chrome, the disable-features equals DnsOverHttps flag achieves the same. Windows 10 and 11 have Group Policy settings to control DoH behaviour. This is the most reliable control for managed devices, but it's not applicable to unmanaged guest devices. Section four — implementation pitfalls. A few things that commonly go wrong in the field. The most frequent failure mode is incomplete port 53 interception. Teams configure their DNS filtering service correctly but forget to add the firewall rule that redirects all outbound port 53 traffic. Devices with hardcoded DNS settings — 8.8.8.8, 1.1.1.1 — bypass the filter entirely. Always verify this rule is in place and test it by configuring a test device with a hardcoded DNS server and confirming that filtered domains are still blocked. The second common failure is not accounting for IPv6. DNS queries over IPv6 are increasingly common, and many firewall rules are written for IPv4 only. Ensure your port 53 interception and DoH resolver blocklists cover both IPv4 and IPv6 addresses. Third: stale DoH resolver blocklists. If you're maintaining a static blocklist of DoH resolver IPs, it will become outdated. Automate the update process or use a DNS filtering service that maintains this list for you. Cloudflare Gateway, Cisco Umbrella, and similar enterprise DNS services include DoH bypass detection as a managed capability. Fourth: over-reliance on a single mitigation layer. DoH mitigation is a defence-in-depth problem. No single control is sufficient. Blocking known resolvers handles most cases. TLS inspection handles edge cases. DNS interception provides a safety net. Layer all three. Section five — rapid-fire questions. Does DoH mitigation break legitimate privacy tools? Potentially, yes. If a user is running a legitimate privacy-focused browser configuration, your DoH blocking will force them to use your DNS resolver. Your acceptable use policy should make clear that the venue's DNS resolver is used for content filtering purposes. This is standard practice and legally defensible. Can DoH be used to exfiltrate data from my network? Yes, and this is a real threat vector. DNS tunnelling over DoH has been demonstrated in the wild. Your next-generation firewall's DoH detection capability should include anomaly detection for unusually high query volumes or query patterns consistent with tunnelling. What about mobile apps that use DoH? This is the hardest case. Mobile apps that implement their own DoH stack — rather than using the OS DNS settings — are difficult to control without TLS inspection. Your best mitigation is the combination of known resolver blocking and TLS inspection. Is WPA3 relevant here? WPA3 improves over-the-air encryption and provides forward secrecy, which is excellent for guest privacy. But WPA3 doesn't address DoH — that's a layer 7 application protocol issue, not a layer 2 wireless security issue. They're complementary controls addressing different threat vectors. Section six — ROI and business impact. Let me close with the business case for addressing this properly. The cost of not addressing DoH is asymmetric. A single incident — a guest accessing illegal content on your network, a malware callback going undetected because your DNS monitoring had a blind spot, a regulatory inquiry about your content filtering compliance — can cost significantly more than the investment in proper mitigation. For a hotel group operating across 20 properties, deploying DoH mitigation typically involves a one-time configuration effort of two to four hours per property for the firewall rules and DNS interception configuration, plus an ongoing operational overhead of maintaining resolver blocklists — which is largely automated if you're using a managed DNS filtering service. The total investment is modest relative to the risk reduction. For retail chains operating under PCI DSS, the compliance benefit is directly quantifiable. Demonstrating that your network security controls include DoH mitigation reduces the risk of a PCI DSS audit finding and the associated remediation costs. For public sector venues and those operating under the Online Safety Act, documented DoH mitigation is part of your evidence base that you've taken reasonable technical steps to enforce your content filtering policy. The bottom line: DoH is not a future problem. It's a present one. Firefox, Chrome, Android, and iOS are all shipping DoH-capable configurations to your guests' devices right now. If you haven't audited your DNS filtering architecture for DoH bypass vectors in the last 12 months, that audit should be on your near-term roadmap. To summarise the key takeaways from today's briefing. One: DoH encrypts DNS queries inside HTTPS on port 443, making them invisible to traditional port 53 DNS filtering. This is happening by default on mainstream browsers and operating systems. Two: The three-layer mitigation strategy — block known DoH resolver IPs, implement TLS inspection on your next-generation firewall, and enforce port 53 interception — provides defence-in-depth coverage for both managed and unmanaged guest devices. Three: This is a compliance issue, not just a technical one. GDPR, the Online Safety Act, and PCI DSS all have implications for venues where DoH is silently bypassing content filtering policies. Four: The most common implementation failure is incomplete port 53 interception. Test it. Verify it. Don't assume it's working. Five: Managed DNS filtering services — Cloudflare Gateway, Cisco Umbrella, and similar — increasingly include DoH bypass detection as a managed capability, which reduces the operational overhead of maintaining static blocklists. That's a wrap for today's Purple Technical Briefing. If you're looking to audit your current DNS filtering architecture or implement DoH mitigation across your venue estate, the Purple platform provides the network intelligence and guest WiFi management layer to support that deployment. Thanks for listening, and we'll see you in the next session.

header_image.png

Resumen Ejecutivo

Durante casi una década, el filtrado DNS tradicional en el puerto 53 ha sido el mecanismo principal para aplicar políticas de contenido y mitigar amenazas de malware en redes WiFi públicas. Sin embargo, la adopción generalizada de DNS over HTTPS (DoH) por parte de los navegadores y sistemas operativos principales altera fundamentalmente este modelo. Al encapsular las consultas DNS dentro del tráfico HTTPS estándar en el puerto 443, DoH hace que estas consultas sean invisibles para las técnicas tradicionales de intercepción de red.

Para los gerentes de TI empresariales y arquitectos de red que operan WiFi de invitados en Hostelería , Comercio minorista , estadios y recintos del sector público, esto representa una brecha significativa de cumplimiento y seguridad. Cuando los dispositivos de invitados eluden silenciosamente los resolvedores DNS designados del recinto, las políticas de uso aceptable cuidadosamente elaboradas fallan, exponiendo la red al tráfico de malware de comando y control (C2) y a contenido inapropiado. Esta guía detalla la mecánica del vector de elusión de DoH y proporciona una arquitectura de defensa en profundidad por capas para recuperar la visibilidad de la red, garantizar el cumplimiento normativo y mantener una seguridad robusta del WiFi de invitados .

Análisis Técnico Detallado: El Mecanismo de Elusión de DoH

Para comprender el vector de amenaza de DoH, primero hay que examinar la arquitectura base del filtrado DNS tradicional. Históricamente, cuando un dispositivo de invitado se conectaba a una red pública y solicitaba un dominio, la consulta se transmitía en texto plano a través del puerto UDP o TCP 53. Los administradores de red podían interceptar fácilmente este tráfico en el firewall o controlador inalámbrico, redirigiéndolo a un resolvedor DNS compatible que verificaba el dominio solicitado contra fuentes de inteligencia de amenazas y políticas de categorización de contenido.

DNS over HTTPS elude todo este plano de control. Por diseño, DoH cifra la consulta DNS y la transmite a un resolvedor externo (como 1.1.1.1 de Cloudflare o 8.8.8.8 de Google) utilizando cifrado TLS estándar sobre el puerto 443. Desde la perspectiva de la infraestructura de red del recinto, una consulta DoH es indistinguible de un usuario navegando por un sitio web seguro o transmitiendo un vídeo.

Patrones de Implementación: DoH a Nivel de Aplicación vs. Sistema Operativo

El desafío para los administradores de red se agrava por la forma en que se implementa DoH en diferentes plataformas. Existen dos patrones de despliegue principales:

  1. DoH a Nivel de Aplicación: En este modelo, la aplicación mantiene su propia configuración de DoH independientemente del sistema operativo anfitrión. Mozilla Firefox es el ejemplo canónico; cuando DoH está habilitado, Firefox ignora los servidores DNS asignados por DHCP y enruta todas las consultas a su proveedor DoH preferido. Las reglas de intercepción del puerto 53 del recinto son completamente eludidas.
  2. DoH a Nivel de SO (Oportunista): Los sistemas operativos modernos, incluidos Windows 11 y Android, emplean DoH oportunista. El SO verifica si el resolvedor DNS asignado por DHCP tiene un punto final DoH conocido. Si se encuentra una coincidencia, el SO actualiza automáticamente la conexión a DoH. Si bien esto preserva la elección del resolvedor por parte del administrador, aún desplaza el tráfico al puerto 443, lo que puede eludir las herramientas de monitoreo heredadas que esperan tráfico en el puerto 53.

Además, los administradores deben tener en cuenta DNS over TLS (DoT), que opera en el puerto 853. Si bien DoT es más fácil de bloquear debido a su puerto dedicado, es el estándar predeterminado para la función "DNS Privado" de Android y representa un riesgo de elusión idéntico si el puerto 853 se deja abierto en la VLAN de invitados.

doh_vs_traditional_dns_comparison.png

Guía de Implementación: Una Arquitectura de Defensa en Profundidad

Recuperar el control sobre la resolución DNS requiere una estrategia de mitigación de múltiples capas. Confiar en un único punto de control es insuficiente contra los protocolos modernos y cifrados. Los arquitectos de red deben implementar la siguiente arquitectura para asegurar el acceso de invitados y garantizar el cumplimiento de marcos como PCI DSS y GDPR.

Capa 1: Bloquear Puntos Finales de Resolvedores DoH Conocidos

La mitigación más inmediata y efectiva es bloquear el tráfico HTTPS saliente hacia resolvedores DoH públicos conocidos en el borde de la red. Si bien el tráfico DoH se mezcla con el HTTPS estándar, las direcciones IP de destino y los dominios de los principales proveedores de DoH están bien documentados.

Al configurar el Firewall de Próxima Generación (NGFW) para descartar conexiones a estos puntos finales específicos (p. ej., dns.google, cloudflare-dns.com), los administradores fuerzan la resolución DoH del dispositivo cliente a fallar. En la mayoría de las implementaciones, cuando DoH falla, el cliente recurrirá elegantemente al DNS tradicional no cifrado en el puerto 53, que luego puede ser interceptado y filtrado.

Nota de Implementación: Este enfoque requiere mantener una lista de bloqueo actualizada. Los proveedores de firewalls empresariales a menudo ofrecen fuentes de amenazas dinámicas que actualizan automáticamente los puntos finales DoH conocidos, reduciendo significativamente la sobrecarga operativa.

Capa 2: Aplicar Intercepción y Redirección del Puerto 53

El bloqueo de DoH solo es efectivo si el tráfico de respaldo se gestiona correctamente. La red debe configurarse para interceptar todo el tráfico UDP y TCP saliente en el puerto 53 originado desde la VLAN de invitados. Este tráfico debe ser redirigido forzosamente (mediante reglas NAT/reenvío de puertos) al resolvedor DNS aprobado y compatible del recinto.

Este paso es crítico porque muchos dispositivos o aplicaciones maliciosas codifican servidores DNS públicos (p. ej., 8.8.8.8) en su pila de red, ignorando la configuración proporcionada por DHCP. Sin una intercepción forzada, estos dispositivos eludirán con éxito las políticas de filtrado del recinto incluso si DoH está bloqueado.

Capa 3: Bloquear el Puerto 853 (DNS over TLS)

Para abordar el vector de elusión de DoT, los administradores deben bloquear explícitamente el tráfico saliente en el puerto TCP 853 desde la red de invitados. Similar a la mitigación de DoH, bloqking DoT fuerza a los dispositivos Android y otros clientes compatibles con DoT a recurrir al DNS estándar del puerto 53.

doh_mitigation_architecture.png

Mejores Prácticas y Consideraciones de Cumplimiento

Implementar la mitigación de DoH no es meramente un ejercicio técnico; es un requisito fundamental para mantener el cumplimiento normativo y hacer cumplir las políticas de uso aceptable.

  • Documentación de Políticas: Asegúrese de que los términos y condiciones del Captive Portal del establecimiento indiquen explícitamente que el filtrado de DNS está implementado por motivos de seguridad y cumplimiento. Esto proporciona una defensa legal bajo GDPR y la Ley de Seguridad en Línea del Reino Unido al bloquear protocolos DNS cifrados.
  • Segmentación de Red: El Guest WiFi debe estar estrictamente aislado de las redes corporativas y de pago mediante VLANs y reglas de firewall. Este es un requisito fundamental de PCI DSS v4.0, que también exige una monitorización robusta del tráfico de red, una monitorización que es imposible si se permite que DoH eluda los controles de seguridad.
  • Monitorización Continua: Aproveche las capacidades de informes de su servicio de filtrado de DNS empresarial para monitorizar los volúmenes de consultas e identificar patrones anómalos. Una caída repentina en el tráfico del puerto 53 desde una subred específica a menudo indica que los dispositivos cliente están utilizando un nuevo resolvedor DoH no bloqueado.
  • Integración con Analíticas: Al implementar un acceso seguro para invitados, considere cómo el flujo de autenticación se integra con los objetivos comerciales más amplios. La utilización de un wi fi assistant para una autenticación segura basada en perfiles garantiza que los usuarios se conecten de forma segura, al tiempo que permite al establecimiento aprovechar WiFi Analytics para comprender la afluencia y los tiempos de permanencia, de manera similar a cómo Offline Maps Mode mejora la experiencia del visitante.

Resolución de Problemas y Mitigación de Riesgos

Al implementar la mitigación de DoH, los equipos de red a menudo encuentran modos de fallo específicos. Anticipar estos problemas reduce el tiempo de inactividad y la fricción para los invitados.

Reglas de Intercepción Incompletas

El fallo de implementación más común es la intercepción incompleta del puerto 53. Los administradores pueden configurar el servidor DHCP para distribuir las IPs de DNS correctas, pero no implementan las reglas NAT del firewall necesarias para interceptar las solicitudes DNS codificadas. Mitigación: Pruebe siempre la implementación configurando un dispositivo cliente con un servidor DNS estático y externo (por ejemplo, 9.9.9.9) y verificando que las solicitudes sigan siendo enrutadas con éxito al servicio de filtrado del establecimiento.

Descuidos en IPv6

A medida que las redes transicionan a configuraciones de doble pila, las reglas del firewall se escriben con frecuencia exclusivamente para IPv4. Si las listas de bloqueo de DoH y las reglas de intercepción del puerto 53 no cubren IPv6, los dispositivos modernos eludirán sin problemas los controles de IPv4 utilizando su pila IPv6. Mitigación: Asegúrese de que todas las listas de bloqueo de DoH, las reglas de redirección del puerto 53 y las reglas de descarte del puerto 853 se apliquen simétricamente en ambas tablas de enrutamiento IPv4 e IPv6.

Fallos en Aplicaciones

El bloqueo agresivo de DoH puede ocasionalmente causar fallos en aplicaciones móviles específicas que dependen exclusivamente de su propia implementación de DoH y se niegan a recurrir al DNS estándar. Mitigación: Mantenga un proceso de excepción documentado. Si una aplicación crítica para el negocio falla, utilice la inspección TLS (si está disponible en el NGFW) para permitir selectivamente el tráfico DoH al resolvedor de esa aplicación específica, en lugar de abrir DoH globalmente.

ROI e Impacto Empresarial

El caso de negocio para una mitigación robusta de DoH se basa en la evitación de riesgos y la garantía de cumplimiento. Un solo incidente —como un invitado que accede a contenido ilegal resultando en una investigación regulatoria, o un dispositivo IoT comprometido que establece una conexión C2 a través de DoH— puede incurrir en costes que superan con creces el tiempo de ingeniería requerido para implementar los controles adecuados.

Para una empresa que opera en múltiples ubicaciones, estandarizar la arquitectura de mitigación de DoH garantiza una aplicación de políticas consistente. Esta estandarización reduce la carga operativa del servicio de asistencia de TI, ya que los avisos de abuso de los ISP se reducen a cero y el rendimiento de la red se mantiene al bloquear contenido inapropiado de alto ancho de banda. En última instancia, asegurar la capa DNS garantiza que la inversión del establecimiento en Guest WiFi siga siendo un activo seguro y conforme, en lugar de una responsabilidad.

Definiciones clave

DNS over HTTPS (DoH)

A protocol for performing remote Domain Name System (DNS) resolution via the HTTPS protocol, encrypting the data between the DoH client and the DoH-based DNS resolver.

When IT teams deploy content filtering, DoH acts as a bypass mechanism, hiding DNS queries within standard encrypted web traffic.

DNS over TLS (DoT)

A security protocol for encrypting and wrapping DNS queries and answers via the Transport Layer Security (TLS) protocol, operating on a dedicated port (853).

Often enabled by default on modern Android devices (Private DNS), DoT must be blocked at the firewall to ensure queries fall back to the venue's filtered DNS.

Opportunistic DoH

A behavior where an operating system or browser automatically upgrades standard DNS queries to DoH if it detects that the configured DNS resolver supports the encrypted protocol.

This feature, common in Windows 11 and Chrome, means that even if a venue assigns a standard DNS IP, the traffic may still shift to encrypted port 443, bypassing legacy monitoring.

Port 53 Interception

A network firewall configuration that captures all outbound traffic on UDP/TCP port 53 and forcibly redirects it to a designated DNS resolver, regardless of the destination IP requested by the client.

Essential for capturing DNS queries from devices with hardcoded DNS settings or those that have fallen back from a failed DoH connection.

Next-Generation Firewall (NGFW)

A network security device that provides capabilities beyond a traditional, stateful firewall, including deep packet inspection, application awareness, and TLS/SSL decryption.

NGFWs are critical for DoH mitigation as they can identify and block DoH traffic based on application signatures rather than just IP addresses.

Fallback Behavior

The programmed response of a client device when its preferred encrypted DNS protocol (DoH or DoT) fails to connect, typically resulting in the device reverting to standard, unencrypted DNS.

Network architects rely on this behavior; by intentionally breaking DoH/DoT connections, they force the device to use the interceptable port 53.

Command-and-Control (C2)

The infrastructure used by attackers to communicate with compromised devices (malware/botnets) within a target network.

Modern malware increasingly uses DoH to hide C2 communications from enterprise network monitors, making DoH mitigation a critical security requirement.

Captive Portal

A web page that the user of a public-access network is obliged to view and interact with before access is granted.

The captive portal is the legally appropriate location to inform users that their DNS traffic is being filtered and that encrypted DNS protocols are blocked.

Ejemplos prácticos

A 400-room hotel recently deployed a cloud-based DNS filtering service to comply with brand standards regarding family-friendly content. However, the IT manager notices that a significant portion of guest traffic is still reaching adult content sites, and the DNS filtering dashboard shows lower-than-expected query volumes. How should the network architect remediate this bypass?

  1. Audit Firewall Rules: The architect must first verify that outbound TCP/UDP port 53 is being intercepted and NAT-redirected to the cloud DNS service.
  2. Block DoH Resolvers: Implement an NGFW blocklist to drop outbound HTTPS (port 443) traffic destined for known DoH providers (e.g., Cloudflare, Google, Quad9).
  3. Block DoT: Add a firewall rule to drop all outbound TCP port 853 traffic to prevent Android Private DNS bypass.
  4. Verify IPv6: Ensure all the above rules are applied to both IPv4 and IPv6 traffic.
Comentario del examinador: This scenario highlights the classic symptom of DoH/DoT bypass: low query volumes on the approved resolver combined with policy failures. The solution correctly identifies that simply providing a DNS server via DHCP is insufficient; network-level enforcement is required to handle hardcoded DNS and encrypted protocols.

A retail chain with 150 locations needs to implement DNS filtering to block malware and phishing on their guest WiFi. They use basic branch firewalls without advanced TLS inspection capabilities. How can they effectively mitigate DoH without upgrading their hardware?

Without TLS inspection, the chain must rely on robust routing and blocklists.

  1. Deploy a dynamic DoH IP/Domain blocklist on the branch firewalls, configured to update automatically via an external threat feed.
  2. Implement strict port 53 NAT redirection to the enterprise DNS filter.
  3. Block port 853 entirely.
  4. Update the captive portal Terms of Service to explicitly state that encrypted DNS protocols are blocked to enforce network security policies.
Comentario del examinador: This demonstrates a pragmatic approach for environments with hardware constraints. While TLS inspection offers granular control, a well-maintained blocklist combined with forced port 53 redirection provides a highly effective defence-in-depth strategy that scales well across multiple branch locations.

Preguntas de práctica

Q1. A stadium network engineer configures the DHCP server to provide the IP address of their secure, filtered DNS service to all guest devices. However, testing reveals that devices with manually configured DNS settings (e.g., 8.8.8.8) are successfully bypassing the filter. What is the most appropriate architectural fix?

Sugerencia: Consider the difference between suggesting a route and enforcing a route at the network edge.

Ver respuesta modelo

The engineer must implement a NAT port forwarding rule on the stadium's firewall. This rule should intercept all outbound UDP and TCP traffic on port 53 originating from the guest VLAN and forcibly translate the destination IP to the secure DNS service's IP address. This ensures that regardless of the client's local configuration, the traffic is routed through the filtering policy.

Q2. Following the implementation of a strict DoH blocklist, the IT helpdesk at a conference centre receives reports that a specific, bespoke event management app is failing to load for attendees. Packet capture shows the app is attempting to use its own hardcoded DoH resolver, which is being blocked, and the app refuses to fall back to standard DNS. How should this be resolved?

Sugerencia: Balance security policy with business continuity. Can the firewall distinguish between general DoH traffic and traffic to a specific, approved endpoint?

Ver respuesta modelo

The administrator should create an exception in the NGFW policy. Rather than disabling the DoH blocklist globally, they should identify the specific IP address or domain of the DoH resolver used by the event management app and whitelist it. If the firewall supports application-layer (Layer 7) inspection, a more robust solution is to create a policy that permits DoH traffic only if the destination matches the approved application's infrastructure, ensuring general DoH bypass attempts remain blocked.

Q3. A public sector organisation is auditing its guest WiFi compliance. They have successfully blocked port 853 (DoT) and implemented port 53 interception. However, they lack the budget for an NGFW with advanced TLS inspection or dynamic DoH blocklists. What is the most effective remaining strategy to mitigate DoH?

Sugerencia: If dynamic lists aren't available, how can you address the vast majority of opportunistic DoH traffic?

Ver respuesta modelo

The organisation should implement a static blocklist on their existing firewall, targeting the IP addresses and domains of the most common public DoH providers (e.g., Cloudflare, Google, Quad9). While this requires manual maintenance and won't catch obscure DoH resolvers, research shows that the vast majority of DoH traffic defaults to a handful of major providers. This provides a highly effective '80/20' solution within their budget constraints.