# What is Domain Name System (DNS) Tunneling?

> Domain Name System (DNS) tunneling carries application data inside DNS queries and responses to create a communication channel beyond ordinary name resolution.

- Canonical URL: https://yellowcube.eu/glossary/domain-name-system-tunneling/
- Publisher: Yellow Cube
- Language: en
- Contact: hello@yellowcube.eu

## Content

A client can encode data fragments into queried subdomain names that reach an operator-controlled authoritative server through recursive resolution. Response records can carry commands or other data back. The surrounding infrastructure may resolve names correctly while transporting information it was not intended to carry.

Attackers use these channels for command and control (C2) and data exfiltration. MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) maps DNS-based C2 to T1071.004. T1048, Exfiltration Over Alternative Protocol, applies when DNS carries stolen data separately from the main C2 protocol.

### Key points

- **Data flow:** Queries can carry outbound information, while responses support incoming instructions or content; encoding does not necessarily provide encryption.
- **Investigation evidence:** Unusual query names, changing subdomains, volumes, response sizes, timing, and originating processes help distinguish tunneling from expected applications.
- **Defensive controls:** Managed resolvers, restricted resolution paths, protective filtering, query analysis, and endpoint correlation improve visibility and constrain unauthorized channels.
- **Important limitation:** Legitimate applications can produce similar DNS patterns, and low-volume tunnels may evade thresholds. Encrypted DNS can reduce network visibility when monitoring cannot inspect the chosen resolution path.

### Related terms

[Domain Name System (DNS)](<https://yellowcube.eu/glossary/domain-name-system/>) · [Command and control (C2)](<https://yellowcube.eu/glossary/command-and-control/>) · [Data exfiltration](<https://yellowcube.eu/glossary/data-exfiltration/>) · [Protective DNS](<https://yellowcube.eu/glossary/protective-dns/>) · [Domain Name System (DNS) security](<https://yellowcube.eu/glossary/domain-name-system-security/>)

### Sources

[National Institute of Standards and Technology, Secure Domain Name System (DNS) Deployment Guide](https://csrc.nist.gov/pubs/sp/800/81/r3/final) · [MITRE, Application Layer Protocol: DNS (T1071.004)](https://attack.mitre.org/techniques/T1071/004/) · [MITRE, Exfiltration Over Alternative Protocol (T1048)](https://attack.mitre.org/techniques/T1048/)

## Let’s Build Smarter Cyber Defenses Together

Partnerships are the foundation of everything we do — built on trust, expertise, and shared success. Whether you’re looking to grow your business, strengthen your cybersecurity offerings, or bring innovative solutions to new markets, Yellow Cube is ready to be your committed, long-term ally.

[Get in touch with Yellow Cube](<mailto:hello@yellowcube.eu?subject=Partnership>)

## Attribution and scope

This Markdown representation is generated from the same approved content records as the canonical HTML page. Cite the canonical URL above when referencing this material. Product and service descriptions are informational; confirm project-specific requirements with Yellow Cube.

