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
Copy file name to clipboardExpand all lines: readme.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -481,10 +481,13 @@ Default: `false`
481
481
482
482
###### dnsCache
483
483
484
-
Type: `object | false`\
485
-
Default: `new CacheableLookup()`
484
+
Type: `CacheableLookup | false`\
485
+
Default: `false`
486
+
487
+
An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups. Useful when making lots of requests to different *public* hostnames.
486
488
487
-
An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups.
489
+
**Note:** This should stay disabled when making requests to internal hostnames such as `localhost`, `database.local` etc.\
490
+
`CacheableLookup` uses `dns.resolver4(..)` and `dns.resolver6(...)` under the hood and fall backs to `dns.lookup(...)` when the first two fail, which may lead to additional delay.
0 commit comments