-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use native nodejs dns API #11
Comments
The native DNS api doesn't provide enough customisation of the DNS I noticed If you know of an alternative package I'd happy to look into it. Maybe I'll request native support via nodejs/node |
Native DNS API wraps a C library called c-ares which appears to be well maintained |
I did try to go native initially, and I've been trying to remember why I ended up looking around for a package. So I tried again to refamiliarise myself; it turns out the So and hostname which is just an A record would require a failed CNAME query just to check if there is one, and a hostname which uses CNAMES would require a lookup per CNAME record and a final one for the A record. Not impossible to iterate through all the records, but not optimal either. So I wanted a single call that would return the Answer to full recursive lookup. If you know of a native way of returning the full DNS answer I'd be interested. |
I see the problem. I suggested something via nodejs/node#36973 Please feel free to support/extend! |
One option I played with, albeit radical, is to send the DNS question as a UDP datagram. |
Thanks @foaadnami, I'll take a look. It's interesting for support of DNS over HTTPS too (which was on my To Do list). |
Hi Mark
Not sure if this is even feasible but it appears like the dns library being used is perhaps outdated and not maintained
Wondering if there is merit in using nodejs native DNS api https://nodejs.org/api/dns.html
Btw, thanks for the "releases" move!
The text was updated successfully, but these errors were encountered: