1.4.0 • Published 2 years ago

async-whois-dns v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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.4.0

2 years ago

1.2.8

2 years ago

1.3.0

2 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago