A bit strange that EnvoyServerProtoData.CidrRange.create uses InetAddress.getByName, which will perform a DNS lookup when a hostname provided in addressPrefix:
|
static CidrRange create(String addressPrefix, int prefixLen) throws UnknownHostException { |
|
return new AutoValue_EnvoyServerProtoData_CidrRange( |
|
InetAddress.getByName(addressPrefix), prefixLen); |
|
} |
|
} |
Should we be using Guava's InetAddresses#forString which is "deliberately avoids all nameservice lookups"?