diff options
author | rofl0r <retnyg@gmx.net> | 2013-01-06 22:20:44 +0400 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2013-01-06 22:20:44 +0400 |
commit | 173b90368e932b1ae29a961b945019231f8552ca (patch) | |
tree | d179a337cddc080411cd4e63d0da5f4ab3e45a5f | |
parent | 5f433adfed216579d11f2b9b63975f58f33ed809 (diff) |
update proxyresolv
-rwxr-xr-x | src/proxyresolv | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/proxyresolv b/src/proxyresolv index 05186df..eb8903c 100755 --- a/src/proxyresolv +++ b/src/proxyresolv @@ -1,8 +1,10 @@ #!/bin/sh -# This script is called by proxychains to resolve DNS names +# This is a legacy script that uses "dig" to do DNS lookups via TCP. +# it is not actively maintained since proxychains no longer depends +# on it. i leave it here as a bonus. # DNS server used to resolve names -DNS_SERVER=4.2.2.2 +DNS_SERVER=8.8.8.8 if [ $# = 0 ] ; then @@ -12,5 +14,5 @@ if [ $# = 0 ] ; then fi -export LD_PRELOAD=libproxychains.so +export LD_PRELOAD=libproxychains4.so dig $1 @$DNS_SERVER +tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}' |