You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module uses dns.lookup for dns requests. While dns.lookup uses OS-level caches, it is based on synchronous gethostbyname call and can be a problem (https://nodejs.org/api/dns.html#implementation-considerations). Got has its own dns cache, so isn't it better to use dns.resolve instead?
Also, it allows to use dns.Resolver object, which allows more customization
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The module uses dns.lookup for dns requests. While dns.lookup uses OS-level caches, it is based on synchronous gethostbyname call and can be a problem (https://nodejs.org/api/dns.html#implementation-considerations). Got has its own dns cache, so isn't it better to use dns.resolve instead?
Also, it allows to use dns.Resolver object, which allows more customization
Beta Was this translation helpful? Give feedback.
All reactions