[bisq-network/bisq] Allow IPv6 connections to Bitcoin nodes (#4045)

James Cox notifications at github.com
Mon Mar 16 19:12:18 UTC 2020


DnsLookupTor.java is doing the same SOCKS5 network query as `tor-resolve`.  Namely a CMD_RESOLVE:

    buf[0] = b('\u0005');             // version SOCKS5
    buf[1] = b('\u00f0');             // CMD_RESOLVE
    buf[2] = b('\u0000');             // reserved 
    buf[3] = b('\u0003');             // SOCKS5_ATYPE_HOSTNAME
    [...]
    proxySocket.getOutputStream().write(buf);



[Unfortunately:](https://tor.stackexchange.com/questions/7212/how-do-i-resolve-dns-using-tor)
> Only drawback so far: You can't specify the query type (e.g. A, NS, MX, etc.) and also IPv6-only hosts (those with only AAAA records) can't (yet) be resolved at all and cause such a message: [warn] Got SOCKS5 status response '4': host is unreachable

What we would need is the tor DNS equivalent of 

    nslookup -q=AAAA node100.wiz.network
    node100.wiz.network	has AAAA address 2401:b140::42:100

But we get this

    tor-resolve node100.wiz.network
    103.99.168.100


>From reading tor-resolve [code](https://gitweb.torproject.org/tor.git/tree/src/tools/tor-resolve.c), there's no parameter that can be written to the DNS socket telling it that we want IPv6 result rather than IPv4.  

I'm open to suggestions.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4045#issuecomment-599713287
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200316/42b5103e/attachment.html>


More information about the bisq-github mailing list