Resolve a hostname to an ip address via tor
tor-resolve [-4|-5] [-v] [-x] hostname [sockshost[:socksport]]
tor-resolve is a simple script to connect to a SOCKS proxy that knows about the SOCKS RESOLVE command, hand it a hostname, and return an IP address.
By default, tor-resolve uses the Tor server running on 127.0.0.1 on SOCKS port 9050. If this isn\(cqt what you want, you should specify an explicit sockshost and/or socksport on the command line.
-v
Display verbose output.
-x
Perform a reverse lookup: get the PTR record for an IPv4 address.
-5
Use the SOCKS5 protocol. (Default)
-4
Use the SOCKS4a protocol rather than the default SOCKS5 protocol. Doesn\(cqt support reverse DNS.
Roger Dingledine <[email protected]>, Nick Mathewson <[email protected]>.
Peter Palfrader
Author.