Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Disable Name Lookups for IPs
Open lorenz opened 11 months ago crate=radicle-node type=feature

Connecting to an Yggdrasil IPv6, output slighlty rearranged for readability, where

addr = [202:…]:8776

Prelude:

INFO  service
Received command Connect(
    z6Mk…g127,
    {addr},
    ConnectOptions { persistent: true, timeout: 18446744073709551615.999999999s }
)

DEBUG service
Connecting to z6Mk…g127 ({addr})..

WARN  service
Attempted connection to peer z6Mk…g127 which already has a session

DEBUG service
Reconnecting to z6Mk…g127 (attempts=5)...

DEBUG service
Attempted connection to z6Mk…g127 ({addr})

Here it goes wrong:

ERROR wire
Error establishing connection to {addr}: failed to lookup address information: Name or service not known

Postlude:

INFO  service
Disconnected from z6Mk…g127 (failed to lookup address information: Name or service not known)

DEBUG service
Reconnecting to z6Mk…g127 in 1.07 minute(s)..

On the CLI it looks like this

✗ Connecting to z6Mk…g127@{addr}... error: failed to lookup address information: Name or service not known

So, since this is an IPv6 we wouldn’t stricly need to lookup any address information in the DNS-sense. I also couldn’t figure out where exactly that lookup comes from. It might make sense in the clearnet, but for Yggdrasil we probably want to disable it. At least I would like to find out why/what is causing the lookup and control it.