We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The UDP object doesn't expose decoded DNS data if the sport or dport are 53. It just saves the data as this.data:
UDP
DNS
sport
dport
this.data
this.data = raw_packet.slice(offset, offset + (this.length - 8));
However, it does decode DNS in the toString() function:
toString()
UDP.prototype.toString = function () { var ret = "UDP " + this.sport + "->" + this.dport + " len " + this.length; if (this.sport === 53 || this.dport === 53) { ret += (new DNS().decode(this.data, 0, this.data.length).toString()); } return ret; };
Moreover, the pcap library doesn't export the DNS decoder for a developer to manually decode DNS.
pcap
Is there a way to get the decoded DNS packet from a UDP packet?
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
UDP
object doesn't expose decodedDNS
data if thesport
ordport
are 53. It just saves the data asthis.data
:However, it does decode
DNS
in thetoString()
function:Moreover, the
pcap
library doesn't export theDNS
decoder for a developer to manually decode DNS.Is there a way to get the decoded
DNS
packet from aUDP
packet?Thanks
The text was updated successfully, but these errors were encountered: