Menu

How to get ExitNode IP address and default DNS server IP address?

Tsolmon
2014-10-07
2014-11-03
  • Tsolmon

    Tsolmon - 2014-10-07

    Hello,

    I have been using SilverTunnel-NG library to access TOR network.
    And I was wondering if there is any built-in functionality to get the exit
    node IP address? Currently I am using websites like ifconfig.me to get the
    exit node IP.

    Also, TorNetAddressNameService.getAddressesByName() returns only the first
    A record. Could you please guide me on how to make it return all the
    records. I guess, the resolver sends A query by default, I want it to send
    ANY query.

    Thanks,

    Tsolmon.O.Suvargachin

     
  • Tsolmon

    Tsolmon - 2014-10-08

    Well, I found the solution to get the exit node ip address from the circuit. But no idea for the NameService problem.

     
  • Tobias Boese

    Tobias Boese - 2014-11-02

    Hi,

    I'm back from my vacation so I can start working on such issues again.
    As far as I remember the implementation currently returns only one entry even if there are more.
    I will open a Ticket for it and try to find some time to work on it.
    Maybe I will have some time on Tuesday.

    regards,
    Tobi

     
  • Tobias Boese

    Tobias Boese - 2014-11-03

    Hi,

    SilverTunnel is now returning all received IP addresses, but if the Tor-Network is only sending one in the reply there is no way on overcoming this issue.

    Tor currently doesnt support UDP so it is not possible to send an own DNS packet.

    The only possible way to resolve ip addresses in the Tor Network is with the help of RELAY_RESOLVE cells (check tor specs on chapter 6.4 for more information)

    regards Tobi

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.