[tor-dev] How to query HS hostname from control port

meejah meejah at meejah.ca
Mon Sep 5 01:31:15 UTC 2016

Jesse V <kernelcorn at riseup.net> writes:

> TL;DR: Please let me know how to fetch the hostname of my hidden service
> from Tor's control port.

There are two types of onion services: "on disk" ones configured via
torrc/SETCONF and the HiddenServiceDir and related options **or**
"ephemeral" onions, created via the recently added ADD_ONION command.

In the latter case, you can list them with GETINFOs on "onions/current"
or "onions/detached" depending on the options when you created them.

For the "HiddenServiceDir" onions, the only way to get the onion address
that I know of is by reading the "hostname" file.

Can you describe what you're trying to do?


More information about the tor-dev mailing list