paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
295 stars 84 forks source link

DNS Record Type 65 Unsupported #27

Closed markfortma closed 3 years ago

markfortma commented 3 years ago
File "/home/matt/Programming/Python/nsfilter/venv/lib/python3.7/site-packages/dnslib/bimap.py", line 68, in __getitem__
raise self.error("%s: Invalid forward lookup: [%s]" % (self.name,k))
File "/home/matt/Programming/Python/nsfilter/rules.py", line 525, in __call__
qtype = dnslib.dns.QTYPE[nsquery.q.qtype]
dnslib.dns.DNSError: QTYPE: Invalid forward lookup: [65]
File "/home/matt/Programming/Python/nsfilter/venv/lib/python3.7/site-packages/dnslib/bimap.py", line 68, in __getitem__
raise self.error("%s: Invalid forward lookup: [%s]" % (self.name,k))
----------------------------------------
dnslib.dns.DNSError: QTYPE: Invalid forward lookup: [65]

Is there any expectation that this will get added?

markfortma commented 3 years ago

Reviewing DNS traffic, it would appear that no upstream DNS server understands the query as well. Adding them to the QTYPE alleviated these errors, for now.

dns.py.txt

SeaHOH commented 3 years ago

dnspython's support is more complete, but it has bigger codes for extra functions.

paulc commented 3 years ago

Apologies for delay getting to this - have added in 0.9.15