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

[Bug] Verisign's whois server returns No match for which can not be handled by whoiser #117

Open
SukkaW opened this issue Nov 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@SukkaW
Copy link

SukkaW commented Nov 5, 2024

Version(s) affected: 1.18.0

Description

$ whois not-exist-bust.com
No match for domain "NOT-EXIST-BUST.COM".
>>> Last update of whois database: 2024-11-05T12:37:37Z <<<

How to reproduce

import * as whoiser from 'whoiser';

console.log(await whoiser.domain(domain));

It should log an empty object, but whoiser is trying to parse the not found message instead.

Possible Solution

Update this line to include No match for:

if (whois.includes('returned 0 objects') || whois.includes('No match found')) {

@SukkaW SukkaW added the bug Something isn't working label Nov 5, 2024
@SukkaW
Copy link
Author

SukkaW commented Nov 5, 2024

I can help submiting a PR to fix this.

@SukkaW
Copy link
Author

SukkaW commented Nov 5, 2024

Another example found:

$ whois bigcloud.cyou
The queried object does not exist: DOMAIN NOT FOUND

>>> Last update of WHOIS database: 2024-11-05T16:53:37.0Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

>>> IMPORTANT INFORMATION ABOUT THE DEPLOYMENT OF RDAP: please visit
https://www.centralnicregistry.com/support/rdap <<<

The Whois and RDAP services are provided by CentralNic, and contain
information pertaining to Internet domain names registered by our
our customers. By using this service you are agreeing (1) not to use any
information presented here for any purpose other than determining
ownership of domain names, (2) not to store or reproduce this data in
any way, (3) not to use any high-volume, automated, electronic processes
to obtain data from this service. Abuse of this service is monitored and
actions in contravention of these terms will result in being permanently
blacklisted. All data is (c) CentralNic Ltd (https://www.centralnicregistry.com)

Access to the Whois and RDAP services is rate limited. For more
information, visit https://registrar-console.centralnicregistry.com/pub/whois_guidance.

The keyword is does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants