diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 088a8073e..4c8a16883 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -776,7 +776,7 @@ if ($inet6support) { $peerhost && $peerhost =~ s/\.$domain\.*$//; } else { # otherwise just strip off whatever comes after the first dot - $peerhost && $peerhost =~ s/^.*?\.//; + $peerhost && $peerhost =~ s/\..*//; } $peerhost && $peerhost =~ s/-eth\d*$//;