GETINFO argument to dertermine OR IP addresses
arma at mit.edu
Thu Jun 4 02:13:58 UTC 2009
On Mon, Jun 01, 2009 at 06:57:30PM -0400, Sambuddho Chakravarty wrote:
> Can you please tell me if there is any argument to GETINFO which can be
> used to determine the IP address of ORs ? If there is none then what is
> the possible way to determine IP address of ORs ?
Quoting from the control-spec.txt:
"desc/id/<OR identity>" or "desc/name/<OR nickname>" -- the latest
server descriptor for a given OR, NUL-terminated.
Assuming you know the relay's identity fingerprint, fetching the
descriptor and parsing it is a simple way. Don't use nicknames or you'll
end up getting confused when multiple relays have the same nickname.
There are a couple of edge cases. For example, the descriptor that your
local Tor client has may not be the same as the descriptor advertised
in the networkstatus consensus, since your Tor client may not yet have
fetched the newer descriptor. But assuming the relays in question don't
change IP addresses much, or assuming you only want to know about relays
that your Tor client already knows descriptors for, this approach should
be close enough.
More information about the tor-talk