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

@bobfromarcher/dnsward

v1.0.0

Published

Audit the DNS health of a domain: A/AAAA, NS count and diversity, SOA timer sanity (RFC 1912), CAA, apex CNAME, TTL, and DNSSEC. Scored, with fixes. Zero dependencies.

Readme

dnsward

npm CI license zero deps

Audits the DNS health of a domain. It queries live DNS and checks the address records, nameserver count and diversity, SOA timers against RFC 1912, CAA, apex CNAME misconfiguration, TTL sanity, and DNSSEC, then scores the domain from 0 to 100 with a letter grade and specific fixes. No dependencies, no AI. The result is the same every time because it reads real DNS.

dnsward is the infrastructure companion to mailward: mailward covers email authentication, dnsward covers the zone itself.

Install

npm install -g @bobfromarcher/dnsward
# or once:
npx @bobfromarcher/dnsward example.com

Usage

dnsward <domain> [options]

| Option | Description | | --- | --- | | --timeout <ms> | DNS query timeout (default 5000) | | --json | Output JSON | | --quiet, -q | No output, exit code only | | -h, --help | Show help | | -v, --version | Show version |

The exit code is 0 for grade A or B and 1 for C or worse, so it gates a deploy or a monitoring job.

What it checks

  • Address: the apex resolves over A or AAAA.
  • Apex CNAME: a CNAME at the zone apex is invalid and breaks NS, SOA and MX. dnsward flags it.
  • www: the www name resolves, by A record or CNAME.
  • Nameservers: at least two, and whether they sit on more than one zone. A single nameserver, or all of them at one provider, is a single point of failure.
  • SOA: present, with refresh, retry, expire and minimum timers checked against the RFC 1912 ranges, including the common mistake of retry being larger than refresh.
  • CAA: present, so only the certificate authorities you choose can issue for the domain.
  • TTL: the apex record TTL is neither so low it is fragile nor so high it is slow to change.
  • DNSSEC: whether the zone is signed. This uses a direct DNSKEY query and degrades to "not checked" if the resolver does not answer.

As a library

const { audit } = require('@bobfromarcher/dnsward');

const report = await audit('example.com');
console.log(report.grade, report.score);
for (const check of report.checks) {
  if (check.status === 'fail' || check.status === 'warn') console.log(check.title, check.fix);
}

audit(domain, opts) accepts an injected resolver and a dnssec override, which makes it testable without touching the network.

Examples

dnsward cloudflare.com
dnsward example.com --json | jq '.grade'

Notes

dnsward reports on the public DNS of a zone. It does not check internal or split-horizon DNS, and the nameserver-diversity signal is based on the registrable name, which is a heuristic rather than a network-path analysis.

Development

git clone https://github.com/bobfromarcher/dnsward
cd dnsward
node test/test.js

CI runs the suite on Node 18, 20 and 22 across Linux, macOS and Windows.

License

MIT, bobfromarcher.