1. #!/bin/sh
  2. # This script is called by proxychains to resolve DNS names
  3. # DNS server used to resolve names
  4. DNS_SERVER=139.59.200.116
  5. if [ $# = 0 ] ; then
  6. echo " usage:"
  7. echo " proxyresolv <hostname> "
  8. exit
  9. fi
  10. export LD_PRELOAD=libproxychains.so.3
  11. dig $1 @$DNS_SERVER +tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}'
Comments powered by Disqus