rapiddns-io-scrapper
v1.1.2
Published
Node.js module to scrape and extract result from rapiddns.io
Downloads
17
Maintainers
Readme
RapidDNS scrapper
Node.js module to scrape and extract result from rapiddns.io (unofficial).
RapidDNS is a dns query tool which make querying subdomains or sites of a same ip easy!
Install
npm i rapiddns-io-scrapper
API
rapiddns(query, queryType)
query: string, mandatory
eg: 'google.com', '8.8.8.8'
If you put a domain/host name on query argument, it will return subdomains for that domain. If you put an IP address (IPv4 or IPv6), it will return hostname with same ip address.
queryType: string, optional
It is optional. If you want to specify it, can be one of: "subdomain" or "sameip". You don't need to specify it. RapidDNS will detect suitable resolver by your "query" value.
Example
const rapiddns = require('rapiddns-io-scrapper');
(async () => {
const subdomains = await rapiddns('example.org');
const sameips = await rapiddns('8.8.8.8');
})();
CLI
You can also call this module from CLI.
Install this package as global
sudo npm i --global rapiddns-io-scrapper
Then you can call it from your shell, eg:
rapiddns example.org
It will print some lines like these:
example.org
www.example.org
Limitation
RapidDNS web will limit result to max 10000 items (100 pages * 100 items per pages).
License
Licensed under MIT license. See in LICENSE file.
Changelog
See in CHANGELOG.md file.