whoiser icon indicating copy to clipboard operation
whoiser copied to clipboard

List of TLDs

Open azakero opened this issue 3 years ago • 1 comments

Can you please provide the list of all TLDs that are currently supported? May be you can update the list as you include more TLDs?

azakero avatar Aug 13 '21 17:08 azakero

hey @azakero,

All TLDs are supported 😀 WHOIS servers for a few TLDs are hardcoded in the library https://nodejs.org/en/about/releases/ and the rest are automatically retrieved from IANA server when needed:

  • if no WHOIS server for a TLD is known https://github.com/LayeredStudio/whoiser/blob/master/src/whoiser.js#L81
  • the library makes a request to whois.iana.org to request the WHOIS server for that TLD https://github.com/LayeredStudio/whoiser/blob/2f51c63337e11183ca752d83dd22cc7113c65d44/src/whoiser.js#L56
  • this info is cached in memory and reused for subsequent calls for same TLDs

The full list can also be downloaded from here https://data.iana.org/TLD/tlds-alpha-by-domain.txt

Hope this helps

AndreiIgna avatar Dec 05 '21 16:12 AndreiIgna