-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: externalhosts does not advertize IPv4+IPv6 domain #8801
Comments
Setting it like this when
But only when I explicitly listen on IPv6. This is also a bug as lnd should not make assumptions over which protocol it gets traffic. Nodes behind IPv6 to IPv4 NAT need to listen only on IPv4 interface to get both IPv6 traffic |
Our logic here mirrors the stdlib function ResolveTCPAddr, which also only returns a single TCP addr. We should use |
Hey @Roasbeef , I'd like to work on this if it's still available. I've been checking the code and have questions to ensure I'm looking at the right things.
|
Hi @aguxez I think this is available still, so go for it.
Sooo, looking at it in more detail, maybe the "good first issue" and "beginner" labels aren't correct and this is quite a bit involved. |
i'd like work this issue |
There could be some overlap, yes. But I could also see the use case where you have a dynamic DNS (e.g. dyndns.com) but don't want everyone to know the name of that, just the resolved IP address. |
Background
Describe your issue here.
Your environment
lnd
0.17.3uname -a
on *Nix) ubuntu 20.04btcd
,bitcoind
, or other backendSteps to reproduce
I run a node that I want accessible via clearnet IPv4, IPv6 and Tor.
I have a domain
lightning.foo.com
that has both A and AAAA DNS records. When I set this inlnd.conf
The node advertises only IPv4 and Tor (as checked via
getinfo
)Expected behaviour
If a domain resolves to both IPv4 and IPv6 lnd should advertise both protocols
Actual behaviour
The node favors one of the protocols. I guess this code does the resolve on the first interface
lnd/server.go
Line 1644 in 613bfc0
The text was updated successfully, but these errors were encountered: