npm install --global cacheable-dns
# or
yarn global add cacheable-dns
Usage
Usage: cacheable-dns [options] <server>
Options:
-V, --version output the version number
--timeout <seconds> (default: "30")
--port <port> (default: "53")
--time-to-live <seconds>
--stale-while-revalidate <seconds>
--stale-if-error <seconds>
--cache <filename> The filename of disk cache, memory cache is used by default
--log <level> (default: "info")
-h, --help display help for command