Ask Your Question

Revision history [back]

LUA script how to get all IPs from DNS.A (dns answer)


In short, this produces correct result: tshark -r dns_google.pcap -Y dns.a -T fields -e dns.a -e

result: ",,,"

but in case of LUA script (pseudo-code, executed by "tshark -X lua_script:hello.lua -r dns_google.pcap -q -2"), this outputs only first IP:

local dns_test ="dns.a") print("DNS.A = ", dns_test().value)

result: DNS.A = (rest of IPs missing)

So my question is how to display all DNS.A IPs in LUA? Thanks