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

@asdsadw12312dwd2112xz/dns-lookup-cli

v1.0.0

Published

DNS lookup tool — A/AAAA/MX/TXT/NS/CNAME/SOA/SRV with propagation & reverse

Downloads

90

Readme

dns-lookup-cli

DNS lookup tool for the terminal. Supports A, AAAA, MX, TXT, NS, CNAME, SOA, SRV records with color-coded output, TTL display, reverse DNS, propagation checking, and JSON output.

Install

npm install -g dns-lookup-cli

Or run without installing:

npx dns-lookup-cli <domain>

Usage

dns-lookup-cli [options] [domains...]

Options

| Flag | Description | |------|-------------| | -t, --type <type> | Record type: A, AAAA, MX, NS, TXT, CNAME, SOA, SRV, ALL (default: ALL) | | -s, --server <ip> | Custom DNS server IP (default: system resolver) | | -r, --reverse | Reverse DNS lookup (PTR) for IP address(es) | | -p, --propagation | Check propagation across Google, Cloudflare, OpenDNS, Quad9, AdGuard | | -j, --json | Output as JSON | | -V, --version | Print version | | -h, --help | Show help |

Examples

# All common records for a domain
dns-lookup-cli example.com

# Only MX records
dns-lookup-cli example.com --type MX

# Multiple domains at once
dns-lookup-cli example.com google.com

# Use Cloudflare DNS
dns-lookup-cli example.com --server 1.1.1.1

# Reverse lookup
dns-lookup-cli --reverse 8.8.8.8

# Check propagation of A records
dns-lookup-cli example.com --propagation

# Check propagation for a specific type
dns-lookup-cli example.com --propagation --type MX

# JSON output
dns-lookup-cli example.com --json

# JSON output piped to jq
dns-lookup-cli example.com --type A --json | jq '.results.A.records'

Output

Records are color-coded by type:

  • A — green
  • AAAA — cyan
  • MX — magenta (sorted by priority)
  • NS — yellow
  • TXT — blue
  • CNAME — red
  • SOA — white
  • SRV — orange

Each record shows TTL and query time. Propagation check compares results across 5 major public resolvers and reports matches/mismatches.

Build from source

npm install
npm run build
node dist/index.js example.com

License

MIT