mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
update proxyresolv
This commit is contained in:
parent
5f433adfed
commit
173b90368e
@ -1,8 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/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 used to resolve names
|
||||||
DNS_SERVER=4.2.2.2
|
DNS_SERVER=8.8.8.8
|
||||||
|
|
||||||
|
|
||||||
if [ $# = 0 ] ; then
|
if [ $# = 0 ] ; then
|
||||||
@ -12,5 +14,5 @@ if [ $# = 0 ] ; then
|
|||||||
fi
|
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;}'
|
dig $1 @$DNS_SERVER +tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}'
|
||||||
|
Loading…
Reference in New Issue
Block a user