1.3.0 • Published 3 months ago

async-whois-dns v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

async-whois-dns

Makes WHOIS, dig ns, low-level RDAP calls to be available in environments without bash commands (example AWS Lambda)

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.whois(
  // This should be a string with basic latin letters only.
  "www.some.example.co.uk"
);

Installation

npm install async-whois-dns

Methods

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.rdap(
    // This should be a string with basic latin letters only.
    "www.some.example.co.uk" OR "192.168.1.1"
);

Takes a URL string or IP and tries to recover the whois information with RDAP. If failed try the whois

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.digNs(
    // This should be a string with basic latin letters only.
    "www.some.example.co.uk"
);

Takes a URL string and tries to recover the Name Server.

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.digMx(
    // This should be a string with basic latin letters only.
    "example.com"
);

Takes a URL string and tries to recover the MX Server.

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.digTxt(
    // This should be a string with basic latin letters only.
    "example.com"
);

Takes a URL string and tries to recover the TXT Server.

import asyncWhois from "async-whois-dns";

const result = await asyncWhois.ipResolver(
    // This should be a string with basic latin letters only.
    "www.some.example.co.uk"
);

Takes a URL string and tries to recover the IP address associated with it.

License

MIT

1.2.8

3 months ago

1.3.0

3 months ago

1.2.7

6 months ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.4

6 months ago

1.1.3

6 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago