jvz commented on issue #2111: URL: https://github.com/apache/logging-log4j2/issues/2111#issuecomment-1869795665
This is a long-known issue specific to macOS because by default, macOS does not include an entry in `/etc/hosts` for `localhost`, so the default behavior of its network stack (or at least in Java) involves DNS lookups to try to determine the hostname of the local interface. Once Java has cached the initial DNS lookup here, it doesn't resolve it again. Simplest fix is documented in https://github.com/apache/logging-log4j2/blob/2.x/BUILDING.adoc where you can run: ``` printf '127.0.0.1 %s\n::1 %s\n' `hostname` `hostname` | sudo tee -a /etc/hosts ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
