feat: export query function
This exports the query function so that users can use custom resolver options, e.g. 🍊 Tangerine which supports DNS over HTTPS ("DoH").
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.
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.