tor-resolve.1.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (c) The Tor Project, Inc.
  2. // See LICENSE for licensing information
  3. // This is an asciidoc file used to generate the manpage/html reference.
  4. // Learn asciidoc on http://www.methods.co.nz/asciidoc/userguide.html
  5. :man source: Tor
  6. :man manual: Tor Manual
  7. tor-resolve(1)
  8. ==============
  9. Peter Palfrader
  10. NAME
  11. ----
  12. tor-resolve - resolve a hostname to an IP address via tor
  13. SYNOPSIS
  14. --------
  15. **tor-resolve** [-4|-5] [-v] [-x] [-p __socksport__] __hostname__ [__sockshost__[:__socksport__]]
  16. DESCRIPTION
  17. -----------
  18. **tor-resolve** is a simple script to connect to a SOCKS proxy that knows about
  19. the SOCKS RESOLVE command, hand it a hostname, and return an IP address.
  20. By default, **tor-resolve** uses the Tor server running on 127.0.0.1 on SOCKS
  21. port 9050. If this isn't what you want, you should specify an explicit
  22. __sockshost__ and/or __socksport__ on the command line.
  23. OPTIONS
  24. -------
  25. **-v**::
  26. Display verbose output.
  27. **-x**::
  28. Perform a reverse lookup: get the PTR record for an IPv4 address.
  29. **-5**::
  30. Use the SOCKS5 protocol. (Default)
  31. **-4**::
  32. Use the SOCKS4a protocol rather than the default SOCKS5 protocol. Doesn't
  33. support reverse DNS.
  34. **-p** __socksport__::
  35. Override the default SOCKS port without setting the hostname.
  36. SEE ALSO
  37. --------
  38. **tor**(1), **torify**(1). +
  39. For protocol details, see: https://spec.torproject.org/socks-extensions
  40. AUTHORS
  41. -------
  42. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.