]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns: parse multiple txt segments into an array
authorJason Ish <jason.ish@oisf.net>
Tue, 27 May 2025 17:27:23 +0000 (11:27 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 29 May 2025 08:59:16 +0000 (10:59 +0200)
commitde88d8ec4870de5068e0dcf4d6bc6aae6a8189d1
treef47a64d2e7d01759c861b8acecd754519178f59a
parent404bb53ce96564cbf964bb1e513a6107b7f744dc
dns: parse multiple txt segments into an array

A DNS TXT answer record can actually be made of up multiple TXT
entries in a single record. Suricata currently expands these into
multiple TXT records, however that is not very representative of the
actualy DNS message.

Instead, if a TXT record contains multiple labels, parse them into an
array.

We still expand multiple TXT segements into multiple TXT records at
logging time for compatibility, but this will allow something like
MDNS to log more accurately to the protocol.
rust/src/dns/dns.rs
rust/src/dns/log.rs
rust/src/dns/lua.rs
rust/src/dns/parser.rs