Open rekire opened 2 years ago
Are you interested in a PR?
I always welcome contributions. :smile: However, no contribution is guranteed to be accepted as is, and, depending on the extent of the contribution, it may take a while to review. That said, here is some first, hopefully relevant, feedback:
DnsClient
. Ideally, DoH would be implemented as subclass of AbstractDnsDataSource
.minidns-doh
subproject.AbstractDnsDataSource
has a synchronous API and an asynchronous API. Since the H in DoH stands for HTTP, a native asynchronous API should be easy to add. :)That's it from the top of my head. It's always easier to discuss actual code, so feel encouraged to submit the a PR. ;-)
My code snip it above is a simple proof of concept which works for me.
Thank you for your feedback. I'll check if can fulfill your requirements and then I'll open a PR for that.
If it can be of some help?
https://github.com/dnsjava/dnsjava/commit/9af9a0f031056608648163e7c9bdc64d3bccbd2a
Duplicate of #50
Thank you @Sami32. It looks to me that something more like @rekire's solution would work better for Android, though. Am I missing something?
I played today a bit more with your library and build a DoH client (in Kotlin) on top.
Are you interested in a PR? I would improve the code before. Just wondering if this could be interested for you at all.