Linux Commands Examples

A great documentation place for Linux commands


resolve a hostname to an IP address via tor

see also : tor - torify


tor-resolve [-4|-5] [-v] [-x] hostname [sockshost[:socksport]]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


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 on SOCKS port 9050. If this isn’t what you want, you should specify an explicit sockshost and/or socksport on the command line.



Display verbose output.


Perform a reverse lookup: get the PTR record for an IPv4 address.


Use the SOCKS5 protocol. (Default)


Use the SOCKS4a protocol rather than the default SOCKS5 protocol. Doesn’t support reverse DNS.

see also

tor , torify .

See doc/socks-extensions.txt in the Tor package for protocol details.


Peter Palfrader


Roger Dingledine <arma[:at:]mit[:dot:]edu>, Nick Mathewson <nickm[:at:][:dot:]edu>.

How can this site be more helpful to YOU ?

give  feedback