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

How to change the used DNS Server?

Open Againstreality opened this issue 9 years ago • 5 comments

Hi, maybe i am totaly stupid but we use proxychains on all our Linux and Windows machines with a specific DNS Server. which works fine. But our Mac User cant because proxychains_ng always uses the google DNS. I cant find a config File to change this. Can you help?

Againstreality avatar Jun 29 '17 12:06 Againstreality

proxychains uses either the system dns server via libc routines, or when remote_dns is enabled relays the lookup to the proxy server. so i suppose you can just edit /etc/resolv.conf and thats it.

rofl0r avatar Jun 29 '17 12:06 rofl0r

Accoding to this article Changing proxychains' "hardcoded" DNS server , proxychains accept DNS_SERVER envirement variable, you can change it as you like.

  export DNS_SERVER=8.8.8.8
  proxychains firefox

tangxinfa avatar Nov 28 '17 07:11 tangxinfa

@tangxinfa that is true for proxychains 3.1, but not for proxychains-ng.

rofl0r avatar Nov 28 '17 18:11 rofl0r

@rofl0r I use proxychains-ng on Archlinux, DNS_SERVER envirement variable is works, this also use by the proxyresolv tool.

tangxinfa avatar Dec 04 '17 05:12 tangxinfa

proxyresolv is just a bonus, it will not be installed by default, and proxychains-ng itself doesnt use it. i looked at that package and it does nothing special, so there's no way DNS_SERVER could influence proxychains4 program.

rofl0r avatar Dec 04 '17 10:12 rofl0r