2.0.3 • Published 5 years ago

dnstools v2.0.3

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

All in one library for dns query

DNS Tools is powered by view-dns and ip-api. It provides you with a bunch of dns related search api.

Node versions

v8.15.0 +

Features

  • All in one DNS Query Library
  • No Dependency
  • Formatted OUTPUT
  • Fast
  • Reliable

Functions

  • Reverse IP Lookup
  • IP To Location
  • Check if host is down
  • ASN Lookup
  • Reverse MX Lookup
  • Chinese Firewall Test
  • Port Scan
  • IP History
  • DNS Report
  • DNSSEC Test
  • WHOIS Report
  • Reverse Whois Lookup
  • Iran Firewall Test
  • DNS Record Lookup
  • Spam Database Lookup
  • Abuse Contact Lookup
  • Reverse NS Lookup
  • DNS Propagation Checker
  • Reverse DNS Lookup
  • MAC Address Lookup

Install and Use

npm i dnstools@latest

Demonstrating IP Location

const dnstool = require("dnstools");

dnstool.ipLocation("172.9.8.5", (err, data) => {
  if (err) {
    console.log("error in query");
  } else {
    console.log(data);

    /*  OUTPUT

            { as: 'AS7018 AT&T Services, Inc.',
                city: 'Los Angeles',
                country: 'United States',
                countryCode: 'US',
                isp: 'AT&T Services, Inc.',
                lat: 34.0818,
                lon: -118.1753,
                org: 'AT&T Corp',
                query: '172.9.8.5',
                region: 'CA',
                regionName: 'California',
                status: 'success',
                timezone: 'America/Los_Angeles',
                zip: '90032' }
        */
  }
});

API

FunctionDescriptionParametersCallback Data
reverseIpReverse lookup to quickly shows all other domains hosted from the same server.host: String callback: callback(err, data)err: Error or String data: Array
ipLocationDisplay geographic information about a supplied IP address including city, country, latitude, longitude and more.ip: String callback: callback(err, data)err: Error or String data: Object
isHostDownChecks whether a specified site is down or not.host: string callback: callback(err, data)err: Error or String data: Boolean
asnLookupDetermine which company owns the specified Autonomous System Numberasn: Number callback: callback(err, data)err: Error or String data: Object
reverseMXTakes a mail server (e.g. mail.google.com) and quickly shows all other domains that use the same mail servermailServer: String callback: callback(err, data)err: Error or String data: Array
chineseFirewallChecks whether a site is blocked by the Great Firewall of Chinahost: String callback: callback(err, data)err: Error or String data: Array
portScanPort scanner will test whether common ports are open on a server. Ports scanned are: 21, 22, 23, 25, 80, 110, 139, 143, 445, 1433, 1521, 3306 and 3389host: String callback: callback(err, data)err: Error or String data: Array
ipHistoryShows a historical list of IP addresses a given domain name has been hosted on as well as where that IP address is geographically located, and the owner of that IP address.host: String callback: callback(err, data)err: Error or String data: Array
dnssecTest if any domain name is configured for DNSSEC (Domain Name System Security Extensions).host: String callback: callback(err, data)err: Error or String data: Object
dnsreportView a complete report on the DNS settings for your domain. This tool is designed to assist webmasters and system administrators diagnose DNS related issues. A number of tests are run on your DNS settings with results displayed in an easy to understand manner.host: String callback: callback(err, data)err: Error or String data: Object

License

DNS Tool is licensed under Apache-2.0

FOSSA Status

Contribution

Read contribution guidelines from here

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago