freewhois
A node client that uses the iana RDAP DNS database to lookup WHOIS information for free.
TLD List comes from: https://data.iana.org/rdap/dns.json
To see the status of all RDAP TLD's: https://deployment.rdap.org/
TLD's last updated on 02/04/2025
Usage in code
-
Install via npm i freewhois --save
-
Code example:
const whois = require("freewhois");
async function whoisLookup() {
const data = await whois("https://www.google.com");
console.log(data);
}
Usage in CLI
-
Install via npm i freewhois -g
-
CLI command:
$ freewhois "https://www.google.com"
$
Manually update TLD's
npm run update-tlds
License
MIT