christophetd / CloudFlair

🔎 Find origin servers of websites behind CloudFlare by using Internet-wide scan data from Censys.
https://blog.christophetd.fr/bypassing-cloudflare-using-internet-wide-scan-data/
2.58k stars 358 forks source link

ImportError: No module named dns.resolver #45

Closed airline233 closed 3 years ago

airline233 commented 3 years ago

When i was running the 'python cloudflair.py url', the python printed this result:ImportError: No module named dns.resolver What can i do next?

airline233 commented 3 years ago

It only appears on Debian system, and centos has not encountered this problem

christophetd commented 3 years ago

Have you installed dependencies running pip install -r requirements.txt?

vigneshsb401 commented 3 years ago

yes even after installing the dependencies using pip install -r requirements.txt it shows the same error

christophetd commented 3 years ago

Can you provide your pip and Python versions?

vigneshsb401 commented 3 years ago

pip version pip 21.2.4 python version Python 2.7.16

christophetd commented 3 years ago

Can you try with Python 3.5?

vigneshsb401 commented 3 years ago

even after using python 3.5 it doesn't seem to work I tried it on both Mac terminal as well as kali machine

airline233 commented 3 years ago

Have you installed dependencies running pip install -r requirements.txt?

Of course. I tried to run it again and again,but running it isn't usful

airline233 commented 3 years ago

I tried to used Python3 latest version and it worked as well as centos

christophetd commented 3 years ago

Thanks, clarified in the README to use Python3 and suggested using a virtual env to avoid dependency issues