diff --git a/package-lock.json b/package-lock.json index 4dd7c2c..e994e2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "whoiser", - "version": "1.15.0", + "version": "1.15.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "whoiser", - "version": "1.15.0", + "version": "1.15.1", "license": "MIT", "dependencies": { "punycode": "^2.1.1" diff --git a/package.json b/package.json index cc5a533..35716d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "whoiser", - "version": "1.15.0", + "version": "1.15.1", "description": "Whois info for TLDs, domains and IPs", "types": "./index.d.ts", "typings": "./index.d.ts", diff --git a/src/whoiser.js b/src/whoiser.js index 2040adb..9033b1c 100644 --- a/src/whoiser.js +++ b/src/whoiser.js @@ -13,25 +13,32 @@ let cacheTldWhoisServer = { // ccTLDs ai: 'whois.nic.ai', + au: 'whois.auda.org.au', co: 'whois.nic.co', ca: 'whois.cira.ca', + do: 'whois.nic.do', gl: 'whois.nic.gl', in: 'whois.registry.in', io: 'whois.nic.io', it: 'whois.nic.it', me: 'whois.nic.me', ro: 'whois.rotld.ro', + rs: 'whois.rnids.rs', so: 'whois.nic.so', us: 'whois.nic.us', + ws: 'whois.website.ws', agency: 'whois.nic.agency', app: 'whois.nic.google', biz: 'whois.nic.biz', country: 'whois.uniregistry.net', // hardcoded because `whois.iana.org` sometimes returns 'whois.uniregistry.net' or 'whois.nic.country' dev: 'whois.nic.google', + house: 'whois.nic.house', info: 'whois.nic.info', link: 'whois.uniregistry.net', + live: 'whois.nic.live', nyc: 'whois.nic.nyc', + one: 'whois.nic.one', online: 'whois.nic.online', shop: 'whois.nic.shop', site: 'whois.nic.site', @@ -173,7 +180,7 @@ const whoisDomain = async (rawDomain, { host = null, timeout = 15000, follow = 2 false // fill in WHOIS servers when missing - if (!nextWhoisServer && result['Registrar URL'] && result['Registrar URL'].includes('domains.google')) { + if (!nextWhoisServer && result['Registrar URL']?.includes('domains.google')) { nextWhoisServer = 'whois.google.com' }