DnsClient.NET icon indicating copy to clipboard operation
DnsClient.NET copied to clipboard

Is it possible to get the DNS question and response binary array?

Open GF-Huang opened this issue 2 years ago • 1 comments

For example:

var bytes = new DnsQuestion().ToArray();

GF-Huang avatar Apr 26 '22 17:04 GF-Huang

No this is currently not possible. Mostly by design for performance reasons. I don't keep the bytes around after sending the question / parsing the response which gives a low memory footprint and those allocated byte arrays might be reused.

MichaCo avatar Apr 30 '22 13:04 MichaCo