New docs portal launching December 21st! All Exabeam, LogRhythm, and API documentation is moving to docs.exabeam.com. Existing links will redirect automatically, but we recommend updating your bookmarks.
5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0
5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0

Display Hex Dump for DNS Traffic

This function displays a Wireshark-style Hex Dump for all DNS traffic.

function DnsHexDump (msg, packet)
require 'HexString' require 'LOG'


if packet ~= nil and GetLatestApplication(msg) == "dns" then if GetPacketLength(packet) > 0 then local packetString = GetPacketString(packet) local packetHexDump = HexDump(packetString) EZINFO('DNS Packet\n', GetUuid(msg), "\n", packetHexDump) end endend