DnsClient.NET
DnsClient.NET copied to clipboard
Is it possible to get the DNS question and response binary array?
For example:
var bytes = new DnsQuestion().ToArray();
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.