mesh icon indicating copy to clipboard operation
mesh copied to clipboard

When passed a DNS name, InitiateConnection only resolves one record; all records would be better

Open nfirvine opened this issue 7 years ago • 1 comments

https://github.com/weaveworks/mesh/blob/master/connection_maker.go#L96

If the host part of a peer is a DNS name, it'd be nice if that name were resolved and all resultant addresses were added to the list, instead of just one. This is a very common pattern in service discovery i.e. Consul.

(I'm not sure how this code would respond with a request to peer with oneself though?)

nfirvine avatar Jul 26 '17 18:07 nfirvine

It would be useful in case of using dual stack (IPv4 and IPv6) too.

pznamensky avatar Jul 28 '17 10:07 pznamensky