node-whois
node-whois copied to clipboard
When options are provided and follow is more than 1
I encountered this issue when I had set the options
test case : gst.gov.in var opts = { "server": "whois.registry.in", "follow": 3, "verbose": true }
the first lookup provided the results and did not contain any additional value in match[3]. Due to this , the values from servers.json was used . Incidentally, the value for "in" tld is incorrect.
In some cases match[3] is empty eg. match ["","","",""]
Solution : index.js --> if (match[3].trim().length == 0 ){ match[3] = options.server; options.follow = 1; }
PS: use dig tld.whois-servers.net CNAME to find the correct whoisServer in case servers.json has an incorrect value.