1

When I try to run sudo python dns2proxy.py in Ubuntu, I keep getting this error:

Traceback (most recent call last):
  File "dns2proxy.py", line 21, in <module>
    import dns.message
ImportError: No module named dns.message

I have the correct repository cloned (see here for GitHub link) and I'm in the correct directory. I've tried running it in Kali linux and it works flawlessly. My intention is to do a gnome-terminal -e "sudo python dns2proxy.py" and make the command run in another terminal.

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Bashtheparty
  • 21
  • 1
  • 6

1 Answers1

2

Try running the command

pip install dnspython

or, if you are using your system Python (not recommended)

sudo pip install dnspython

This will install the dns package that is currently missing. If, as you say, you have cloned the repository and want to use that version (and possible edit it) you may instead use

[sudo] pip install -e .

from the cloned directory.

holdenweb
  • 33,305
  • 7
  • 57
  • 77
  • 1
    Thanks for the answer, It gave me another error but I finaly figured it out with some help from this post [http://stackoverflow.com/questions/21698894/scapy-error-no-module-names-pcapy] – Bashtheparty Sep 09 '16 at 18:26