How to use nmap and dns resolution of nmap over proxy?
I tried proxychains, but for dns resolution it doesn't work, it's known bug as I read on some forums. It works well without dns_proxy feature in proxychains config. But I need to proxy dns resolution requests.
sudo proxychains nmap -T4 -sV -Pn -A --reason -v scanme.nmap.org
I tried proxychains4 (or proxychains-ng), but with nmap it does scanning and send all the packets synchronously, so for example for scan of one host it's needed to wait for 30 min or ever longer. So it's not the option, but it works well.
sudo proxychains4 nmap -T4 -sV -Pn -A --reason -v scanme.nmap.org
I tried just like this with inside nmap proxy function:
sudo nmap --proxy socks4://127.0.0.1:9050 -T4 -sV -Pn -A --reason -v scanme.nmap.org
But does it dns resolution requests over the tor proxy 127.0.0.1:9050 or only scan? It seems it doesn't.
What is the solution?