dnsbl icon indicating copy to clipboard operation
dnsbl copied to clipboard

feat: export query function

Open titanism opened this issue 2 years ago • 2 comments

This exports the query function so that users can use custom resolver options, e.g. 🍊 Tangerine which supports DNS over HTTPS ("DoH").

titanism avatar Mar 02 '23 21:03 titanism

It would be nice to be able to pass a custom resolver from the get-go. Also - the timeout stuff should be configurable or if you pass a custom resolver it should be disabled, because otherwise it'd cancel all dns requests because it calls .cancel() method. Maybe an AbortController is better - or leave it up to the user - and tell them this in the README.

titanism avatar Mar 02 '23 21:03 titanism

Hmm I think it's better to introduce a opts.resolver option on the public APIs lookup and batch. Exporting this "dirty" internal function seems wrong to me.

silverwind avatar Mar 18 '23 15:03 silverwind