diff --git a/whois/_2_parse.py b/whois/_2_parse.py index 3f7f0a5..3a3d5d2 100644 --- a/whois/_2_parse.py +++ b/whois/_2_parse.py @@ -118,6 +118,16 @@ def handleShortResponse( d = ".".join(dl) print(f"line count < 5:: {tld} {d} {whois_str}", file=sys.stderr) + # TODO: some short responses are actually valid: + # lookfor Domain: and Status but all other fields are missing so the regexec could fail + # this domain is taken already or reserved + + # whois syswow.64-b.it + # [Querying whois.nic.it] + # [whois.nic.it] + # Domain: syswow.64-b.it + # Status: UNASSIGNABLE + s = whois_str.strip().lower() # NOTE: from here s is lowercase only