Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When options are provided and follow is more than 1 #95

Open
sachinraste opened this issue Jan 16, 2020 · 0 comments
Open

When options are provided and follow is more than 1 #95

sachinraste opened this issue Jan 16, 2020 · 0 comments

Comments

@sachinraste
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant