<div dir="ltr">I was attempting to run this sample code I found on the website.<div><br></div><div>function dumpPacket(dq)<br>  local packet = dq:getContent()<br>  local overlay = newDNSPacketOverlay(packet)<br>  print(overlay.qname)<br>  print(overlay.qtype)<br>  print(overlay.qclass)<br>  local count = overlay:getRecordsCountInSection(DNSSection.Answer)<br>  print(count)<br>  for idx=0, count-1 do<br>    local record = overlay:getRecord(idx)<br>    print(<a href="http://record.name">record.name</a>)<br>    print(record.type)<br>    print(record.class)<br>    print(record.ttl)<br>    print(record.place)<br>    print(record.contentLength)<br>    print(record.contentOffset)<br>  end<br>  return DNSAction.None<br>end<br><br>addAction(AllRule(), LuaAction(dumpPacket))<br><br><br><br><br>Essentially, it should print out details about the DNS answer it received.<br><br>On my machine, I get nothing.  It thinks count is always 0, when in fact that is not true.  At this point I am trying to figure out why this code does not work.</div></div>