https://github.com/fridus/checkdns
node.js - Resolution of domain names or IP addresses given or from a file.
https://github.com/fridus/checkdns
Last synced: 3 months ago
JSON representation
node.js - Resolution of domain names or IP addresses given or from a file.
- Host: GitHub
- URL: https://github.com/fridus/checkdns
- Owner: Fridus
- Created: 2013-05-30T14:09:43.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T13:23:41.000Z (over 4 years ago)
- Last Synced: 2025-10-12T11:56:36.301Z (8 months ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Checkdns
========
node.js - Resolution of domain names or IP addresses given or from a file.
Node v6+
## Installation
```
$ npm install -g checkdns
```
## Use command line
Help:
```
checkdns -h
```
Use:
```
checkdns github.com [domain2] [domain3] ...
checkdns 204.232.175.90 [IP2] [IP3] ...
```
With rtype (type `any` with node v8+):
```
checkdns github.com -t [cname|ns|txt|aaaa|mx|ptr|any]
```
Using file:
You can use a file with a list of domains. There are separate by return line or ';'.
```
checkdns -f myFile
checkdns -f myFile -t ...
```
## Usage
```
var checkdns = require('checkdns');
```
Resolve a domain:
```
checkdns.nslookup(domain, rtype);
```
Resolve domains from a file:
```
checkdns.nslookupFromFile(file, rtype);
```