saghul / pycares

Python interface for c-ares
https://pypi.org/project/pycares/
MIT License
163 stars 74 forks source link

Support for DNSSEC #125

Open NotoriousRebel opened 4 years ago

NotoriousRebel commented 4 years ago

It seems that c-ares supports DNSSEC for example it seems they support DNSKEY queries: https://github.com/c-ares/c-ares/blob/7ebedab25dab50b2f008fbef8601c223096bb780/test/dns-proto.cc#L132

However, when I try with pycares I get this error: image

It works with dns.resolver.query('dnssec-tools.org', 'DNSKEY')

westurner commented 2 years ago

__main__.py: https://github.com/saghul/pycares/blob/master/src/pycares/__main__.py#L39-L60

saghul commented 2 years ago

Last I checked c-ares does not support parsing DNSKEY RRs.

westurner commented 2 years ago

https://github.com/c-ares/c-ares/search?q=dnskey&type=

delv (bind) does dnssec ... Fwiw:

westurner commented 2 years ago

https://pypi.org/search/?q=dnskey

saghul commented 2 years ago

Thanks for compiling those links!

This project being a c-ares wrapper, will gain better DNSSEC support once it's also better supported by c-ares itself.