Merge in SNORT/snort3 from ~OSTEPANO/snort3:dns_udp_detector to master
Squashed commit of the following:
commit
12ff8b2092daa3f17b78dfd42bdb16ec7f208589
Author: Oleksandr Stepanov <ostepano@cisco.com>
Date: Wed Oct 8 09:50:19 2025 -0400
appid: more restrictive checks for DNS client detection
offset = sizeof(DNSHeader);
+ if (!hdr->QDCount and !hdr->QR and !hdr->ARCount)
+ {
+ // Query with no questions and cookies is invalid (RFC1035 and RFC7873)
+ return APPID_NOMATCH;
+ }
+
if (hdr->QDCount)
{
count = ntohs(hdr->QDCount);