Closed domderen closed 1 year ago
You encountered two different and unrelated issues:
whois
package is simply a wrapper for the command line tool, and according to FileNotFoundError
is either missing in your system or can't be foundwhois.query()
- I've just fixed itPlease ensure that whois
command is present in your system, then pull the most recent code from Github and test it.
@elceef Thanks, I also hit something similar right now in my automated daily use of the Docker images from DockerHub, during which I pass the arguments --whois --tld /opt/dnstwist/dictionaries/common_tlds.dict
:
Traceback (most recent call last):
File "/opt/dnstwist/dnstwist.py", line 1295, in run
whoisq = whois.query('.'.join([dom, tld]))
File "/usr/lib/python3/dist-packages/whois/__init__.py", line 54, in query
raise Exception('Unknown TLD: %s\n(all known TLD: %s)' % (tld, list(TLD_RE.keys())))
Exception: Unknown TLD: ph
(all known TLD: ['com', 'at', 'uk', 'pl', 'be', 'biz', 'br', 'ca', 'co', 'jp', 'co_jp', 'cz', 'de', 'eu', 'fr', 'info', 'io', 'it', 'ru', 'lv', 'me', 'mx', 'name', 'net', 'nz', 'org', 'ru_rf', 'sh', 'us'])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/dnstwist/dnstwist.py", line 1324, in <module>
run()
File "/opt/dnstwist/dnstwist.py", line 943, in wrapper
result = func(*args, **kwargs)
File "/opt/dnstwist/dnstwist.py", line 1297, in run
if args.debug:
AttributeError: 'Namespace' object has no attribute 'debug'
Seeing the last two commits, I presume this was also fixed (i.e. by fixing the bug in exception handling for whois
), correct?
In that case, it would be great to get fresh Docker images whenever convenient for you. Thanks in advance! :+1:
Hey @elceef, thanks for a quick turnaround! I tried the latest version from master and it worked great (after installing whois
😅).
Thanks for reporting this issue!
@olifre bug-free Docker images have been pushed!
@elceef Great, many thanks, that was fast! I tested with my usual GitHub actions runs which use the latest containers and they work fine again :+1: .
Hey,
It looks like there's some issue with running the
--whois
parameter in the newest version (20230402). I get this error:I wasn't able to reproduce it on MacOS, but I did manage to reproduce it in
python:3.10-slim
docker image. Below I attach minimal reproduction steps: