diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java index 12d96e2ad98e..adc1017d6cec 100644 --- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java +++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java @@ -94,7 +94,7 @@ public static String getHost(InetAddress inetAddress) { if (items.length == 6 && "svc".equals(items[3])) { return String.format("%s.%s", items[0], items[1]); } - return canonicalHost; + return inetAddress.getHostAddress(); } if (inetAddress instanceof Inet6Address) { return normalizeV6Address((Inet6Address) inetAddress).getHostAddress();