dnsdump

Dumps a bunch of DNS data about a domain

Usage no npm install needed!

<script type="module">
  import dnsdump from 'https://cdn.skypack.dev/dnsdump';
</script>

README

dnsdump

A CLI tool that dumps a bunch of DNS info for a domain.

Install

npm i dnsdump

For development

Make sure you have Node 12.x or nvm installed.

Clone the repo, nvm i (if you're using nvm), and npm i.

Usage

$ dnsdump foobar.com

A:
  1.2.3.4
MX:
  exchange:
    abc.mail.com
  priority:
    10,
  exchange:
    bcd.mail.com
  priority:
    5
...

or output JSON:

$ json=true dnsdump foobar.com

{
  "A": [
    "1.2.3.4"
  ],
  "MX": [
    {
      "exchange": "abc.mail.com",
      "priority": 10
    },
    {
      "exchange": "bcd.mail.com",
      "priority": 5
    }
  ],
  ...
}

and specify DNS servers:

$ dnsdump foobar.com 8.8.8.8 8.8.4.4

A:
  1.2.3.4
MX:
  exchange:
    abc.mail.com
  priority:
    10,
  exchange:
    bcd.mail.com
  priority:
    5
...