>>> r.pack()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/peter/.local/lib/python3.12/site-packages/dnslib/dns.py", line 335, in pack
rr.pack(buffer)
File "/home/peter/.local/lib/python3.12/site-packages/dnslib/dns.py", line 888, in pack
self.rdata.pack(buffer)
^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'pack'
A DNSRecord instance such as
will fail to pack() with the following error:
AttributeError: 'str' object has no attribute 'pack'
I believe the source of the error is https://github.com/paulc/dnslib/blob/724f94e52cbc030211d0f86b2271aa2f4874d704/dnslib/dns.py#L831