proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

an issue with the command "dig"

Open mjmasteredver opened this issue 4 years ago • 4 comments

The command:

proxychains dig axfr [domain name] @[name server] 

output:

[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.14
dig: isc_socket_connect: invalid use of multicast address

What to do? I have the latest version of proxychains and kali linux 2021.2 i dont want to remove the proxychains command

mjmasteredver avatar Jul 12 '21 20:07 mjmasteredver

You cannot use dig with proxychains-ng, because dig tries to access the DNS server defined in /etc/resolv.conf.

Even if you specify the fake DNS resolution of proxychains-ng, it will not work because socks4/5 and HTTP proxies doesn't support direct DNS probing, only TCP connections with the hostname specified in TCP header.

phantomcraft avatar Jul 12 '21 23:07 phantomcraft

you can use proxychains-ng with dig, by using the -t tcp parameter

rofl0r avatar Jul 12 '21 23:07 rofl0r

https://github.com/rofl0r/proxychains-ng/blob/master/src/proxyresolv#L18

rofl0r avatar Jul 12 '21 23:07 rofl0r