tjfontaine / node-dns

Replacement dns module in pure javascript for node.js
MIT License
585 stars 154 forks source link

How to make multiple requests? #105

Closed emcniece closed 5 years ago

emcniece commented 8 years ago

Currently trying to make a DNS lookup tool that accepts an array of domain names. What is the best way to process a batch of questions? Should requests be deferred, or promise chained?

Implementation: https://github.com/emcniece/dns-lookup/blob/master/src/server/routes.js#L44

finom commented 7 years ago

Use 'ANY' resource type. But keep in mind you may get records non handled by the library.

WoZ commented 5 years ago

@emcniece

Hello! I've found that this module is unsupported and has some bugs. I may propose to use our module that was tested in production and highload environments. Also we have good unit and functional tests with 100% coverage, multi-records resolving and TTL support. Here it is: https://github.com/LCMApps/dns-lookup-cache