diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index f850f656f..8425c5ca0 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1494,7 +1494,11 @@ public static File getJavaHome() { } /** - * Gets the host name. + * Gets the host name from an environment variable. + * + *

+ * If you want to know what the network stack says is the host name, you should use {@code InetAddress.getLocalHost().getHostName()}. + *

* * @return the host name. * @since 3.6