Open colinhacks opened 1 year ago
(Not sure what feedback is being solicited, if any, but the post is titled RFC 😄 For context, I've written a lot of code with node's dns module, and built a custom dns client in node with the native dgram
module because of limitations with the native node dns module)
If the goal is node.js parity, most of these probably aren't on the table, but if extending the ecosystem, these are my thoughts.
dns.setServers
)reverse
is missing (ie, dig -x 8.8.8.8
) - which is something supported by the node module
A proposal for a Bun-native DNS API (
Bun.dns
)Comparison to
node:dns
node:dns
equivalentBun.dns.Resolver
dns.Resolver
Bun.dns.getServers
dns.getServers
Bun.dns.setServers
dns.setServers
Bun.dns.lookupService
dns.lookupService
Bun.dns.reverse
dns.reverse
Bun.dns.lookup
dns.lookup
Bun.dns.resolve
dns.resolve
Bun.dns.a
dns.resolve4
Bun.dns.aaaa
dns.resolve6
Bun.dns.cname
dns.resolveCname
Bun.dns.caa
dns.resolveCaa
Bun.dns.mx
dns.resolveMx
Bun.dns.naptr
dns.resolveNaptr
Bun.dns.ns
dns.resolveNs
Bun.dns.ptr
dns.resolvePtr
Bun.dns.soa
dns.resolveSoa
Bun.dns.srv
dns.resolveSrv
Bun.dns.txt
dns.resolveTxt
Bun.dns.any
dns.resolveAny
Spec