spring: cloud: inetutils: ignored-interfaces: - eth0 - vpn.* Use code with caution. Copied to clipboard Impact on Application
Add or correct the line:
If you are running this inside a Docker container, the best practice is spring: cloud: inetutils: ignored-interfaces: - eth0 - vpn
Or via properties:
docker run -e HOSTNAME=my-service-host my-app the resolution times out.
If you are seeing the error message o.s.cloud.commons.util.inetutils cannot determine local hostname in your logs, you are likely working with a Spring Cloud application. This log entry usually appears during the startup phase of a Spring Boot service, often accompanied by a significant delay or a full application crash. The Root Cause spring: cloud: inetutils: ignored-interfaces: - eth0 - vpn
InetUtils tries to resolve the hostname via DNS. If your DNS server is slow, misconfigured, or unreachable, the resolution times out.