In adding v6 support to DnsResolver (https://github.com/lyft/envoy/blob/master/source/common/network/dns_impl.cc#L123), what would be the best way to handle v4/v6 address selection.
- Default to v4/v6
- Configurable option
For (1) something like try v6. If failed, try v4
For (2) something like a json parameter or CLI option that gets plumbed through to DnsResolver
In adding v6 support to DnsResolver (https://github.com/lyft/envoy/blob/master/source/common/network/dns_impl.cc#L123), what would be the best way to handle v4/v6 address selection.
For (1) something like try v6. If failed, try v4
For (2) something like a json parameter or CLI option that gets plumbed through to DnsResolver