https://github.com/zbo14/dnsdump
A CLI tool that dumps a bunch of DNS info for a domain.
https://github.com/zbo14/dnsdump
cli dns nodejs
Last synced: 3 months ago
JSON representation
A CLI tool that dumps a bunch of DNS info for a domain.
- Host: GitHub
- URL: https://github.com/zbo14/dnsdump
- Owner: zbo14
- License: mit
- Created: 2019-10-08T18:38:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T19:39:19.000Z (over 4 years ago)
- Last Synced: 2025-05-28T03:50:27.514Z (about 1 year ago)
- Topics: cli, dns, nodejs
- Language: JavaScript
- Homepage: https://zbo14.github.io/projects/dnsdump/
- Size: 81.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://nodejs.org/download/release/v12.16.1/) or [nvm](https://github.com/nvm-sh/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
...
```