On this page Home Docs Listeners BeaconDNS Listener Overview# BeaconDNS is an external listener that uses DNS queries and responses to establish a covert C2 channel. DNS-based C2 is slow but extremely difficult to block, since DNS resolution is required for almost all network activity.
Characteristics# Property Value Name BeaconDNS Type External Protocol DNS Agent Beacon Platforms Windows, Linux, macOS
Creating a BeaconDNS Listener# Open the Listeners tab Click Create Select BeaconDNS Configure:Name — Unique name (e.g., dns-covert)Domain — The DNS domain you control (NS records must point to your server)Bind Host/Port — Typically 0.0.0.0:53 Click Start Prerequisites# To use DNS-based C2, you need:
A domain you control — Register a domain or use a subdomainNS records — Configure the domain’s NS records to point to your teamserver’s IPPort 53 access — The server must be able to bind to UDP port 53DNS Configuration Example# If your teamserver IP is 203.0.113.50 and your domain is c2.example.com:
Create an A record: ns1.example.com → 203.0.113.50 Create an NS record: c2.example.com → ns1.example.com How It Works# The agent encodes C2 data into DNS queries (e.g., TXT, A, AAAA queries for subdomains of your C2 domain) The DNS queries traverse the target network’s DNS resolver chain They arrive at your teamserver (which is authoritative for the C2 domain) The listener decodes the query, processes the data, and encodes the response in DNS reply records The agent receives the DNS response containing task data Use Cases# Air-gapped or heavily filtered networks — When HTTP/TCP are blocked, DNS often worksLast-resort channel — Fallback when all other protocols are blockedLow-and-slow operations — Acceptable for operations where speed isn’t criticalRestricted environments — Corporate networks that only allow DNS egressLimitations# Slow — DNS packets are small; large transfers take significant timeBandwidth — Limited by DNS query/response sizes (typically ~250 bytes per message)Detection — High-volume DNS queries to a single domain can trigger alertsReliability — DNS caching and TTLs can affect communication reliabilityOPSEC Notes# Use a domain that looks legitimate (not evil-c2.com) Keep query volumes low to avoid triggering DNS anomaly detection Consider using DNS over HTTPS (DoH) proxies if available Monitor DNS query rates to stay below detection thresholds DNS logging is increasingly common — assume queries may be recorded