Skip to content

Commit a859a11

Browse files
committed
updated: cache more TLD whois servers
1 parent 96392eb commit a859a11

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "whoiser",
3-
"version": "1.15.0",
3+
"version": "1.15.1",
44
"description": "Whois info for TLDs, domains and IPs",
55
"types": "./index.d.ts",
66
"typings": "./index.d.ts",

src/whoiser.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,32 @@ let cacheTldWhoisServer = {
1313

1414
// ccTLDs
1515
ai: 'whois.nic.ai',
16+
au: 'whois.auda.org.au',
1617
co: 'whois.nic.co',
1718
ca: 'whois.cira.ca',
19+
do: 'whois.nic.do',
1820
gl: 'whois.nic.gl',
1921
in: 'whois.registry.in',
2022
io: 'whois.nic.io',
2123
it: 'whois.nic.it',
2224
me: 'whois.nic.me',
2325
ro: 'whois.rotld.ro',
26+
rs: 'whois.rnids.rs',
2427
so: 'whois.nic.so',
2528
us: 'whois.nic.us',
29+
ws: 'whois.website.ws',
2630

2731
agency: 'whois.nic.agency',
2832
app: 'whois.nic.google',
2933
biz: 'whois.nic.biz',
3034
country: 'whois.uniregistry.net', // hardcoded because `whois.iana.org` sometimes returns 'whois.uniregistry.net' or 'whois.nic.country'
3135
dev: 'whois.nic.google',
36+
house: 'whois.nic.house',
3237
info: 'whois.nic.info',
3338
link: 'whois.uniregistry.net',
39+
live: 'whois.nic.live',
3440
nyc: 'whois.nic.nyc',
41+
one: 'whois.nic.one',
3542
online: 'whois.nic.online',
3643
shop: 'whois.nic.shop',
3744
site: 'whois.nic.site',
@@ -173,7 +180,7 @@ const whoisDomain = async (rawDomain, { host = null, timeout = 15000, follow = 2
173180
false
174181

175182
// fill in WHOIS servers when missing
176-
if (!nextWhoisServer && result['Registrar URL'] && result['Registrar URL'].includes('domains.google')) {
183+
if (!nextWhoisServer && result['Registrar URL']?.includes('domains.google')) {
177184
nextWhoisServer = 'whois.google.com'
178185
}
179186

0 commit comments

Comments
 (0)