gamelinux / passivedns

A network sniffer that logs all DNS server replies for use in a passive DNS setup
http://gamelinux.org/
1.67k stars 374 forks source link

Passivedns dos not log large TXT records #131

Open rvaglid opened 1 year ago

rvaglid commented 1 year ago

We are testing some Splunk detections and it seems that large TXT-records are not logged at all by passivedns.

The following TXT-records is 2048 chars, which is the max for a TXT record. $ nslookup -q=TXT mobydick.vaglid.net

The DNS reply gets split into different strings as expected both by Windows and Linux resolvers, but no logs appear in the passivedns logs.

The following TXT-record is 277 chars. For this DNS reply the first 256 chars gets logged by passivedns, but not the second segment. $nslookup -q=TXT txttest.vaglid.net

[*] PassiveDNS 1.2.0
[*] By Edward Bjarte Fjellskål <edward.fjellskaal@gmail.com>
[*] Using libpcap version 1.5.3
[*] Using ldns version 1.6.16

Cheers, Rolf