tor-resolve(1)

tor-resolve1

Resolve a hostname to an ip address via tor

Usage

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

Overview

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

Options

-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’t support reverse DNS.

-p socksport

Override the default SOCKS port without setting the hostname.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12–13
  9. Arch

-p since Debian 9 (Stretch); -v since Debian 6.0 (Squeeze).

Author

Peter Palfrader

Author.

From tor 0.4.9.14-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.