# cacheable-dns

> ```sh npm install --global cacheable-dns # or yarn global add cacheable-dns ```

Latest version **0.5.1** (published 2026-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install cacheable-dns
pnpm add cacheable-dns
yarn add cacheable-dns
bun add cacheable-dns
```

Provides the command `cacheable-dns`.

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2026-03-01 |
| First published | 2022-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22 |
| Dependencies | 16 |
| Unpacked size | 33.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | BlackGlory |
| Maintainers | black_glory |
| Keywords | dns |

## Links

- npm: https://www.npmjs.com/package/cacheable-dns
- Repository: https://github.com/BlackGlory/cacheable-dns
- Homepage: https://github.com/BlackGlory/cacheable-dns#readme
- Issues: https://github.com/BlackGlory/cacheable-dns/issues
- npm.io page: https://npm.io/package/cacheable-dns

## Dependencies (16)

- [chalk](https://npm.io/package/chalk.md) ^5.6.2
- [commander](https://npm.io/package/commander.md) ^14.0.3
- [extra-dns](https://npm.io/package/extra-dns.md) ^0.1.8
- [brave-json](https://npm.io/package/brave-json.md) ^0.2.1
- [extra-rand](https://npm.io/package/extra-rand.md) ^0.5.1
- [extra-abort](https://npm.io/package/extra-abort.md) ^0.4.1
- [extra-utils](https://npm.io/package/extra-utils.md) ^6.0.0
- [extra-logger](https://npm.io/package/extra-logger.md) ^0.8.0
- [extra-memoize](https://npm.io/package/extra-memoize.md) ^0.10.1
- [extra-promise](https://npm.io/package/extra-promise.md) ^7.1.1
- [extra-disk-cache](https://npm.io/package/extra-disk-cache.md) ^0.13.0
- [extra-filesystem](https://npm.io/package/extra-filesystem.md) ^0.6.2
- [@blackglory/errors](https://npm.io/package/@blackglory/errors.md) ^3.1.0
- [@blackglory/prelude](https://npm.io/package/@blackglory/prelude.md) ^0.4.0
- [@extra-memoize/memory-cache](https://npm.io/package/@extra-memoize/memory-cache.md) ^0.3.1
- [@extra-memoize/extra-disk-cache](https://npm.io/package/@extra-memoize/extra-disk-cache.md) ^0.9.3

## Recent versions

- 0.5.1 (latest) — 2026-03-01
- 0.5.0 — 2026-03-01
- 0.4.3 — 2026-02-13
- 0.4.2 — 2024-12-28
- 0.4.1 — 2024-12-19
- 0.4.0 — 2024-12-19
- 0.3.3 — 2024-12-16
- 0.3.2 — 2024-12-16
- 0.3.1 — 2024-12-15
- 0.3.0 — 2023-12-28
- 0.2.0 — 2023-12-27
- 0.1.18 — 2023-01-28
- 0.1.17 — 2022-10-05
- 0.1.16 — 2022-08-14
- 0.1.15 — 2022-08-11
- … 15 more at https://npm.io/package/cacheable-dns/versions

## README

# cacheable-dns
## Install
```sh
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
```

---
_Source: https://npm.io/package/cacheable-dns · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
