Specifying externalhosts multiple time in lnd.conf #9071
-
Assume a DNS lookup returns a single different IP address from each of two specified externalhosts. Is the purpose to specify to a peer that the LND server can be reached on at least one of the IP addresses at any time but not necessarily both at the same time? Or is the purpose to offer a peer a choice as to which IP address to use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The purpose of the But generally the p2p protocol for gossiping a node's addresses (currently) only allows IP addresses to be sent, not domain names. And someone trying to reach your node will just try any of the addresses until a connection is successful. |
Beta Was this translation helpful? Give feedback.
The purpose of the
externalhost
config option is mostly to allow users with dynamic IP addresses on their machines to be reachable. The reason there can be multiple domains likely just is for uniformity with other similar configuration options that allow multiple entries. I can't come up with a use case where this would be useful from the top of my head.But generally the p2p protocol for gossiping a node's addresses (currently) only allows IP addresses to be sent, not domain names. And someone trying to reach your node will just try any of the addresses until a connection is successful.
So your node can just be reachable on one of the addresses it advertises, but that will make things le…