npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dnsprober

v1.0.0

Published

A concurrent CLI that resolves domains across multiple DNS servers and reports results in a live log and summary table.

Readme

dnsprober

A fast, concurrent CLI for resolving domains against multiple DNS servers and comparing the results.

What it does

dnsprober takes a list of domains and a list of DNS server IPs, then resolves every domain against every server in parallel (with a configurable concurrency limit). Each lookup's addresses, status, and timing are streamed to the console and written to an output file, and a summary table is printed at the end grouped by domain and sorted by response time.

Features

  • Many-to-many resolution — resolves every domain against every DNS server you provide
  • Concurrency control — cap how many lookups run at once via a semaphore
  • Live streaming output — results print as they complete, not just at the end
  • Persistent log file — every result (success or failure) is appended to an output file
  • Summary table — successful results are grouped by domain and sorted by response time in a clean ASCII table
  • DNS server file validation — only valid, de-duplicated IPv4 addresses are used as resolvers
  • Debug logging — fine-grained logging per component via the debug package

Requirements

  • Node.js (with native TypeScript execution support, e.g. Node 22.6+ using --experimental-strip-types, or run via tsx/ts-node)

Installation

git clone <this-repo>
cd dnsprober
npm install

Usage

dnsprober --domains <d1,d2,...> --dns <resolvers.txt> [options]

Options

| Flag | Description | Required | Default | | --------------------- | ------------------------------------------------------- | -------- | --------------------------------- | | --domains <list> | Comma-separated list of domains to resolve | Yes | — | | --dns <file> | Path to a file containing DNS server IPs (one per line) | Yes | — | | --concurrency <num> | Maximum number of concurrent resolutions | No | 10 | | --output <file> | Path to the output result file | No | dns-scan-result-<timestamp>.txt | | -h, --help | Show the help message | No | — |

DNS server file format

A plain text file with one IPv4 address per line. Blank lines and lines starting with # are ignored, and duplicates/invalid entries are filtered out automatically.

# Public resolvers
8.8.8.8
1.1.1.1
9.9.9.9

Example

dnsprober --domains example.com,anthropic.com --dns resolvers.txt --concurrency 20 --output results.txt

Sample console output:

Resolving 2 domain(s) against 3 DNS server(s), concurrency=20
Results streaming to: /path/to/results.txt

[ OK ] example.com via 8.8.8.8 — 1 address(es): 93.184.215.14 (42ms)
[ OK ] anthropic.com via 1.1.1.1 — 2 address(es): 104.18.10.106, 104.18.11.106 (55ms)
[FAIL] example.com via 9.9.9.9 — error: ETIMEOUT (2001ms)

┌──────────────┬────────────┬────────┬───────────────────────────────┬───────────┐
│ Domain       │ DNS Server │ Status │ Addresses                     │ Time (ms) │
├──────────────┼────────────┼────────┼───────────────────────────────┼───────────┤
│ example.com  │ 8.8.8.8    │ OK     │ 93.184.215.14                 │ 42        │
│ anthropic.com│ 1.1.1.1    │ OK     │ 104.18.10.106, 104.18.11.106  │ 55        │
└──────────────┴────────────┴────────┴───────────────────────────────┴───────────┘

Every result (including failures) is also appended to the output file, e.g.:

[ OK ] example.com via 8.8.8.8 — 1 address(es): 93.184.215.14 (42ms)
[FAIL] example.com via 9.9.9.9 — error: ETIMEOUT (2001ms)
[ OK ] anthropic.com via 1.1.1.1 — 2 address(es): 104.18.10.106, 104.18.11.106 (55ms)

Debug logging

dnsprober uses the debug package internally. Enable verbose logging with the DEBUG environment variable:

DEBUG=app:* dnsprober --domains example.com --dns resolvers.txt

Available namespaces: app:ip-validator, app:file-loader, app:arg-parser, app:resolver, app:batch, app:organizer, app:writer, app:table, app:main.

Exit codes

  • 0 — completed successfully
  • 1 — invalid arguments, unreadable DNS file, or no valid DNS servers found

License

MIT