# Install dns-query with npm

Node & Browser tested, Non-JSON DNS over HTTPS fetching with minimal dependencies. Version 0.11.2 via npm; verified 2022-07-20.

## Install

```sh
sudo av install npm:dns-query
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g dns-query
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:dns-query
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/dns-query>
- **Version:** 0.11.2
- **Source summary:** Node & Browser tested, Non-JSON DNS over HTTPS fetching with minimal dependencies.
- **Homepage:** <https://github.com/martinheidegger/dns-query#readme>
- **Repository:** <https://github.com/martinheidegger/dns-query>
- **Upstream docs:** <https://github.com/martinheidegger/dns-query#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/dns-query/-/dns-query-0.11.2.tgz>
- **Issue tracker:** <https://github.com/martinheidegger/dns-query/issues>
- **Published:** 2022-07-20T07:46:28.949Z
- **Last updated:** 2022-07-20T07:46:28.949Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dns-query (cli)
- dns-query (alias)

## Dependencies

- @leichtgewicht/base64-codec
- @leichtgewicht/dns-packet
- @leichtgewicht/dns-socket
- @leichtgewicht/ip-codec
- utf8-codec

## Build dependencies

- @definitelytyped/dtslint
- @leichtgewicht/dnsstamp
- @leichtgewicht/esm2umd
- abort-controller
- browserify
- c8
- envify
- fresh-tape
- markdown-it
- ngrok
- p-filter
- standard
- tape-run
- typescript
- xhr2

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.11.2
- Package-manager updated: 2022-07-20
- Local data: ok
- Upstream repository: https://github.com/martinheidegger/dns-query
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for dns-query. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.11.2
- **Version Count:** 10
- **Maintainers:** leichtgewicht
- **Author:** Martin Heidegger
- **Publisher:** leichtgewicht
- **Integrity:** sha512-zF8qxQpqCB467o4A63DLpQClo77H642JEKMx0Ra9GFww7Rx0234Fo8NoG0LBoSBZxamWkXfLxhzDG19bTBHvXQ==
- **Shasum:** d6253c1e4d2274daf09b8365e84b46a9dc3dd918
- **Unpacked Size:** 172,367
- **File Count:** 0
- **Created At:** 2021-07-07T06:12:29.965Z
- **Latest Published At:** 2022-07-20T07:46:28.949Z
- **Modified At:** 2022-07-20T07:46:29.050Z


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [dns](https://www.automicvault.com/pkg/npm/dns/) - Both packages touch the same language runtime or ecosystem. Shared terms: dns, node.
- [dohjs](https://www.automicvault.com/pkg/npm/dohjs/) - Local package facts share a topical domain. Shared terms: dns, dns-packet, doh, https, over.
- [osls](https://www.automicvault.com/pkg/npm/osls/) - Both packages touch the same language runtime or ecosystem. Shared terms: client, http, https, json, node.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
