njs icon indicating copy to clipboard operation
njs copied to clipboard

DNS module

Open drsm opened this issue 11 months ago • 2 comments

Hi! :)

It would be nice to have a node:dnsPromises'like API build on top of niginx resolvers.

drsm avatar Feb 11 '25 10:02 drsm

Hi @drsm,

Do you have any specific use case in mind for this?

xeioex avatar Feb 13 '25 16:02 xeioex

Hi @xeioex,

I can second the desire to have such a feature. My current work-around is to perform a fetch to a DOH server.

My use case is that my dns provider offers HTTP health checks but currently doesn't send any user-agent. In order to restrict responses to just their infrastructure I perform a PTR lookup of the remote IP and drop unwanted traffic.

Obviously, this is bad behavior from my provider and I have filed a ticket with them but it would be wonderful to have access to configure a resolver as I could then cache responses locally. This would greatly improve responsiveness as well as make for a better internet by eliminating a solid chunk of traffic.

fritz-fritz avatar Sep 17 '25 08:09 fritz-fritz