drTr0jan commented on issue #1740: URL: https://github.com/apache/logging-log4j2/issues/1740#issuecomment-5624788189
Hi, @ppkarwasz. Where have you found `gethostname()` ignores the result? `InetAddress.getHostName()` returns updated `holder().getHostName()` (if previously was null). `InetAddress.getHostName()` differs from `InetAddress.getCanonicalHostName()` by mandatory reverse name lookup only. `InetAddress.getHostName()` returns FQDN too. I think, it will be great to return `useFQDN` config feature for using `InetAddress.getHostName()`. -- 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]
