DNS Tunneling: High-Entropy Subdomains & TXT/NULL Beaconing

This rule detects potential DNS tunneling or DNS-based command and control (C2) beaconing. It analyzes DNS query logs for characteristics typical of C2 traffic, such as high subdomain entropy, frequent use of TXT or NULL records, and a high volume of unique subdomains originating from a single source IP address within a 5-minute window.