Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/haad/proxychains.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.adoc10
-rwxr-xr-xsrc/proxyresolv7
2 files changed, 16 insertions, 1 deletions
diff --git a/README.adoc b/README.adoc
index 07507cf..bee5f38 100644
--- a/README.adoc
+++ b/README.adoc
@@ -160,3 +160,13 @@ $ PROXYCHAINS_SOCKS5=4321 proxychains zsh
in this example, it will run a shell with all traffic proxied through
OpenSSH's "dynamic proxy" (SOCKS5 proxy) on localhost port 4321.
+
+=== Usage Example:
+
+----
+$ export PROXY_DNS_SERVER=8.8.8.8
+$ proxychains telnet targethost.com
+----
+
+in this example, it will telnet to targethost.com using the 8.8.8.8
+nameserver supplied by the user through the PROXY_DNS_SERVER
diff --git a/src/proxyresolv b/src/proxyresolv
index 1004c3d..eccf882 100755
--- a/src/proxyresolv
+++ b/src/proxyresolv
@@ -2,7 +2,12 @@
# This script is called by proxychains to resolve DNS names
# DNS server used to resolve names
-DNS_SERVER=208.67.222.222
+
+if [[ -z "$PROXY_DNS_SERVER" ]] ; then
+ DNS_SERVER=208.67.222.222 # OpenDNS
+else
+ DNS_SERVER=$PROXY_DNS_SERVER
+fi
if [ $# = 0 ] ; then