It's just a resolve query sent through/to a SOCKS proxy.


tor-resolve(1) - Linux man page
Name

tor-resolve - resolve a hostname to an IP address via tor
Synopsis
tor-resolve [-4|-5] [-v] [-x] hostname [sockshost[:socksport]]
Description
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.
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.
See Also
tor(1), torify(1).

See doc/socks-extensions.txt in the Tor package for protocol details.
Authors
Roger Dingledine <[email protected]>, Nick Mathewson <[email protected]>.




Now, if you want to lookup antionline.com:

#tor-resolve -5 -v www.antionline.com 68.40.92.234:10777

Tor-resolve is obviously the command. We use -5 to indicate that we're running through a socks5 proxy instead of a socks4. -v gives us verbose output. www.antionline.com is the host we're looking up. 68.40.92.234:10777 is the socks5 proxy and port it is supposed to use.


Let's say you want to find the domain name associated with an IP:
#tor-resolve -5 -v -x 63.146.109.212 68.40.92.234:10777

Same command, structure, etc, except we added the -x switch to indicate we want it to return PTR records.