dnslib
dnslib copied to clipboard
A Python library to encode/decode DNS wire-format packets
hi! how to log full url ex: www.exemple.com/ne/query.php?q=xxxx&u=xxxx
Hi Paul and thanks for a great library! It seems like the change in dns.py https://github.com/paulc/dnslib/commit/ce070170f989a994fded1b973537e1fbb3a7c45c breaks the error reporting on parse errors on HTTPS records. `hexlify` return bytes and...
This PR adds Python 3.7+ compatible type annotations (dropping support for
It would be good if `dnslib` added and exposed typing information so that calling libraries can check they are passing the correct types. To support inline type hints would require...
You can see from the following [test log](https://buildd.debian.org/status/fetch.php?pkg=python-dnslib&arch=all&ver=0.9.24-1&stamp=1704413945&raw=0) that there are now syntax warning with Python 3.12: ``` === digparser.py Testing: Python 3.12.1 //dnslib/digparser.py:144: SyntaxWarning: invalid escape sequence '\d' m...
DNS SRV RR should not be compressed. From [RFC2782](https://www.ietf.org/rfc/rfc2782.txt), page 3: > **Target** > The domain name of the target host. There MUST be one or more address records for...
No name compression, line 1457 dns.py Added SRV and NSEC to list of RR using no name compression, line 297 label.py
A DNSRecord instance such as ``` ``` will fail to pack() with the following error: ``` >>> r.pack() Traceback (most recent call last): File "", line 1, in File "/home/peter/.local/lib/python3.12/site-packages/dnslib/dns.py",...
Adds ECSOption as a subclass of EDNSOption, with more specific parsing. Open to feedback for improvements, but this works well for my use case.