LUA script how to get all IPs from DNS.A (dns answer)
Hello,
In short, this produces correct result: tshark -r dns_google.pcap -Y dns.a -T fields -e dns.a -e dns.qry.name
result: "172.217.16.46,172.217.20.174,172.217.20.206,216.58.215.78 youtube-ui.l.google.com"
but in case of LUA script (pseudo-code, executed by "tshark -X luascript:hello.lua -r dnsgoogle.pcap -q -2"), this outputs only first IP:
local dnstest = Field.new("dns.a") print("DNS.A = ", dnstest().value)
result: DNS.A = 172.217.16.46 (rest of IPs missing)
So my question is how to display all DNS.A IPs in LUA? Thanks