Opened 11 years ago

Last modified 8 years ago

#1005 closed enhancement (Fixed)

Support .onion and .exit addresses with tor-resolve

Reported by: torfox Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: torfox, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Instead of returning an error message when asked to resolve a .onion or .exit
address, handle it like a MAPADDRESS request to map the FQDN to the first
available private address. That way, all future connections to
that private IP address will go to the mapped FQDN.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (9)

comment:1 Changed 11 years ago by nickm

Did you know about the AutomapHostsOnResolve option?

comment:2 Changed 11 years ago by torfox

Yes, the problem is that tor-resolve doesn't support that. It always kicks out a warning.

comment:3 Changed 11 years ago by nickm

Really? It works for me. I started Tor with AutomapHostsOnResolve 1, and tried to resolve a .exit address. It
worked fine for me.

What warning is tor-resolve "kicking out" for you?

comment:4 Changed 11 years ago by torfox

C:\Program Files\Tor>tor --AutomapHostsOnResolve 1
Jun 18 09:21:29.110 [notice] Tor v0.2.0.34 (r18423). This is experimental softwa
re. Do not rely on it for strong anonymity. (Running on Windows XP Service Pack
3 [workstation] {terminal services, single user})
Jun 18 09:21:29.141 [notice] Initialized libevent version 1.4.9-stable using met
hod win32. Good.
Jun 18 09:21:29.141 [notice] Opening Socks listener on
Jun 18 09:21:30.719 [notice] We now have enough directory information to build c

C:\Program Files\Tor>tor-resolve oldd6th4cr5spio4.onion
oldd6th4cr5spio4.onion is a hidden service; those don't have IP addresses.

To connect to a hidden service, you need to send the hostname
to Tor; we suggest an application that uses SOCKS 4a.

comment:5 Changed 11 years ago by nickm

I think this is just tor-resolve being stupid. Try saying tor-resolve -F oldd6th4cr5spio4.onion .

If that works, we should make tor-resolve less stupid. Maybe it should try resolving the .onion address first, and
only warn if there's an error.

comment:6 Changed 11 years ago by torfox

It worked. That did it. Thanks!

comment:7 Changed 11 years ago by nickm

Fixed in 298dc95 (maint-0.2.1) and 298dc95 (master).

comment:8 Changed 11 years ago by nickm

flyspray2trac: bug closed.

comment:9 Changed 8 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.