What I am trying to do is make a dns query using the dnspython
library and get the response in the dns wire format or a string of bytes. Right not the dns.resolver.resolve()
method is returning a <class 'dns.resolver.Answer'>
Is there a way I can get the dns response in the wire format or convert my dns.resolver.Answer
type to wire format?