You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always welcome contributions. 😄 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:
It appears you implemented the DoH functionality by subclassing DnsClient. Ideally, DoH would be implemented as subclass of AbstractDnsDataSource.
Depending on the required dependencies for DoH, the DoH functionality should be put in a minidns-doh subproject.
The Implementation should be pure Java with respect to the Animal Sniffers Android compatibility checks
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. ;-)
Activity
Flowdalic commentedon Oct 25, 2021
I always welcome contributions. 😄 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 ofAbstractDnsDataSource.minidns-dohsubproject.AbstractDnsDataSourcehas 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. ;-)
rekire commentedon Oct 25, 2021
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.
Sami32 commentedon Feb 28, 2024
If it can be of some help?
dnsjava/dnsjava@9af9a0f
Duplicate of #50
dugsmith commentedon Feb 28, 2024
Thank you @Sami32. It looks to me that something more like @rekire's solution would work better for Android, though. Am I missing something?