Open bdmorin opened 6 months ago
Hey, thanks for the report. I think this is kinda in between a bug and intended: it can be useful to get whatever information is in whois even if the name doesn't resolve (or isn't an IP address), but I also can see how one might want the tool to bail out early.
So I just committed https://github.com/jschauma/jswhois/commit/18bd02c9bff9e86985627d6d60cbb9dc1ed9bcf7, which checks at start time if the given argument is either an IP address or resolves; if neither is the case, we bail. But the user can override this using a new '-f' flag if they really want the whois query to be sent anyway.
Does that sound reasonable?
I'll recompile on Tuesday, I'm sure it's fine, thank you!
I get output no matter what domain, and it's not saying the domain isn't found.
Regular whois:
No match for domain "JDFSKJFDK32849329.COM".
I don't know if this is intentional or a bug.
I guess the lack of a nameserver might be a clue, but it's not obvious.
valid domain
Cool tool though, thank you!