tor-resolve.1.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. tor-resolve(1)
  6. ==============
  7. Peter Palfrader
  8. NAME
  9. ----
  10. tor-resolve - resolve a hostname to an IP address via tor
  11. SYNOPSIS
  12. --------
  13. **tor-resolve** [-4|-5] [-v] [-x] __hostname__ [__sockshost__[:__socksport__]]
  14. DESCRIPTION
  15. -----------
  16. **tor-resolve** is a simple script to connect to a SOCKS proxy that knows about
  17. the SOCKS RESOLVE command, hand it a hostname, and return an IP address.
  18. By default, **tor-resolve** uses the Tor server running on 127.0.0.1 on SOCKS
  19. port 9050. If this isn't what you want, you should specify an explicit
  20. __sockshost__ and/or __socksport__ on the command line.
  21. OPTIONS
  22. -------
  23. **-v**::
  24. Display verbose output.
  25. **-x**::
  26. Perform a reverse lookup: get the PTR record for an IPv4 address.
  27. **-5**::
  28. Use the SOCKS5 protocol. (Default)
  29. **-4**::
  30. Use the SOCKS4a protocol rather than the default SOCKS5 protocol. Doesn't
  31. support reverse DNS.
  32. SEE ALSO
  33. --------
  34. **tor**(1), **torify**(1). +
  35. See doc/socks-extensions.txt in the Tor package for protocol details.
  36. AUTHORS
  37. -------
  38. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.