szmarczak / cacheable-lookup

A cacheable dns.lookup(…) that respects TTL :tada:
MIT License
193 stars 29 forks source link

round-robin dns support #56

Closed link89 closed 2 years ago

link89 commented 2 years ago

It seems like cacheable-lookup doesn't support round-robin DNS. Is there any options to support it?

szmarczak commented 2 years ago

https://github.com/szmarczak/cacheable-lookup/pull/57#issuecomment-1176681555

If you insist on doing this, you can simply wrap lookup with {all: true} and simply do your own logic.

link89 commented 2 years ago

That will have to change the implementation of request, which is what I try to avoid.