Skip to content
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

dns: allow using the getaddrinfo-based system DNS resolver #2419

Merged
merged 11 commits into from
Jul 14, 2022

Conversation

jpsim
Copy link
Contributor

@jpsim jpsim commented Jul 14, 2022

For non-Apple platforms like Linux and Android.

Updated the Kotlin, Java & C++ builders.

Added here: envoyproxy/envoy#22080

Risk Level: Low to moderate, off by default but I had to refactor some stuff.
Testing: Added.
Docs Changes: Documentation comments.
Release Notes: Added.

Signed-off-by: JP Simard jp@jpsim.com

For non-Apple platforms like Linux and Android.

Updated the Kotlin, Java & C++ builders.

Added here: envoyproxy/envoy#22080

Signed-off-by: JP Simard <jp@jpsim.com>
@jpsim jpsim changed the title dns: allow using the getaddr-based system DNS resolver dns: allow using the getaddr-based system DNS resolver Jul 14, 2022
jpsim added 4 commits July 14, 2022 12:33
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
@jpsim jpsim marked this pull request as ready for review July 14, 2022 18:02
dnsResolverConfig = String.format(
"{\"@type\":\"type.googleapis.com/envoy.extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig\",\"resolvers\":%s,\"use_resolvers_as_fallback\": %s, \"filter_unroutable_families\": %s}",
dnsFallbackNameserversAsString, !dnsFallbackNameservers.isEmpty() ? "true" : "false",
dnsFilterUnroutableFamilies ? "true" : "false");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no action needed - just want to point out that for our new resolver dnsFilterUnroutableFamilies is effectively always equal to true as I pointed out in https://github.com/envoyproxy/envoy/pull/22080/files#r919203157.

Just something for future us - we will need to clean up all of the DNS flags/options that we expose.

@jpsim jpsim changed the title dns: allow using the getaddr-based system DNS resolver dns: allow using the getaddrinfo-based system DNS resolver Jul 14, 2022
jpsim added 2 commits July 14, 2022 15:13
Co-authored-by: Rafał Augustyniak <Augustyniak@users.noreply.github.com>

Signed-off-by: JP Simard <jp@jpsim.com>
Co-authored-by: Rafał Augustyniak <Augustyniak@users.noreply.github.com>

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim added 2 commits July 14, 2022 15:15
Signed-off-by: JP Simard <jp@jpsim.com>
They aren't configurable with the getaddrinfo-based
resolver.

Signed-off-by: JP Simard <jp@jpsim.com>
Augustyniak
Augustyniak previously approved these changes Jul 14, 2022
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
@jpsim jpsim enabled auto-merge (squash) July 14, 2022 20:29
@jpsim jpsim merged commit a12287c into main Jul 14, 2022
@jpsim jpsim deleted the dns-allow-using-the-getaddr-based-system-dns-resolver branch July 14, 2022 20:40
jpsim added a commit that referenced this pull request Jul 18, 2022
* main:
  tools: fix source mapping (#2429)
  Update Envoy (#2427)
  tools: add arm64 debug run configuration (#2424)
  Revert "docs: use sphinx githubpages extension (#2418)" (#2425)
  Remove Tulsi configuration & docs (#2421)
  Fix isCleartextTrafficPermitted (#2420)
  Squelch two JNI build warnings (#2426)
  dns: allow using the `getaddrinfo`-based system DNS resolver (#2419)
  docs: use sphinx githubpages extension (#2418)
  Update Envoy (#2417)
  Remove rules_cc uses
  Bump Lyft Support Rotation (#2414)
  iOS: fix retain cycles in `EnvoyNetworkMonitor` (#2415)
  Update Envoy (#2413)
  engine: remove outdated comment about `registerFactories()` (#2412)
  api: make RequestTrailersBuilder and ResponseHeadersBuilder constructors public (#2410)

Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants