Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

DNS tunneling is a covert communication technique that abuses the Domain Name System (DNS). Malware encodes commands or small pieces of information inside DNS queries and responses, sending them to an attacker-controlled domain. Because DNS is essential and widely allowed through network controls, the traffic can blend into ordinary lookups. A normal DNS request does not expose your files; tunneling requires unauthorized software, an encoding method, and an attacker-controlled endpoint that interprets the data.

The “phone book” analogy is useful only as a starting point. DNS translates a service name such as a domain into an IP address; it is not a directory of your personal contacts. The security problem is that the same lookup channel can be repurposed as a two-way command-and-control path or as a route for limited data exfiltration.

What DNS tunneling is and why attackers use it

DNS normally lets a device find the network location of a service. An application asks a recursive resolver for a domain record, the resolver obtains an answer from authoritative DNS servers, and the application connects to the returned address. This happens constantly for websites, software updates, cloud services and internal systems.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That ubiquity creates an opportunity. MITRE ATT&CK describes the technique as Application Layer Protocol: DNS, sub-technique T1071.004. Its current entry (version 1.4, last modified May 12, 2026) says, “Adversaries may communicate using the Domain Name System (DNS) application layer protocol to avoid detection/network filtering by blending in with existing traffic.” See the MITRE ATT&CK technique page.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

In a tunnel, malware turns bytes into a DNS-safe representation and places that text in a query, often in a subdomain such as a long, apparently random label. The attacker controls the authoritative domain, receives the query, decodes the label and can send information back in a DNS response. TXT and A records can carry beacon commands or results. The channel may support command and control, status beacons, or smaller-scale exfiltration.

It is not accurate to say that every DNS lookup steals information. A tunnel exists only when an unauthorized process deliberately encodes data, communicates with infrastructure under an attacker’s control and interprets the exchange. Capacity, timing and reliability vary by implementation, resolver behavior and defensive controls; there is no universal data-rate figure.

How a DNS tunnel works

  1. Compromise: Malware or an abused script runs on a workstation, server, virtual machine or other host.
  2. Domain preparation: The operator registers or compromises a domain and configures authoritative DNS servers to receive specially formed queries.
  3. Encoding: The malware converts a command, identifier or data fragment into characters permitted in a DNS name. It may split data across many labels and add sequence numbers for reassembly.
  4. Query transport: The host asks its configured resolver to resolve those labels. The resolver forwards the request through the normal DNS hierarchy, making the traffic resemble routine lookups.
  5. Decoding: The attacker’s authoritative server extracts the encoded label, reassembles fragments and records the result.
  6. Response channel: A response, commonly through an A or TXT record, can contain an encoded command, acknowledgement or next-step value for the malware.

MITRE documents malware and threat-group examples, including a NightClub technique example in which exfiltrated data is placed in a query’s subdomain. Such examples demonstrate that the method is used; they do not establish how common it is across all infections.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

What attackers can and cannot send through DNS

DNS tunneling is attractive for control messages, credentials or small files because DNS requests are short, frequent and expected. A process can send data in many successive labels and use replies to coordinate collection. Defenders should not assume that only TXT records are suspicious: the MITRE technique notes both TXT and A records, and implementations can use other standard record types.

The channel has practical constraints. Domain-label and packet-size limits, resolver caching, retransmissions, logging, filtering and latency all affect throughput. Large transfers are noisy and may fail, while low-volume beacons are slower but harder to distinguish from ordinary activity. The available evidence supports no single throughput threshold that applies to every network.

How to tell whether DNS traffic is malicious

No individual characteristic proves a tunnel. A long name can be generated by a legitimate content-delivery service, telemetry system or software update, and an uncommon record type can be normal for a particular application. Detection improves when DNS observations are joined with process, host, destination and historical context.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Signal Why it can matter What to verify before declaring an incident
Unusually long or random-looking subdomains Encoded chunks often have high entropy, repeated labels or sequence-like prefixes. Compare with the domain’s normal naming pattern and identify the process that made the request.
High query volume Fragmented exfiltration or frequent command polling can generate many requests. Check whether a legitimate application, resolver retry storm or software deployment explains the spike.
Unexpected destination domains Newly seen, low-reputation or unrelated domains may be attacker infrastructure. Use reputation, registration and organizational allow-list data; reputation alone is not proof.
DNS from non-browser or non-system processes A script, local daemon or unusual binary issuing DNS can indicate malware. Capture the executable path, user, parent process, host role and command line.
Encoded labels or repeated character sets Base32-, hexadecimal- or otherwise structured labels can reflect data encoding. Test against known application formats and inspect a time window rather than one query.
DNS from unexpected infrastructure For example, an ESXi host or a server that should not resolve external names. Confirm the host’s role, resolver configuration and approved management software.
Infrequent, periodic beacons Low-frequency callbacks can blend into normal DNS and evade simple volume thresholds. Look for timing regularity, destination consistency and endpoint process evidence.

MITRE’s behavior guidance highlights anomalous or high-frequency requests from non-browser or non-system processes, long or frequent subdomains generated by local daemons or scripts, encoded subdomains, high query volume and unusual DNS from ESXi hosts. A threshold-only rule will miss quiet beacons, so baseline domain characteristics and process context as well.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A practical DNS-tunnel investigation workflow

  1. Preserve the evidence. Export resolver logs with timestamps, client address, queried name, record type, response code and destination resolver. Keep endpoint alerts and process telemetry for the same period.
  2. Find the requesting process. On the affected host, map the client address and time to a process, executable path, user and parent process. A browser or approved agent may be expected; an unsigned script or temporary binary deserves priority.
  3. Characterize the domain. Group queries by registered domain and inspect label length, entropy, character distribution, sequence numbers, response sizes and timing. Check whether the authoritative nameservers and domain reputation fit the organization’s business.
  4. Compare with a baseline. Review the host’s normal DNS behavior and peer systems with the same role. A pattern unique to one machine is more concerning than a pattern produced across every workstation by a known application.
  5. Contain carefully. Temporarily isolate a suspected endpoint or block the specific domain at a controlled resolver while preserving business-critical DNS. Do not disable DNS globally; broad restrictions can disconnect legitimate remote services.
  6. Scope the incident. Search historical logs for the domain, related nameservers, other clients and the same process hash. Determine whether queries carried identifiers only, commands, or evidence of collected data.
  7. Eradicate and validate. Remove the malicious persistence, patch the entry point, rotate exposed credentials and monitor the host after recovery. Confirm that approved applications still resolve their required services.

How to stop DNS tunneling

Force DNS through controlled resolvers

Route workstation and server DNS to approved on-premises or proxy resolvers. Block direct outbound DNS (UDP and TCP port 53) from ordinary hosts, and account for approved exceptions such as resolver infrastructure. Controlled resolvers create one policy and logging point, but they do not solve applications that bypass policy or use encrypted DNS without authorization.

Filter unknown and malicious domains

MITRE recommends filtering requests to unknown, untrusted or known-bad domains. Use allow-lists for essential business services, threat-intelligence feeds for malicious infrastructure and a review process for newly blocked domains. Tune policies against your organization’s baseline: a block that is too broad can interrupt remote access, updates or other legitimate services.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Deploy protective DNS

NSA and CISA define protective DNS (PDNS) as “a security service that uses existing DNS protocols and architecture to analyze DNS queries and mitigate threats.” PDNS providers use threat feeds to categorize domains, return a blocked response for identified malicious destinations and retain suspicious-query logs for investigation. Their guidance does not endorse any provider and advises customers to understand how a provider uses query data; privacy, retention and jurisdiction belong in the service assessment. See the NSA and CISA protective DNS release.

Monitor and block at the network layer

Network intrusion detection and prevention can identify unusual DNS patterns and enforce policy. Feed resolver events into a SIEM, retain enough history to investigate slow beacons and alert on combinations such as encoded labels plus an unfamiliar process plus a low-reputation domain. Endpoint controls should prevent unauthorized scripts and binaries from making network connections where practical.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Handle encrypted DNS deliberately

DNS over HTTPS and DNS over TLS protect the path between a client and resolver, but encryption can also hide queries from network sensors if clients use an unapproved resolver. Permit approved encrypted-DNS endpoints through policy, log their use and prevent unmanaged applications from silently bypassing the organization’s resolver controls.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What DNSSEC does—and does not do

NIST’s Secure Domain Name System (DNS) Deployment Guide, SP 800-81r3, reached final publication on March 19, 2026. It addresses authoritative and recursive DNS, DNSSEC, service availability, integrity, confidentiality and reducing information leakage in queries and responses. The guide is available from NIST.

DNSSEC authenticates DNS data and helps prevent tampering with signed records. It does not identify whether a legitimate-looking domain is being used as a tunnel, and it is not a tunneling detector. Use DNSSEC as part of secure DNS deployment while relying on filtering, logging, endpoint context and network detection to address abuse.

Choosing a protective-DNS service or architecture

Compare capabilities rather than assuming that a block list alone will stop tunnels. NSA and CISA’s material provides selection considerations but does not recommend vendors.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Evaluation axis Questions to ask
Threat intelligence Which feeds are used, how quickly are indicators updated, and how are newly registered or compromised domains handled?
Investigation Are full query, client, response and block logs available, with export and retention controls suitable for incident response?
Deployment Can the service cover remote users, branch offices, servers and cloud networks while enforcing resolver policy?
Privacy What query data is collected, where is it stored, who can access it, and how long is it retained?
Policy control Can administrators create scoped allow- and block-lists, exceptions and approval workflows without disabling protection?
Availability and false positives What happens if the service is unreachable, and how quickly can a legitimate domain be reviewed and restored?

A six-month NSA PDNS pilot reported examining more than 4 billion DNS queries and blocking millions of connections to identified malicious domains. That is an attributed result from participating Defense Industrial Base networks, not an independent effectiveness benchmark or a guarantee for every deployment.

What the published detection research shows

A 2017 paper, Detection of Malicious and Low Throughput Data Exfiltration Over the DNS Protocol, evaluated supervised feature selection and an adjustable anomaly-detection model trained on legitimate traffic, followed by a rule-based filter intended to reduce false positives. The authors used recursive DNS logs containing more than 75,000 legitimate uses and almost 2,000 attacks. In that specific dataset and evaluation they reported at least 99% recall and less than 0.01% false-positive rate for DNS tunneling, while noting that low-throughput exfiltration was more difficult. Read the paper at arXiv:1709.08395.

Those figures describe that method, traffic mix and evaluation—not a current product benchmark or an expected result on your network. Operational rules still need tuning, testing against legitimate DNS data exchange and review when a business service is affected.

Key takeaways for defenders

  • DNS tunneling turns a routine name-resolution path into a covert command or data channel; ordinary DNS lookups are not automatically data theft.
  • Look for combinations of encoded or unusually long labels, destination reputation, timing, query volume and the process that generated the request.
  • Quiet beacons can evade volume-only detection, so retain history and correlate resolver logs with endpoint telemetry.
  • Force DNS through controlled resolvers, apply conservative filtering, use intrusion detection and manage encrypted-DNS bypasses.
  • Protective DNS can block known malicious domains and supply investigation logs, but provider data practices, availability and false-positive handling require review.
  • DNSSEC improves authenticity and integrity of DNS answers; it should complement, not replace, tunneling detection.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.