Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
add todo for very short but valid responses; currently they are teate…
Browse files Browse the repository at this point in the history
…d as error response
  • Loading branch information
rl-devops committed Jan 23, 2023
1 parent 5734274 commit d7cf297
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions whois/_2_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7cf297

Please sign in to comment.