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

HTTP services on macOS warn generate a warning about missing Netty MacOSDnsServerAddressStreamProvider #176

Open
pcholakov opened this issue Dec 11, 2023 · 0 comments

Comments

@pcholakov
Copy link
Contributor

We currently do not include a runtime dependency on Netty's macOS-specific DNS resolver package, which causes the following warning on startup:

2023-12-11 11:54:31 WARN   io.netty.resolver.dns.DnsServerAddressStreamProviders - Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'

This doesn't seem to be causing examples to break in an obvious way but there are probably cases where it is desirable to use the native resolver config.

We may address this by including something like the following in our examples' project Gradle config:

plugins {
  // ...
  id("com.google.osdetector") version "1.7.0"
}

dependencies {
  // ...

  if (osdetector.os == "osx") {
    runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.1.72.Final:osx-${osdetector.arch}")
  }
}  

Since ARM-architecture macOS is likely going to be a common development platform, we may wish to fix this purely to suppress the WARN noise even if it doesn't break anything.

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

No branches or pull requests

1 participant