# bare-dns

> Domain name resolution for JavaScript

Latest version **2.3.0** (published 2026-10-09) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2026-10-09 |
| First published | 2024-05-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-dns
- Repository: https://github.com/holepunchto/bare-dns
- Issues: https://github.com/holepunchto/bare-dns/issues
- npm.io page: https://npm.io/package/bare-dns

## Recent versions

- 2.3.0 (latest) — 2026-10-09
- 2.2.1 — 2026-09-16
- 2.2.0 — 2026-08-25
- 2.1.4 — 2025-09-04
- 2.1.3 — 2025-08-21
- 2.1.2 — 2025-06-26
- 2.1.1 — 2025-06-12
- 2.1.0 — 2025-06-06
- 2.0.5 — 2025-03-24
- 2.0.4 — 2025-01-23
- 2.0.3 — 2025-01-23
- 2.0.2 — 2024-12-13
- 2.0.1 — 2024-12-10
- 2.0.0 — 2024-11-26
- 1.0.5 — 2024-10-20
- … 5 more at https://npm.io/package/bare-dns/versions

## README

# bare-dns

Domain name resolution for JavaScript.

```
npm i bare-dns
```

## Usage

```js
const dns = require('bare-dns')

dns.lookup('github.com', (err, address, family) => {
  console.log(address, family)
})
```

## API

See the [`bare-dns` reference](https://docs.pears.com/reference/bare/modules/bare-dns).

## License

Apache-2.0

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